Skip to content

AFT issue: windows doctor/setup fail to setup AFT #64

@Zireael

Description

@Zireael

Short description

windows doctor/setup fail to setup AFT by not swapping the binary and not detecting/downloading onnx

What happened?

Hi, I noticed four issues with aft setup and doctor:

  1. They download the latest binary, but fail to swap it over - when I start opencode, I still see the previous version v.0.29.1 in TUI. Possible issue is that Windows does not allow file/folder hot swaps if a process is using that file/folder?
  2. AFT is not looking very hard for onnxruntime - I have it already installed on my system and in PATH. Maybe it is looking for different executable name, but in that case it is failing to download the executable itself. After several opencode restarts doctor still keep saying that onnx is missing and it will be downloaded on next start.
  3. Storage says 'not created' and it doesn't get created on startup.
  4. The final message of doctor says that 'some issues found', but it is not clear what from doctor output is an issue to solve, and what is diagnostic text - consider using red color coding for diagnostic output that is an issue.

I manually deleted v0.29.1 from C:\Users\zir\AppData\Local\aft\bin and there is version 0.30.3 folder in there, but when I run opencode, folder for 0.29.1 gets recreated in C:\Users\zir\AppData\Local\aft\bin and version 0.30.3 gets ignored.

Next I tried npx @cortexkit/aft doctor --clear and cleared all caches - it didn't help and after opencode restart, v0.29.1 has come back.

