fix: the codex install target ignores CODEX_HOME
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
全局 Codex 路径在 internal/agents/codex.go 第 62-85 行附近由 os.UserHomeDir() 计算;internal/ 下不存在 CODEX_HOME 的查找逻辑。请先阅读该路径解析,然后使用 CODEX_HOME=/tmp/codex codegraph install --target codex --location global 复现,并检查文件落在哪里。完成标准是:设置且非空时,config.toml、AGENTS.md 和 skills 都解析到 $CODEX_HOME 下;uninstall 与能力表保持一致;测试中设置 CODEX_HOME。
由索引模型根据 Issue 内容生成。
描述
What happens
codegraph install --target codex --location global always writes ~/.codex/config.toml, ~/.codex/AGENTS.md and ~/.codex/skills/…, even when CODEX_HOME points somewhere else. Codex then never sees the entry.
What you expected instead
Global Codex paths resolve under $CODEX_HOME when it is set and non-empty, else under ~/.codex.
Steps to reproduce
CODEX_HOME=/tmp/codex codegraph install --target codex --location global, then ls /tmp/codex.
Version
main at d384473e
Platform
any
How did you install it?
Built from source
Evidence
internal/agents/codex.go:62-85(os.UserHomeDir()only); noCODEX_HOMElookup anywhere ininternal/
Acceptance criteria
- Install, uninstall and the capability table honor
CODEX_HOME; tests set it.
Source (GSD planning files, archived at d384473e): .planning/milestones/v0.14.0-MILESTONE-AUDIT.md (AR-07-06)
🤖 Generated with Claude Code
- 主要语言
- Go
- 星标
- 0
- 派生
- 0
- 平均合并
- 7 小时 42 分钟
- 30 天内合并 PR
- 111
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
seanb4t/codegraph-go 的其他 Issue
-
chore needs-triage
难度 1/5 1 小时以内 新手友好度 88/100
seanb4t/codegraph-go#380 ·
维护者通常 1 天内回复
-
chore needs-triage
难度 2/5 1-3 小时 新手友好度 82/100
seanb4t/codegraph-go#379 ·
维护者通常 1 天内回复
-
area:query chore needs-triage spec-needed
难度 2/5 1-3 小时 新手友好度 74/100
seanb4t/codegraph-go#377 ·
维护者通常 1 天内回复
-
chore needs-triage
难度 1/5 1-3 小时 新手友好度 84/100
seanb4t/codegraph-go#362 ·
维护者通常 1 天内回复
-
area:query bug needs-triage
难度 2/5 1-3 小时 新手友好度 80/100
seanb4t/codegraph-go#355 ·
维护者通常 1 天内回复
查看 seanb4t/codegraph-go 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 1 天内回复
-
automated documentation maintenance
难度 1/5 1-3 小时 新手友好度 75/100
github/gh-aw-mcpg#16717 ·
维护者通常 1 天内回复
-
Docs: Recording rules pages don't say what happens to a recorded metric when its rule is deleted未关闭internal
难度 1/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 74/100
jesseduffield/lazygit#6229 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
prometheus/prometheus#20482 ·
维护者通常 2 天内回复