Skip to content

[pi] edit tool still doesn't work correctly #45

@smilovanov-5am

Description

@smilovanov-5am

Description

I often have issues where the edit tool makes 0 changes to files
Image

Environment

  • AFT CLI: v0.27.0
  • AFT binary: 0.27.0
  • OS: linux x64
  • Node: v22.22.0

Diagnostics

  • Timestamp: 2026-05-20T20:46:56.019Z
  • AFT CLI: v0.27.0
  • AFT binary: 0.27.0
  • OS: linux x64
  • Node: v22.22.0

Pi

  • Host installed: true
  • Host version: 0.75.4
  • Plugin registered: true
  • AFT config parse error: none

Config paths

{
  "configDir": "~/.pi/agent",
  "harnessConfig": "~/.pi/agent/settings.json",
  "harnessConfigFormat": "json",
  "aftConfig": "~/.pi/agent/aft.json",
  "aftConfigFormat": "none"
}

AFT flags

{}

Plugin cache

{
  "path": "~/.pi/agent/extensions",
  "exists": false
}

Storage

{
  "path": "~/.pi/agent/aft",
  "exists": true,
  "sizesByKey": {
    "index": 0,
    "semantic": 0,
    "backups": 1131875,
    "url_cache": 347743,
    "onnxruntime": 0
  }
}

ONNX Runtime

{
  "required": false,
  "systemPath": null,
  "systemVersion": null,
  "systemCompatible": null,
  "cachedPath": null,
  "cachedVersion": null,
  "cachedCompatible": null,
  "platform": "linux-x64",
  "installHint": "AFT auto-downloads ONNX Runtime on supported Linux (glibc)",
  "requirement": ">=1.20"
}

Log file

/tmp/aft-pi.log (27 KB)

Binary cache

{
  "versions": [
    "v0.19.5",
    "v0.19.6",
    "v0.20.1",
    "v0.22.1",
    "v0.26.1",
    "v0.27.0"
  ],
  "activeVersion": "v0.27.0",
  "totalSize": 217768184,
  "path": "~/.cache/aft/bin"
}

LSP cache

{
  "npm": {
    "path": "~/.cache/aft/lsp-packages",
    "entries": [
      {
        "name": "@biomejs/biome",
        "path": "~/.cache/aft/lsp-packages/%40biomejs%2Fbiome",
        "size": 111851784
      },
      {
        "name": "@vue/language-server",
        "path": "~/.cache/aft/lsp-packages/%40vue%2Flanguage-server",
        "size": 46567336
      },
      {
        "name": "pyright",
        "path": "~/.cache/aft/lsp-packages/pyright",
        "size": 19148916
      },
      {
        "name": "yaml-language-server",
        "path": "~/.cache/aft/lsp-packages/yaml-language-server",
        "size": 17918144
      },
      {
        "name": "bash-language-server",
        "path": "~/.cache/aft/lsp-packages/bash-language-server",
        "size": 14501899
      },
      {
        "name": "typescript-language-server",
        "path": "~/.cache/aft/lsp-packages/typescript-language-server",
        "size": 3208486
      }
    ],
    "totalSize": 213196565
  },
  "github": {
    "path": "~/.cache/aft/lsp-binaries",
    "entries": [],
    "totalSize": 0
  },
  "totalSize": 213196565
}

Logs (last 200 lines per harness)

Pi log (/tmp/aft-pi.log)

