fix: the codex install target ignores CODEX_HOME

未关闭 适合新手
#112 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
go
领域
cli

调研方向

全局 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 内容生成。

描述

area:agents bug priority:low
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); no CODEX_HOME lookup anywhere in internal/
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

https://claude.ai/code/session_01UNqdnC3q6U362BvyfxuKCF

主要语言
Go
星标
0
派生
0
平均合并
7 小时 42 分钟
30 天内合并 PR
111

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

seanb4t/codegraph-go 的其他 Issue

查看 seanb4t/codegraph-go 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。