Skip to content

Bug Report: /ctx-status command not found #6

@starkiller43

Description

@starkiller43

Description

根据文档,/ctx-status 命令应该显示调试信息,包括 tags、pending drops、cache TTL、nudge state、historian progress 等。但是我输入这个命令时,提示找不到该命令。

Environment

  • OS: [ macOS 15.7 / Windows 11]
  • OpenCode Version: [v1.4.3]
  • Plugin Version: [latest]
  • Installation Method: [手动配置 / bunx]

Configuration Files

opencode.json:

{
  "plugin": ["@cortexkit/opencode-magic-context"],
  "compaction": {
    "auto": false,
    "prune": false
  }
}

magic-context.jsonc:

{
  "$schema": "https://raw.githubusercontent.com/cortexkit/opencode-magic-context/master/assets/magic-context.schema.json",
  "enabled": true,
  "historian": {
    "model": "[你的模型配置]"
  }
}

Steps to Reproduce

  1. 安装插件(通过 curl 脚本或手动配置)
  2. 启动 OpenCode
  3. 在对话中输入 /ctx-status
  4. 看到错误:Command not found / 找不到该命令

Expected Behavior

应该显示 Magic Context 的调试信息,包括:

  • Tags
  • Pending drops
  • Cache TTL
  • Nudge state
  • Historian progress
  • Compartment coverage
  • History compression budget

Actual Behavior

-没有这个命令

  • 或没有任何反应
  • 或其他错误信息

Additional Information

  • 运行过 bunx @cortexkit/opencode-magic-context@latest doctor,输出:[┌ Magic Context Doctor

    ◆ OpenCode installed

    ◆ OpenCode config: /Users/abc/.config/opencode/opencode.json

    ◆ Magic Context config: /Users/abc/.config/opencode/magic-context.jsonc

    ◆ Plugin registered in opencode.json

    ◆ No conflicts detected (compaction, DCP, OMO hooks)

    ◆ TUI sidebar plugin configured

    ◆ Cleared outdated plugin cache — latest will download on restart

    ● /Users/abc/.cache/opencode/packages/@cortexkit/opencode-magic-context@latest

    ● Log file: /var/folders/4x/77nzrr516tj57ml3jxvq66j00000gn/T/magic-context.log (not yet created)

    ● OMO config found: /Users/abc/.config/opencode/oh-my-openagent.json


└ Fixed 1 issue(s). Restart OpenCode to apply.]

  • TUI 模式

  • 其他命令如 /ctx-flush

Screenshots

[

Image

]


请问还需要提供什么信息来帮助诊断这个问题?

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