Also, in the logs I see warning
Live OpenCode HTTP listener unreachable; bg-notifications wake path = in-process-fallback. Wakes will still arrive but the upstream duplicate-runner bug (anomalyco/opencode#28202) is not worked around. Launch with 'opencode --port 0' in TUI mode to activate the workaround.
but it is not being surfaced to the user in TUI as a toast (if it is an issue that needs addressing by the user.)

Image also: Image

Diagnostics

Plugin version

0.29.1 / 0.30.3

AFT binary version

No response

Platform

windows 11 x64

Log output (optional)

[2026-05-25T12:37:52.123Z] INFO [aft-plugin] [ses_1a579d320ffeWls141dxmJ4P0z] [aft-plugin] bg-notifications: wake promptAsync start {"event":"bash_completion_wake_prompt_async_start","delivery_id":"aftdel_fda2faa7-e8ed-428d-a812-3d1a36c58108","attempt":1,"task_ids":["bash-8992d3de"],"directory":"[redacted]","reminder_sha256":"85b5c95c9ac77a27","reminder_chars":494,"wake_client_path":"in-process-fallback","prompt_context":{"agent":"Sisyphus - ultraworker","model":{"providerID":"opencode","modelID":"big-pickle"},"variant":null}}
[2026-05-25T12:37:52.131Z] INFO [aft-plugin] [ses_1a579d320ffeWls141dxmJ4P0z] [aft-plugin] bg-notifications: wake promptAsync ok {"event":"bash_completion_wake_prompt_async_ok","delivery_id":"aftdel_fda2faa7-e8ed-428d-a812-3d1a36c58108","attempt":1,"task_ids":["bash-8992d3de"]}
[2026-05-25T12:37:52.292Z] INFO [aft-plugin] [ses_1a579d320ffeWls141dxmJ4P0z] [aft-plugin] bg-notifications: ack ok {"event":"bash_completion_ack_ok","delivery_id":"aftdel_fda2faa7-e8ed-428d-a812-3d1a36c58108","task_ids":["bash-8992d3de"]}
[2026-05-25T12:39:11.016Z] INFO [aft-plugin] [aft] [ses_1a579d320ffeWls141dxmJ4P0z] invalidated 1 files
[2026-05-25T12:39:11.016Z] INFO [aft-plugin] [aft] [ses_1a579d320ffeWls141dxmJ4P0z] invalidated 2 files
[2026-05-25T12:39:11.016Z] INFO [aft-plugin] [aft] [ses_1a579d320ffeWls141dxmJ4P0z] invalidated 2 files
[2026-05-25T12:39:11.016Z] INFO [aft-plugin] [aft] [ses_1a579d320ffeWls141dxmJ4P0z] invalidated 1 files
[2026-05-25T12:39:11.016Z] INFO [aft-plugin] [aft] [ses_1a579d320ffeWls141dxmJ4P0z] invalidated 1 files
[2026-05-26T05:34:38.841Z] INFO [aft-plugin] Resolved binary: C:\Users\zir\AppData\Local\aft\bin\v0.29.1\aft.exe
[2026-05-26T05:34:38.844Z] INFO [aft-plugin] AFT storage migration skipped for opencode: no legacy data at C:\Users\zir\AppData\Local\opencode\storage\plugin\aft; using C:\Users\zir\AppData\Local\cortexkit\aft for fresh install
[2026-05-26T05:34:38.856Z] INFO [aft-plugin] Config loaded from C:\Users\zir\.config\opencode\aft.jsonc
[2026-05-26T05:34:38.922Z] INFO [aft-plugin] [aft-plugin] added TUI plugin entry to C:\Users\zir\.config\opencode\tui.jsonc
[2026-05-26T05:34:38.934Z] INFO [aft-plugin] Workflow hints injected (1168 chars)
[2026-05-26T05:34:38.948Z] INFO [aft-plugin] Live OpenCode HTTP listener unreachable; bg-notifications wake path = in-process-fallback. Wakes will still arrive but the upstream duplicate-runner bug (anomalyco/opencode#28202) is not worked around. Launch with `opencode --port 0` in TUI mode to activate the workaround.
[2026-05-26T05:34:38.999Z] INFO [aft-plugin] RPC server listening on 127.0.0.1:55233
[2026-05-26T05:34:43.972Z] INFO [aft-plugin] [auto-update-checker] Plugin not found in config
[2026-05-26T05:35:31.937Z] INFO [aft-plugin] Resolved binary: C:\Users\zir\AppData\Local\aft\bin\v0.29.1\aft.exe
[2026-05-26T05:35:31.938Z] INFO [aft-plugin] AFT storage migration skipped for opencode: no legacy data at C:\Users\zir\AppData\Local\opencode\storage\plugin\aft; using C:\Users\zir\AppData\Local\cortexkit\aft for fresh install
[2026-05-26T05:35:31.950Z] INFO [aft-plugin] Config loaded from C:\Users\zir\.config\opencode\aft.jsonc
[2026-05-26T05:35:31.993Z] INFO [aft-plugin] Workflow hints injected (1168 chars)
[2026-05-26T05:35:32.004Z] INFO [aft-plugin] Live OpenCode HTTP listener unreachable; bg-notifications wake path = in-process-fallback. Wakes will still arrive but the upstream duplicate-runner bug (anomalyco/opencode#28202) is not worked around. Launch with `opencode --port 0` in TUI mode to activate the workaround.
[2026-05-26T05:35:32.028Z] INFO [aft-plugin] RPC server listening on 127.0.0.1:54158
[2026-05-26T05:35:37.323Z] INFO [aft-plugin] [auto-update-checker] Skipping check (another instance ran one recently)
[2026-05-26T05:36:47.550Z] INFO [aft-plugin] Resolved binary: C:\Users\zir\AppData\Local\aft\bin\v0.29.1\aft.exe
[2026-05-26T05:36:47.551Z] INFO [aft-plugin] AFT storage migration skipped for opencode: no legacy data at C:\Users\zir\AppData\Local\opencode\storage\plugin\aft; using C:\Users\zir\AppData\Local\cortexkit\aft for fresh install
[2026-05-26T05:36:47.563Z] INFO [aft-plugin] Config loaded from C:\Users\zir\.config\opencode\aft.jsonc
[2026-05-26T05:36:47.608Z] INFO [aft-plugin] Workflow hints injected (1168 chars)
[2026-05-26T05:36:47.618Z] INFO [aft-plugin] Live OpenCode HTTP listener unreachable; bg-notifications wake path = in-process-fallback. Wakes will still arrive but the upstream duplicate-runner bug (anomalyco/opencode#28202) is not worked around. Launch with `opencode --port 0` in TUI mode to activate the workaround.
[2026-05-26T05:36:47.642Z] INFO [aft-plugin] RPC server listening on 127.0.0.1:61080
[2026-05-26T05:36:52.982Z] INFO [aft-plugin] [auto-update-checker] Skipping check (another instance ran one recently)
[2026-05-26T05:37:07.383Z] INFO [aft-plugin] Resolved binary: C:\Users\zir\AppData\Local\aft\bin\v0.29.1\aft.exe
[2026-05-26T05:37:07.383Z] INFO [aft-plugin] AFT storage migration skipped for opencode: no legacy data at C:\Users\zir\AppData\Local\opencode\storage\plugin\aft; using C:\Users\zir\AppData\Local\cortexkit\aft for fresh install
[2026-05-26T05:37:07.395Z] INFO [aft-plugin] Config loaded from C:\Users\zir\.config\opencode\aft.jsonc
[2026-05-26T05:37:07.439Z] INFO [aft-plugin] Workflow hints injected (1168 chars)
[2026-05-26T05:37:07.449Z] INFO [aft-plugin] Live OpenCode HTTP listener unreachable; bg-notifications wake path = in-process-fallback. Wakes will still arrive but the upstream duplicate-runner bug (anomalyco/opencode#28202) is not worked around. Launch with `opencode --port 0` in TUI mode to activate the workaround.
[2026-05-26T05:37:07.474Z] INFO [aft-plugin] RPC server listening on 127.0.0.1:61105
[2026-05-26T05:37:12.620Z] INFO [aft-plugin] [auto-update-checker] Skipping check (another instance ran one recently)
[2026-05-26T05:37:38.675Z] INFO [aft-plugin] Resolved binary: C:\Users\zir\AppData\Local\aft\bin\v0.29.1\aft.exe
[2026-05-26T05:37:38.676Z] INFO [aft-plugin] AFT storage migration skipped for opencode: no legacy data at C:\Users\zir\AppData\Local\opencode\storage\plugin\aft; using C:\Users\zir\AppData\Local\cortexkit\aft for fresh install
[2026-05-26T05:37:38.688Z] INFO [aft-plugin] Config loaded from C:\Users\zir\.config\opencode\aft.jsonc
[2026-05-26T05:37:38.731Z] INFO [aft-plugin] Workflow hints injected (1168 chars)
[2026-05-26T05:37:38.741Z] INFO [aft-plugin] Live OpenCode HTTP listener unreachable; bg-notifications wake path = in-process-fallback. Wakes will still arrive but the upstream duplicate-runner bug (anomalyco/opencode#28202) is not worked around. Launch with `opencode --port 0` in TUI mode to activate the workaround.
[2026-05-26T05:37:38.767Z] INFO [aft-plugin] RPC server listening on 127.0.0.1:61198
[2026-05-26T05:37:44.017Z] INFO [aft-plugin] [auto-update-checker] Skipping check (another instance ran one recently)
[2026-05-26T05:41:41.818Z] INFO [aft-plugin] Resolved binary: C:\Users\zir\AppData\Local\aft\bin\v0.29.1\aft.exe
[2026-05-26T05:41:41.819Z] INFO [aft-plugin] AFT storage migration skipped for opencode: no legacy data at C:\Users\zir\AppData\Local\opencode\storage\plugin\aft; using C:\Users\zir\AppData\Local\cortexkit\aft for fresh install
[2026-05-26T05:41:41.831Z] INFO [aft-plugin] Config loaded from C:\Users\zir\.config\opencode\aft.jsonc
[2026-05-26T05:41:41.872Z] INFO [aft-plugin] Workflow hints injected (1168 chars)
[2026-05-26T05:41:41.882Z] INFO [aft-plugin] Live OpenCode HTTP listener unreachable; bg-notifications wake path = in-process-fallback. Wakes will still arrive but the upstream duplicate-runner bug (anomalyco/opencode#28202) is not worked around. Launch with `opencode --port 0` in TUI mode to activate the workaround.
[2026-05-26T05:41:41.905Z] INFO [aft-plugin] RPC server listening on 127.0.0.1:54944
[2026-05-26T05:41:47.269Z] INFO [aft-plugin] [auto-update-checker] Skipping check (another instance ran one recently)

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