Skip to content

leak #14

Closed
Closed

Description

@zedd3v

Description

Image

Environment

  • Plugin: v0.13.1
  • Binary: 0.13.1
  • OS: darwin arm64
  • Node: v24.13.0
  • OpenCode: 1.4.11

Configuration

Enabled flags from ~/.config/opencode/aft.json:

{
  "experimental_search_index": true,
  "experimental_semantic_search": true
}

Diagnostics

  • Timestamp: 2026-04-18T22:41:28.427Z
  • OpenCode installed: true
  • OpenCode config h plugin: true
  • AFT config parse error: none

Config paths

{
  "configDir": "~/.config/opencode",
  "opencodeConfig": "~/.config/opencode/opencode.json",
  "opencodeConfigFormat": "json",
  "aftConfig": "~/.config/opencode/aft.json",
  "aftConfigFormat": "json",
  "tuiConfig": "~/.config/opencode/tui.json",
  "tuiConfigFormat": "json"
}

AFT flags

{
  "experimental_search_index": true,
  "experimental_semantic_search": true
}

Plugin cache

{
  "path": "~/.cache/opencode/packages/@cortexkit/aft-opencode@latest",
  "cached": "0.13.1",
  "latest": "0.13.1"
}

Binary cache

{
  "versions": [
    "v0.13.1"
  ],
  "activeVersion": "v0.13.1",
  "totalSize": 26738688,
  "path": "~/.cache/aft/bin"
}

Storage

{
  "path": "~/.local/share/opencode/storage/plugin/aft",
  "exists": true,
  "indexSize": 145137832,
  "semanticSize": 182204178,
  "backupsSize": 0,
  "urlCacheSize": 69342,
  "onnxruntimeSize": 70837200
}

ONNX Runtime

{
  "required": true,
  "systemPath": null,
  "cachedPath": "~/.local/share/opencode/storage/plugin/aft/onnxruntime/1.24.4",
  "platform": "darwin-arm64",
  "installHint": "Download from https://github.com/microsoft/onnxruntime/rele<USER>es"
}

Log (lt 200 lines)

[2026-04-18T21:15:06.457Z] INFO [aft-plugin] [aft-plugin] added TUI plugin entry to ~/.config/opencode/tui.json
[2026-04-18T21:17:17.052Z] INFO [aft-plugin] Copied npm binary to versioned cache: ~/.cache/aft/bin/v0.13.1/aft
[2026-04-18T21:17:17.052Z] INFO [aft-plugin] Resolved binary: ~/.cache/aft/bin/v0.13.1/aft
[2026-04-18T21:17:17.058Z] INFO [aft-plugin] Config loaded from ~/.config/opencode/aft.json
[2026-04-18T21:17:17.060Z] INFO [aft-plugin] Downloading ONNX Runtime v1.24.4 for darwin/arm64...
[2026-04-18T21:17:21.500Z] INFO [aft-plugin] ORT extract: libonnxruntime.dylib — isSymlink=false, isFile=true, size=35418600
[2026-04-18T21:17:21.500Z] INFO [aft-plugin] ORT extract: libonnxruntime.1.24.4.dylib.dSYM — isSymlink=false, isFile=false, size=96
[2026-04-18T21:17:21.500Z] INFO [aft-plugin] ORT extract: libonnxruntime.1.24.4.dylib — isSymlink=false, isFile=true, size=35418600
[2026-04-18T21:17:21.501Z] INFO [aft-plugin] ORT extract: failed to copy libonnxruntime.1.24.4.dylib.dSYM: Error: ENOTSUP: operation not supported on socket, copyfile '~/.local/share/opencode/storage/plugin/aft/onnxruntime/1.24.4.tmp.74131/onnxruntime-osx-arm64-1.24.4/lib/libonnxruntime.1.24.4.dylib.dSYM' -> '~/.local/share/opencode/storage/plugin/aft/onnxruntime/1.24.4/libonnxruntime.1.24.4.dylib.dSYM'
[2026-04-18T21:17:21.508Z] INFO [aft-plugin] ONNX Runtime v1.24.4 installed to ~/.local/share/opencode/storage/plugin/aft/onnxruntime/1.24.4
[2026-04-18T21:17:24.113Z] INFO [aft-plugin] RPC server listening on 127.0.0.1:60090
[2026-04-18T21:17:44.956Z] INFO [aft-plugin] Resolved binary: ~/.cache/aft/bin/v0.13.1/aft
[2026-04-18T21:17:44.958Z] INFO [aft-plugin] Config loaded from ~/.config/opencode/aft.json
[2026-04-18T21:17:44.958Z] INFO [aft-plugin] ONNX Runtime found at ~/.local/share/opencode/storage/plugin/aft/onnxruntime/1.24.4
[2026-04-18T21:17:46.573Z] INFO [aft-plugin] RPC server listening on 127.0.0.1:60348
[2026-04-18T21:17:50.134Z] INFO [aft-plugin] RPC call: get-announcement params={}
[2026-04-18T21:17:50.135Z] INFO [aft-plugin] RPC result: get-announcement => {"show":false}
[2026-04-18T21:17:50.136Z] INFO [aft-plugin] RPC call: get-warnings params={}
[2026-04-18T21:17:50.136Z] INFO [aft-plugin] RPC result: get-warnings => {"warnings":[]}
[2026-04-18T21:18:05.684Z] INFO [aft-plugin] RPC call: status params={"sessionID":"ses_29cc7b039ffedajAhlqNKgC8zw"}
[2026-04-18T21:18:05.685Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.13.1/aft (cwd: ~/Desktop/PRISM)
[2026-04-18T21:18:06.155Z] INFO [aft-plugin] [aft] started, pid 87753
[2026-04-18T21:18:06.180Z] INFO [aft-plugin] [aft] watcher started: ~/Desktop/PRISM
[2026-04-18T21:18:06.180Z] INFO [aft-plugin] [aft] project root set: ~/Desktop/PRISM
[2026-04-18T21:18:06.181Z] INFO [aft-plugin] Binary version: 0.13.1
[2026-04-18T21:18:06.181Z] INFO [aft-plugin] RPC result: status => {"id":"3","success":true,"disk":{"semantic_disk_bytes":0,"storage_dir":"~/.local/share/opencode/storage/plugin/aft","trigram_disk_bytes":0},"features":{"experimental_search_index":true,"experi
[2026-04-18T21:18:07.683Z] INFO [aft-plugin] RPC call: status params={"sessionID":"ses_29cc7b039ffedajAhlqNKgC8zw"}
[2026-04-18T21:18:07.683Z] INFO [aft-plugin] RPC result: status => {"id":"4","success":true,"disk":{"semantic_disk_bytes":11778247,"storage_dir":"~/.local/share/opencode/storage/plugin/aft","trigram_disk_bytes":0},"features":{"experimental_search_index":true,
[2026-04-18T21:19:20.171Z] INFO [aft-plugin] [aft] [aft] pre-warmed symbol cache: 6303 files
[2026-04-18T21:20:05.066Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.13.1/aft (cwd: ~/Desktop/PRISM)
[2026-04-18T21:20:05.083Z] INFO [aft-plugin] [aft] started, pid 89455
[2026-04-18T21:20:05.125Z] INFO [aft-plugin] [aft] watcher started: ~/Desktop/PRISM
[2026-04-18T21:20:05.125Z] INFO [aft-plugin] [aft] project root set: ~/Desktop/PRISM
[2026-04-18T21:20:05.125Z] INFO [aft-plugin] Binary version: 0.13.1
[2026-04-18T21:22:02.699Z] INFO [aft-plugin] [aft] [aft] pre-warmed symbol cache: 6303 files
[2026-04-18T21:33:47.661Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.13.1/aft (cwd: ~/Desktop/PRISM)
[2026-04-18T21:33:47.693Z] INFO [aft-plugin] [aft] started, pid 92643
[2026-04-18T21:33:47.743Z] INFO [aft-plugin] [aft] watcher started: ~/Desktop/PRISM
[2026-04-18T21:33:47.743Z] INFO [aft-plugin] [aft] project root set: ~/Desktop/PRISM
[2026-04-18T21:33:47.744Z] INFO [aft-plugin] Binary version: 0.13.1
[2026-04-18T21:37:20.524Z] INFO [aft-plugin] [aft] [aft] pre-warmed symbol cache: 6303 files
[2026-04-18T21:48:32.239Z] INFO [aft-plugin] Resolved binary: ~/.cache/aft/bin/v0.13.1/aft
[2026-04-18T21:48:32.241Z] INFO [aft-plugin] Config loaded from ~/.config/opencode/aft.json
[2026-04-18T21:48:32.241Z] INFO [aft-plugin] ONNX Runtime found at ~/.local/share/opencode/storage/plugin/aft/onnxruntime/1.24.4
[2026-04-18T21:48:34.452Z] INFO [aft-plugin] RPC server listening on 127.0.0.1:63086
[2026-04-18T21:48:37.034Z] INFO [aft-plugin] RPC call: get-announcement params={}
[2026-04-18T21:48:37.035Z] INFO [aft-plugin] RPC result: get-announcement => {"show":false}
[2026-04-18T21:48:37.035Z] INFO [aft-plugin] RPC call: get-warnings params={}
[2026-04-18T21:48:37.035Z] INFO [aft-plugin] RPC result: get-warnings => {"warnings":[]}
[2026-04-18T21:50:35.350Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.13.1/aft (cwd: ~/Desktop/PRISM)
[2026-04-18T21:50:35.368Z] INFO [aft-plugin] [aft] started, pid 96410
[2026-04-18T21:50:35.412Z] INFO [aft-plugin] [aft] watcher started: ~/Desktop/PRISM
[2026-04-18T21:50:35.412Z] INFO [aft-plugin] [aft] project root set: ~/Desktop/PRISM
[2026-04-18T21:50:35.415Z] INFO [aft-plugin] Binary version: 0.13.1
[2026-04-18T21:52:08.808Z] INFO [aft-plugin] [aft] [aft] pre-warmed symbol cache: 6303 files
[2026-04-18T22:00:18.974Z] INFO [aft-plugin] Resolved binary: ~/.cache/aft/bin/v0.13.1/aft
[2026-04-18T22:00:18.980Z] INFO [aft-plugin] Config loaded from ~/.config/opencode/aft.json
[2026-04-18T22:00:18.980Z] INFO [aft-plugin] ONNX Runtime found at ~/.local/share/opencode/storage/plugin/aft/onnxruntime/1.24.4
[2026-04-18T22:00:29.351Z] INFO [aft-plugin] RPC server listening on 127.0.0.1:64467
[2026-04-18T22:00:36.359Z] INFO [aft-plugin] RPC call: get-announcement params={}
[2026-04-18T22:00:36.359Z] INFO [aft-plugin] RPC result: get-announcement => {"show":false}
[2026-04-18T22:00:36.370Z] INFO [aft-plugin] RPC call: get-warnings params={}
[2026-04-18T22:00:36.371Z] INFO [aft-plugin] RPC result: get-warnings => {"warnings":[]}
[2026-04-18T21:59:52.272Z] INFO [aft-plugin] [aft] invalidated 12 files
[2026-04-18T22:01:39.694Z] INFO [aft-plugin] [aft] invalidated 4 files
[2026-04-18T22:02:58.438Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.13.1/aft (cwd: ~/Desktop/PRISM)
[2026-04-18T22:02:58.459Z] INFO [aft-plugin] [aft] started, pid 927
[2026-04-18T22:02:58.528Z] INFO [aft-plugin] [aft] watcher started: ~/Desktop/PRISM
[2026-04-18T22:02:58.528Z] INFO [aft-plugin] [aft] project root set: ~/Desktop/PRISM
[2026-04-18T22:02:58.529Z] INFO [aft-plugin] Binary version: 0.13.1
[2026-04-18T22:03:59.281Z] INFO [aft-plugin] [aft] invalidated 2 files
[2026-04-18T22:04:54.384Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.13.1/aft (cwd: ~/Desktop/PRISM)
[2026-04-18T22:04:54.467Z] INFO [aft-plugin] [aft] started, pid 1701
[2026-04-18T22:04:54.525Z] INFO [aft-plugin] [aft] watcher started: ~/Desktop/PRISM
[2026-04-18T22:04:54.525Z] INFO [aft-plugin] [aft] project root set: ~/Desktop/PRISM
[2026-04-18T22:04:54.525Z] INFO [aft-plugin] Binary version: 0.13.1
[2026-04-18T22:04:45.918Z] INFO [aft-plugin] [aft] invalidated 2 files
[2026-04-18T22:06:06.598Z] INFO [aft-plugin] [aft] [aft] pre-warmed symbol cache: 6302 files
[2026-04-18T22:08:16.529Z] INFO [aft-plugin] [aft] [aft] pre-warmed symbol cache: 6302 files
[2026-04-18T22:08:42.701Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.13.1/aft (cwd: ~/Desktop/PRISM)
[2026-04-18T22:08:42.717Z] INFO [aft-plugin] [aft] started, pid 2598
[2026-04-18T22:08:42.784Z] INFO [aft-plugin] [aft] watcher started: ~/Desktop/PRISM
[2026-04-18T22:08:42.784Z] INFO [aft-plugin] [aft] project root set: ~/Desktop/PRISM
[2026-04-18T22:08:42.784Z] INFO [aft-plugin] Binary version: 0.13.1
[2026-04-18T22:11:14.662Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.13.1/aft (cwd: ~/Desktop/PRISM)
[2026-04-18T22:11:14.695Z] INFO [aft-plugin] [aft] started, pid 15549
[2026-04-18T22:11:14.783Z] INFO [aft-plugin] [aft] watcher started: ~/Desktop/PRISM
[2026-04-18T22:11:14.783Z] INFO [aft-plugin] [aft] project root set: ~/Desktop/PRISM
[2026-04-18T22:11:14.784Z] INFO [aft-plugin] Binary version: 0.13.1
[2026-04-18T22:13:08.535Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.13.1/aft (cwd: ~/Desktop/PRISM)
[2026-04-18T22:13:08.637Z] INFO [aft-plugin] [aft] started, pid 16056
[2026-04-18T22:13:08.672Z] INFO [aft-plugin] [aft] watcher started: ~/Desktop/PRISM
[2026-04-18T22:13:08.672Z] INFO [aft-plugin] [aft] project root set: ~/Desktop/PRISM
[2026-04-18T22:13:08.673Z] INFO [aft-plugin] Binary version: 0.13.1
[2026-04-18T22:13:48.593Z] INFO [aft-plugin] [aft] [aft] pre-warmed symbol cache: 6302 files
[2026-04-18T22:18:19.899Z] INFO [aft-plugin] [aft] [aft] pre-warmed symbol cache: 6302 files
[2026-04-18T22:21:03.661Z] INFO [aft-plugin] [aft] [aft] pre-warmed symbol cache: 6302 files
[2026-04-18T22:23:02.206Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.13.1/aft (cwd: ~/Desktop/PRISM)
[2026-04-18T22:23:02.321Z] INFO [aft-plugin] [aft] started, pid 58508
[2026-04-18T22:23:02.777Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.13.1/aft (cwd: ~/Desktop/PRISM)
[2026-04-18T22:23:02.949Z] INFO [aft-plugin] [aft] started, pid 58562
[2026-04-18T22:23:03.461Z] INFO [aft-plugin] [aft] watcher started: ~/Desktop/PRISM
[2026-04-18T22:23:03.461Z] INFO [aft-plugin] [aft] project root set: ~/Desktop/PRISM
[2026-04-18T22:23:03.510Z] INFO [aft-plugin] [aft] watcher started: ~/Desktop/PRISM
[2026-04-18T22:23:03.525Z] INFO [aft-plugin] [aft] project root set: ~/Desktop/PRISM
[2026-04-18T22:23:03.544Z] INFO [aft-plugin] Binary version: 0.13.1
[2026-04-18T22:23:03.545Z] INFO [aft-plugin] Binary version: 0.13.1
[2026-04-18T22:23:25.363Z] INFO [aft-plugin] Fetching URL: https://go.dev/doc/go1.26
[2026-04-18T22:23:25.374Z] INFO [aft-plugin] Fetching URL: https://go.dev/doc/go1.26
[2026-04-18T22:23:25.792Z] INFO [aft-plugin] URL cached (69220 bytes): https://go.dev/doc/go1.26
[2026-04-18T22:23:25.792Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.13.1/aft (cwd: ~/Desktop/PRISM)
[2026-04-18T22:23:25.805Z] INFO [aft-plugin] URL cached (69220 bytes): https://go.dev/doc/go1.26
[2026-04-18T22:23:25.811Z] INFO [aft-plugin] [aft] started, pid 58771
[2026-04-18T22:23:26.145Z] INFO [aft-plugin] [aft] watcher started: ~/Desktop/PRISM
[2026-04-18T22:23:26.145Z] INFO [aft-plugin] [aft] project root set: ~/Desktop/PRISM
[2026-04-18T22:23:26.150Z] INFO [aft-plugin] Binary version: 0.13.1
[2026-04-18T22:23:30.547Z] INFO [aft-plugin] URL cache hit: https://go.dev/doc/go1.26 (5s old)
[2026-04-18T22:23:30.722Z] INFO [aft-plugin] URL cache hit: https://go.dev/doc/go1.26 (5s old)
[2026-04-18T22:23:30.724Z] INFO [aft-plugin] URL cache hit: https://go.dev/doc/go1.26 (5s old)
[2026-04-18T22:25:07.446Z] INFO [aft-plugin] URL cache hit: https://go.dev/doc/go1.26 (102s old)
[2026-04-18T22:25:07.467Z] INFO [aft-plugin] URL cache hit: https://go.dev/doc/go1.26 (102s old)
[2026-04-18T22:35:49.043Z] INFO [aft-plugin] [aft] invalidated 8 files
[2026-04-18T22:36:01.467Z] INFO [aft-plugin] [aft] [aft] pre-warmed symbol cache: 6302 files
[2026-04-18T22:36:19.274Z] INFO [aft-plugin] [aft] [aft] pre-warmed symbol cache: 6302 files
[2026-04-18T22:36:36.607Z] INFO [aft-plugin] [aft] [aft] pre-warmed symbol cache: 6302 files
[2026-04-18T22:36:54.959Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.13.1/aft (cwd: ~/Desktop/PRISM)
[2026-04-18T22:36:55.183Z] INFO [aft-plugin] [aft] started, pid 94019
[2026-04-18T22:36:55.303Z] INFO [aft-plugin] [aft] watcher started: ~/Desktop/PRISM
[2026-04-18T22:36:55.303Z] INFO [aft-plugin] [aft] project root set: ~/Desktop/PRISM
[2026-04-18T22:36:55.577Z] INFO [aft-plugin] Binary version: 0.13.1
[2026-04-18T22:36:56.472Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.13.1/aft (cwd: ~/Desktop/PRISM)
[2026-04-18T22:36:56.519Z] INFO [aft-plugin] [aft] started, pid 94072
[2026-04-18T22:36:56.816Z] INFO [aft-plugin] Process exited during shutdown
[2026-04-18T22:36:56.816Z] INFO [aft-plugin] [aft] watcher started: ~/Desktop/PRISM
[2026-04-18T22:36:56.816Z] INFO [aft-plugin] [aft] project root set: ~/Desktop/PRISM
[2026-04-18T22:36:56.819Z] INFO [aft-plugin] Binary version: 0.13.1
[2026-04-18T22:40:50.129Z] INFO [aft-plugin] Process exited: code=null, signal=SIGTERM
[2026-04-18T22:40:50.148Z] INFO [aft-plugin] Auto-restart #1 in 100ms
[2026-04-18T22:40:50.153Z] INFO [aft-plugin] Process exited: code=null, signal=SIGTERM
[2026-04-18T22:40:50.154Z] INFO [aft-plugin] Auto-restart #1 in 100ms
[2026-04-18T22:40:50.157Z] INFO [aft-plugin] Process exited: code=null, signal=SIGTERM
[2026-04-18T22:40:50.158Z] INFO [aft-plugin] Auto-restart #1 in 100ms
[2026-04-18T22:40:50.162Z] INFO [aft-plugin] Process exited: code=null, signal=SIGTERM
[2026-04-18T22:40:50.163Z] INFO [aft-plugin] Auto-restart #1 in 100ms
[2026-04-18T22:40:50.166Z] INFO [aft-plugin] Process exited: code=null, signal=SIGTERM
[2026-04-18T22:40:50.167Z] INFO [aft-plugin] Auto-restart #1 in 100ms
[2026-04-18T22:40:50.188Z] INFO [aft-plugin] Process exited: code=null, signal=SIGTERM
[2026-04-18T22:40:50.188Z] INFO [aft-plugin] Auto-restart #1 in 100ms
[2026-04-18T22:40:50.189Z] INFO [aft-plugin] Process exited: code=null, signal=SIGTERM
[2026-04-18T22:40:50.189Z] INFO [aft-plugin] Auto-restart #1 in 100ms
[2026-04-18T22:40:50.192Z] INFO [aft-plugin] Process exited: code=null, signal=SIGTERM
[2026-04-18T22:40:50.192Z] INFO [aft-plugin] Auto-restart #1 in 100ms
[2026-04-18T22:40:50.254Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.13.1/aft (cwd: ~/Desktop/PRISM)
[2026-04-18T22:40:50.294Z] INFO [aft-plugin] [aft] started, pid 95094
[2026-04-18T22:40:50.298Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.13.1/aft (cwd: ~/Desktop/PRISM)
[2026-04-18T22:40:50.301Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.13.1/aft (cwd: ~/Desktop/PRISM)
[2026-04-18T22:40:50.303Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.13.1/aft (cwd: ~/Desktop/PRISM)
[2026-04-18T22:40:50.305Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.13.1/aft (cwd: ~/Desktop/PRISM)
[2026-04-18T22:40:50.307Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.13.1/aft (cwd: ~/Desktop/PRISM)
[2026-04-18T22:40:50.309Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.13.1/aft (cwd: ~/Desktop/PRISM)
[2026-04-18T22:40:50.310Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.13.1/aft (cwd: ~/Desktop/PRISM)
[2026-04-18T22:40:50.312Z] INFO [aft-plugin] [aft] started, pid 95095
[2026-04-18T22:40:50.312Z] INFO [aft-plugin] [aft] started, pid 95096
[2026-04-18T22:40:50.312Z] INFO [aft-plugin] [aft] started, pid 95097
[2026-04-18T22:40:50.312Z] INFO [aft-plugin] [aft] started, pid 95098
[2026-04-18T22:40:50.314Z] INFO [aft-plugin] [aft] started, pid 95100
[2026-04-18T22:40:50.314Z] INFO [aft-plugin] [aft] started, pid 95099
[2026-04-18T22:40:50.316Z] INFO [aft-plugin] [aft] started, pid 95101
[2026-04-18T22:40:54.669Z] INFO [aft-plugin] Process exited: code=null, signal=SIGTERM
[2026-04-18T22:40:54.675Z] INFO [aft-plugin] Auto-restart #1 in 100ms
[2026-04-18T22:40:54.676Z] INFO [aft-plugin] Process exited: code=null, signal=SIGTERM
[2026-04-18T22:40:54.676Z] INFO [aft-plugin] Auto-restart #1 in 100ms
[2026-04-18T22:40:54.778Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.13.1/aft (cwd: ~/Desktop/PRISM)
[2026-04-18T22:40:54.788Z] INFO [aft-plugin] [aft] started, pid 95172
[2026-04-18T22:40:54.788Z] INFO [aft-plugin] Spawning binary: ~/.cache/aft/bin/v0.13.1/aft (cwd: ~/Desktop/PRISM)
[2026-04-18T22:40:54.799Z] INFO [aft-plugin] [aft] started, pid 95173

Username and home paths have been stripped from this report.

Activity

  1. ualtinok commented on Apr 19, 2026

    @ualtinok
    Collaborator

    Were you running a single session while this happened or multiple?

  2. zedd3v commented on Apr 19, 2026

    @zedd3v
    Author

    Single session

  3. ualtinok commented on Apr 20, 2026

    @ualtinok
    Collaborator

    Fixed in v0.14.0 🎉

    We traced this to three compounding root causes:

    1. External kill signals (SIGTERM/SIGKILL on shutdown) were being treated as real crashes and triggering auto-restart cascades — multiple bridges would all respawn at once, reloading ONNX + indexes each time.
    2. No process-level shutdown hooks, so orphaned aft processes could outlive the host.
    3. Each session spawned its own aft process, duplicating ONNX + semantic index + trigram index + LSP servers. On larger projects that multiplied memory linearly.

    v0.14.0 fixes all three: signals are now distinguished from crashes, the plugin installs SIGTERM/SIGINT/SIGHUP/beforeExit handlers that cleanly shut bridges down, and bridges are now shared across all sessions of the same project with undo/checkpoint state partitioned per-session internally. On the scenario you reported, this should bring memory usage down roughly 8×.

    Please upgrade to v0.14.0 (will auto-download on next OpenCode launch) and let us know if you still see the behavior. Thanks for the detailed log — the 22:40:50 SIGTERM cascade in your output is exactly what pointed us at the signal-handling bug.

    Full release notes: https://github.com/cortexkit/aft/releases/tag/v0.14.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions