Skip to content

AFT issue: semantic index keep empty, but search index is working... but in here we #43

@codelonesomest

Description

@codelonesomest

Description

semantic index keep empty, but search index is working... but in here we have semantic (.local/share/opencode/storage/plugin/aft (index: 864.3 KB, semantic: 173.8 MB, backups: 723.1 KB)

Environment

  • AFT CLI: v0.26.4
  • AFT binary: 0.26.4
  • OS: darwin arm64
  • Node: v22.21.1

Diagnostics

  • Timestamp: 2026-05-19T15:46:04.772Z
  • AFT CLI: v0.26.4
  • AFT binary: 0.26.4
  • OS: darwin arm64
  • Node: v22.21.1

OpenCode

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

Config paths

{
  "configDir": "~/.config/opencode",
  "harnessConfig": "~/.config/opencode/opencode.jsonc",
  "harnessConfigFormat": "jsonc",
  "aftConfig": "~/.config/opencode/aft.jsonc",
  "aftConfigFormat": "jsonc",
  "tuiConfig": "~/.config/opencode/tui.json",
  "tuiConfigFormat": "json"
}

AFT flags

{
  "enabled": true,
  "hoist_builtin_tools": true,
  "tool_surface": "recommended",
  "search_index": true,
  "semantic_search": true,
  "restrict_to_project_root": false,
  "auto_update": true,
  "max_callgraph_files": 5000,
  "lsp": {
    "auto_install": true,
    "grace_days": 7
  },
  "experimental": {
    "lsp_ty": false,
    "bash": {
      "rewrite": true,
      "compress": true,
      "background": true
    }
  }
}

Plugin cache

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

Storage

{
  "path": "~/.local/share/opencode/storage/plugin/aft",
  "exists": true,
  "sizesByKey": {
    "index": 885070,
    "semantic": 182204178,
    "backups": 740425,
    "url_cache": 0,
    "onnxruntime": 0
  }
}

ONNX Runtime

{
  "required": true,
  "systemPath": "/opt/homebrew/lib",
  "systemVersion": null,
  "systemCompatible": null,
  "cachedPath": null,
  "cachedVersion": null,
  "cachedCompatible": null,
  "platform": "darwin-arm64",
  "installHint": "brew install onnxruntime (Apple Silicon)",
  "requirement": ">=1.20"
}

Log file

/var/folders/x2/_jgslr997r7_4_lfgqj8rl_40000gn/T/aft-plugin.log (7 KB)

Binary cache

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

LSP cache

{
  "npm": {
    "path": "~/.cache/aft/lsp-packages",
    "entries": [
      {
        "name": "@biomejs/biome",
        "path": "~/.cache/aft/lsp-packages/%40biomejs%2Fbiome",
        "size": 49959589
      },
      {
        "name": "@vue/language-server",
        "path": "~/.cache/aft/lsp-packages/%40vue%2Flanguage-server",
        "size": 46562616
      },
      {
        "name": "pyright",
        "path": "~/.cache/aft/lsp-packages/pyright",
        "size": 19322140
      },
      {
        "name": "yaml-language-server",
        "path": "~/.cache/aft/lsp-packages/yaml-language-server",
        "size": 17909958
      },
      {
        "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": 3217832
      },
      {
        "name": "dockerfile-language-server-nodejs",
        "path": "~/.cache/aft/lsp-packages/dockerfile-language-server-nodejs",
        "size": 3216279
      },
      {
        "name": "clangd/clangd",
        "path": "~/.cache/aft/lsp-packages/clangd%2Fclangd",
        "size": 79
      }
    ],
    "totalSize": 154690392
  },
  "github": {
    "path": "~/.cache/aft/lsp-binaries",
    "entries": [
      {
        "name": ".quarantine",
        "path": "~/.cache/aft/lsp-binaries/.quarantine",
        "size": 1424568956
      }
    ],
    "totalSize": 1424568956
  },
  "totalSize": 1579259348
}

Logs (last 200 lines per harness)

OpenCode log (/var/folders/x2/_jgslr997r7_4_lfgqj8rl_40000gn/T/aft-plugin.log)

[2026-05-19T14:59:11.156Z] INFO [aft-plugin] Resolved binary: ~/.cache/aft/bin/v0.26.4/aft
[2026-05-19T14:59:11.160Z] WARN [aft-plugin] Config validation error in ~/.config/opencode/aft.jsonc: : Unrecognized key: "enabled"
[2026-05-19T14:59:11.165Z] INFO [aft-plugin] ONNX Runtime found at system path: /opt/homebrew/lib
[2026-05-19T14:59:11.190Z] INFO [aft-plugin] [lsp] auto-install: 4 npm + 0 github install(s) running in background
[2026-05-19T14:59:11.204Z] INFO [aft-plugin] Workflow hints injected (782 chars)
[2026-05-19T14:59:11.205Z] INFO [aft-plugin] ONNX Runtime ready at /opt/homebrew/lib; new bridges will load semantic backend.
[2026-05-19T14:59:11.845Z] INFO [aft-plugin] RPC server listening on 127.0.0.1:49460
[2026-05-19T14:59:16.568Z] INFO [aft-plugin] [auto-update-checker] Already on latest version for channel: latest
[2026-05-19T15:00:34.785Z] INFO [aft-plugin] [ses_1bfe40b1fffe7nwfzCanaIRAAA] Spawning binary: ~/.cache/aft/bin/v0.26.4/aft (cwd: ~/Desktop/own/posimply-x)
[2026-05-19T15:00:34.798Z] INFO [aft-plugin] [aft] started, pid 2948
[2026-05-19T15:00:34.816Z] INFO [aft-plugin] [aft] [ses_1bfe40b1fffe7nwfzCanaIRAAA] gitignore matcher built: 35 pattern(s)
[2026-05-19T15:00:34.830Z] INFO [aft-plugin] [aft] [ses_1bfe40b1fffe7nwfzCanaIRAAA] loaded 53 backup entries across 8 session(s) from disk
[2026-05-19T15:00:34.850Z] INFO [aft-plugin] [aft] [ses_1bfe40b1fffe7nwfzCanaIRAAA] search index: refreshed 4 stale file(s) from disk cache
[2026-05-19T15:00:34.879Z] INFO [aft-plugin] [aft] [ses_1bfe40b1fffe7nwfzCanaIRAAA] loaded symbol cache from disk: 37 files
[2026-05-19T15:00:34.881Z] INFO [aft-plugin] [aft] [ses_1bfe40b1fffe7nwfzCanaIRAAA] project root set: ~/Desktop/own/posimply-x
[2026-05-19T15:00:34.890Z] INFO [aft-plugin] Binary version: 0.26.4
[2026-05-19T15:00:34.897Z] INFO [aft-plugin] [aft] [ses_1bfe40b1fffe7nwfzCanaIRAAA] watcher started: ~/Desktop/own/posimply-x
[2026-05-19T15:00:34.921Z] INFO [aft-plugin] [aft] [ses_1bfe40b1fffe7nwfzCanaIRAAA] persisted symbol cache: 38 files
[2026-05-19T15:00:34.921Z] INFO [aft-plugin] [aft] [ses_1bfe40b1fffe7nwfzCanaIRAAA] pre-warmed symbol cache: 1 new, 37 cached, 38 files total
[2026-05-19T15:00:35.530Z] INFO [aft-plugin] [aft] [ses_1bfe40b1fffe7nwfzCanaIRAAA] built semantic index: 38 files, 0 entries
[2026-05-19T15:00:35.530Z] INFO [aft-plugin] [aft] [ses_1bfe40b1fffe7nwfzCanaIRAAA] skipping semantic index persistence (0 entries)
[2026-05-19T15:00:35.892Z] INFO [aft-plugin] Received status_changed push frame; cached AFT status snapshot
[2026-05-19T15:01:01.578Z] INFO [aft-plugin] [ses_1bfe40b1fffe7nwfzCanaIRAAA] [subagent-detect] cache miss, calling client.session.get(id=ses_1bfe40b1fffe7nwfzCanaIRAAA)
[2026-05-19T15:01:01.589Z] INFO [aft-plugin] [ses_1bfe40b1fffe7nwfzCanaIRAAA] [subagent-detect] SDK returned session=present, parentID=undefined → isSubagent=false
[2026-05-19T15:03:36.951Z] INFO [aft-plugin] [aft] [ses_1bfe40b1fffe7nwfzCanaIRAAA] checkpoint created: apply_patch_1779203016950 (2 files)
[2026-05-19T15:08:49.124Z] INFO [aft-plugin] [aft] [ses_1bfe40b1fffe7nwfzCanaIRAAA] checkpoint created: apply_patch_1779203329123 (1 files)
[2026-05-19T15:14:28.977Z] INFO [aft-plugin] [ses_1bf32f547ffegIpd0AzcGhF7RR] [subagent-detect] cache miss, calling client.session.get(id=ses_1bf32f547ffegIpd0AzcGhF7RR)
[2026-05-19T15:14:28.983Z] INFO [aft-plugin] [ses_1bf32f547ffegIpd0AzcGhF7RR] [subagent-detect] SDK returned session=present, parentID=undefined → isSubagent=false
[2026-05-19T15:14:29.222Z] INFO [aft-plugin] [aft] invalidated 2 files
[2026-05-19T15:14:36.072Z] INFO [aft-plugin] Resolved binary: ~/.cache/aft/bin/v0.26.4/aft
[2026-05-19T15:14:36.076Z] WARN [aft-plugin] Config validation error in ~/.config/opencode/aft.jsonc: : Unrecognized key: "enabled"
[2026-05-19T15:14:36.080Z] INFO [aft-plugin] ONNX Runtime found at system path: /opt/homebrew/lib
[2026-05-19T15:14:36.097Z] INFO [aft-plugin] [lsp] auto-install: 4 npm + 0 github install(s) running in background
[2026-05-19T15:14:36.111Z] INFO [aft-plugin] Workflow hints injected (782 chars)
[2026-05-19T15:14:36.112Z] INFO [aft-plugin] ONNX Runtime ready at /opt/homebrew/lib; new bridges will load semantic backend.
[2026-05-19T15:14:36.684Z] INFO [aft-plugin] RPC server listening on 127.0.0.1:49880
[2026-05-19T15:14:41.114Z] INFO [aft-plugin] [auto-update-checker] Skipping check (another instance ran one recently)
[2026-05-19T15:15:03.234Z] INFO [aft-plugin] [ses_1bf321ceeffeW7KDjUgY5l3HtL] Spawning binary: ~/.cache/aft/bin/v0.26.4/aft (cwd: ~/Desktop/own/posimply-x)
[2026-05-19T15:15:03.242Z] INFO [aft-plugin] [aft] started, pid 6729
[2026-05-19T15:15:03.254Z] INFO [aft-plugin] [aft] [ses_1bf321ceeffeW7KDjUgY5l3HtL] gitignore matcher built: 35 pattern(s)
[2026-05-19T15:15:03.264Z] INFO [aft-plugin] [aft] [ses_1bf321ceeffeW7KDjUgY5l3HtL] loaded 55 backup entries across 8 session(s) from disk
[2026-05-19T15:15:03.286Z] INFO [aft-plugin] [aft] [ses_1bf321ceeffeW7KDjUgY5l3HtL] search index: refreshed 1 stale file(s) from disk cache
[2026-05-19T15:15:03.298Z] INFO [aft-plugin] [aft] [ses_1bf321ceeffeW7KDjUgY5l3HtL] project root set: ~/Desktop/own/posimply-x
[2026-05-19T15:15:03.302Z] INFO [aft-plugin] [aft] [ses_1bf321ceeffeW7KDjUgY5l3HtL] watcher started: ~/Desktop/own/posimply-x
[2026-05-19T15:15:03.306Z] INFO [aft-plugin] [aft] [ses_1bf321ceeffeW7KDjUgY5l3HtL] loaded symbol cache from disk: 37 files
[2026-05-19T15:15:03.307Z] INFO [aft-plugin] Binary version: 0.26.4
[2026-05-19T15:15:03.343Z] INFO [aft-plugin] [aft] [ses_1bf321ceeffeW7KDjUgY5l3HtL] persisted symbol cache: 38 files
[2026-05-19T15:15:03.343Z] INFO [aft-plugin] [aft] [ses_1bf321ceeffeW7KDjUgY5l3HtL] pre-warmed symbol cache: 1 new, 37 cached, 38 files total
[2026-05-19T15:15:03.448Z] INFO [aft-plugin] [aft] [ses_1bf321ceeffeW7KDjUgY5l3HtL] built semantic index: 38 files, 0 entries
[2026-05-19T15:15:03.448Z] INFO [aft-plugin] [aft] [ses_1bf321ceeffeW7KDjUgY5l3HtL] skipping semantic index persistence (0 entries)
[2026-05-19T15:15:04.312Z] INFO [aft-plugin] Received status_changed push frame; cached AFT status snapshot
[2026-05-19T15:15:52.719Z] INFO [aft-plugin] [ses_1bf3161e9ffel0AK0O110s7TPk] [subagent-detect] cache miss, calling client.session.get(id=ses_1bf3161e9ffel0AK0O110s7TPk)
[2026-05-19T15:15:52.723Z] INFO [aft-plugin] [ses_1bf3161e9ffel0AK0O110s7TPk] [subagent-detect] SDK returned session=present, parentID="ses_1bf32f547ffegIpd0AzcGhF7RR" → isSubagent=true
[2026-05-19T15:38:56.901Z] INFO [aft-plugin] [aft] [ses_1bf32f547ffegIpd0AzcGhF7RR] checkpoint created: apply_patch_1779205136901 (1 files)
[2026-05-19T15:40:05.293Z] INFO [aft-plugin] [aft] [ses_1bf32f547ffegIpd0AzcGhF7RR] checkpoint created: apply_patch_1779205205293 (1 files)
[2026-05-19T15:44:16.899Z] INFO [aft-plugin] [aft] invalidated 1 files
[2026-05-19T15:44:20.882Z] INFO [aft-plugin] [aft] [ses_1bf32f547ffegIpd0AzcGhF7RR] checkpoint created: apply_patch_1779205460881 (1 files)
[2026-05-19T15:44:46.102Z] INFO [aft-plugin] [aft] invalidated 1 files

Usernames and home paths have been stripped from this report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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