[2026-05-20T20:37:54.101Z] INFO [aft-pi] AFT extension loading (plugin v0.27.0)
[2026-05-20T20:37:54.158Z] INFO [aft-pi] Copied npm binary to versioned cache: ~/.cache/aft/bin/v0.27.0/aft
[2026-05-20T20:37:54.158Z] INFO [aft-pi] Resolved binary: ~/.cache/aft/bin/v0.27.0/aft
[2026-05-20T20:37:54.158Z] INFO [aft-pi] AFT storage migration starting for pi: ~/.pi/agent/aft -> ~/.local/share/cortexkit/aft (binary=~/.cache/aft/bin/v0.27.0/aft, log=~/.local/share/cortexkit/aft/logs/migration/pi-1779309474158.jsonl)
[2026-05-20T20:37:54.390Z] INFO [aft-pi] AFT storage migration completed for pi in 232ms (log=~/.local/share/cortexkit/aft/logs/migration/pi-1779309474158.jsonl)
[2026-05-20T20:37:54.413Z] INFO [aft-pi] [lsp] auto-install: 5 npm + 0 github install(s) running in background
[2026-05-20T20:37:54.414Z] INFO [aft-pi] Spawning binary: ~/.cache/aft/bin/v0.27.0/aft (cwd: ~/dev/lokeo/lokeo.code/lokeo.code.prototype)
[2026-05-20T20:37:54.420Z] INFO [aft-pi] 🔧 AFT: ✨ v0.18.0:
  • New experimental features — AFT now optionally hoists bash:
    - Run bash scripts in the background.
    - Initial output compression for git, cargo, npm, bun, pnpm, pytest, tsc (more in 0.19).
    - Rewrite cat/grep/find/sed/ls into AFT counterparts for faster, formatted output.
  Check GitHub for how to enable.
  • Trigram grep/glob and semantic search (aft_search) graduated out of experimental.
  • Lots of bugfixes and new end-to-end test coverage.
[2026-05-20T20:37:54.421Z] INFO [aft-pi] Workflow hints injected (201 chars)
[2026-05-20T20:37:54.421Z] INFO [aft-pi] AFT extension ready (surface=recommended)
[2026-05-20T20:37:54.509Z] INFO [aft-pi] [aft] started, pid 476409
[2026-05-20T20:37:54.509Z] INFO [aft-pi] [aft] gitignore matcher built: 110 pattern(s)
[2026-05-20T20:37:54.509Z] INFO [aft-pi] [aft] bash task replay DB miss for session __default__; falling back to disk
[2026-05-20T20:37:54.509Z] INFO [aft-pi] [aft] project root set: ~/dev/lokeo/lokeo.code/lokeo.code.prototype
[2026-05-20T20:37:54.522Z] INFO [aft-pi] Binary version: 0.27.0
[2026-05-20T20:37:55.486Z] INFO [aft-pi] Received status_changed push frame; cached AFT status snapshot
[2026-05-20T20:38:03.529Z] INFO [aft-pi] [aft] watcher started: ~/dev/lokeo/lokeo.code/lokeo.code.prototype
[2026-05-20T20:38:04.353Z] INFO [aft-pi] Process exited during shutdown
[2026-05-20T20:38:04.353Z] INFO [aft-pi] Bridge pool shut down
[2026-05-20T20:38:04.567Z] INFO [aft-pi] AFT extension loading (plugin v0.27.0)
[2026-05-20T20:38:04.578Z] INFO [aft-pi] Resolved binary: ~/.cache/aft/bin/v0.27.0/aft
[2026-05-20T20:38:04.578Z] INFO [aft-pi] AFT storage already migrated for pi; using ~/.local/share/cortexkit/aft
[2026-05-20T20:38:04.595Z] INFO [aft-pi] [lsp] auto-install: 5 npm + 0 github install(s) running in background
[2026-05-20T20:38:04.595Z] INFO [aft-pi] Spawning binary: ~/.cache/aft/bin/v0.27.0/aft (cwd: ~/dev/lokeo/lokeo.code/lokeo.code.prototype)
[2026-05-20T20:38:04.602Z] INFO [aft-pi] Workflow hints injected (201 chars)
[2026-05-20T20:38:04.602Z] INFO [aft-pi] AFT extension ready (surface=recommended)
[2026-05-20T20:38:04.909Z] INFO [aft-pi] [aft] started, pid 476751
[2026-05-20T20:38:04.910Z] INFO [aft-pi] [aft] gitignore matcher built: 110 pattern(s)
[2026-05-20T20:38:04.910Z] INFO [aft-pi] [aft] bash task replay DB miss for session __default__; falling back to disk
[2026-05-20T20:38:04.910Z] INFO [aft-pi] [aft] project root set: ~/dev/lokeo/lokeo.code/lokeo.code.prototype
[2026-05-20T20:38:05.746Z] INFO [aft-pi] Received status_changed push frame; cached AFT status snapshot
[2026-05-20T20:38:05.746Z] INFO [aft-pi] Binary version: 0.27.0
[2026-05-20T20:38:13.474Z] INFO [aft-pi] [aft] watcher started: ~/dev/lokeo/lokeo.code/lokeo.code.prototype
[2026-05-20T20:40:16.661Z] INFO [aft-pi] Process exited during shutdown
[2026-05-20T20:40:16.661Z] INFO [aft-pi] Bridge pool shut down
[2026-05-20T20:40:16.893Z] INFO [aft-pi] AFT extension loading (plugin v0.27.0)
[2026-05-20T20:40:16.903Z] INFO [aft-pi] Resolved binary: ~/.cache/aft/bin/v0.27.0/aft
[2026-05-20T20:40:16.903Z] INFO [aft-pi] AFT storage already migrated for pi; using ~/.local/share/cortexkit/aft
[2026-05-20T20:40:16.920Z] INFO [aft-pi] [lsp] auto-install: 5 npm + 0 github install(s) running in background
[2026-05-20T20:40:16.921Z] INFO [aft-pi] Spawning binary: ~/.cache/aft/bin/v0.27.0/aft (cwd: ~/dev/lokeo/lokeo.code/lokeo.code.prototype)
[2026-05-20T20:40:16.929Z] INFO [aft-pi] Workflow hints injected (201 chars)
[2026-05-20T20:40:16.929Z] INFO [aft-pi] AFT extension ready (surface=recommended)
[2026-05-20T20:40:16.945Z] INFO [aft-pi] [aft] started, pid 479150
[2026-05-20T20:40:17.034Z] INFO [aft-pi] [aft] gitignore matcher built: 110 pattern(s)
[2026-05-20T20:40:17.034Z] INFO [aft-pi] [aft] bash task replay DB miss for session __default__; falling back to disk
[2026-05-20T20:40:17.034Z] INFO [aft-pi] [aft] project root set: ~/dev/lokeo/lokeo.code/lokeo.code.prototype
[2026-05-20T20:40:17.034Z] INFO [aft-pi] Binary version: 0.27.0
[2026-05-20T20:40:17.977Z] INFO [aft-pi] Received status_changed push frame; cached AFT status snapshot
[2026-05-20T20:40:26.179Z] INFO [aft-pi] [aft] watcher started: ~/dev/lokeo/lokeo.code/lokeo.code.prototype
[2026-05-20T20:44:51.643Z] INFO [aft-pi] [aft] [ses_019e471e-1dc0-75e7-8674-8b30d07b2229] format: packages/builtin-web-v2/src/chat/types.ts (~/dev/lokeo/lokeo.code/lokeo.code.prototype/node_modules/.bin/prettier)
[2026-05-20T20:44:54.751Z] INFO [aft-pi] [aft] invalidated 1 files
[2026-05-20T20:45:08.588Z] INFO [aft-pi] [aft] [ses_019e471e-1dc0-75e7-8674-8b30d07b2229] format: packages/builtin-web-v2/src/chat/types.ts (~/dev/lokeo/lokeo.code/lokeo.code.prototype/node_modules/.bin/prettier)
[2026-05-20T20:45:23.881Z] INFO [aft-pi] [aft] [ses_019e471e-1dc0-75e7-8674-8b30d07b2229] format: packages/builtin-web-v2/src/chat/types.ts (~/dev/lokeo/lokeo.code/lokeo.code.prototype/node_modules/.bin/prettier)
[2026-05-20T20:45:50.631Z] INFO [aft-pi] [aft] [ses_019e471e-1dc0-75e7-8674-8b30d07b2229] format: packages/builtin-web-v2/src/chat/types.ts (~/dev/lokeo/lokeo.code/lokeo.code.prototype/node_modules/.bin/prettier)
[2026-05-20T20:46:03.066Z] INFO [aft-pi] [aft] [ses_019e471e-1dc0-75e7-8674-8b30d07b2229] format: packages/builtin-web-v2/src/chat/types.ts (~/dev/lokeo/lokeo.code/lokeo.code.prototype/node_modules/.bin/prettier)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions