Skip to content

fix: honor CLAUDE_CONFIG_DIR for Claude install#117

Draft
MikeTomlin19 wants to merge 1 commit into
zzet:mainfrom
MikeTomlin19:codex/fix-claude-config-dir
Draft

fix: honor CLAUDE_CONFIG_DIR for Claude install#117
MikeTomlin19 wants to merge 1 commit into
zzet:mainfrom
MikeTomlin19:codex/fix-claude-config-dir

Conversation

@MikeTomlin19

@MikeTomlin19 MikeTomlin19 commented Jun 19, 2026

Copy link
Copy Markdown

Summary

Fixes #116.

gortex install now honors CLAUDE_CONFIG_DIR for Claude Code global-mode artifacts. When the env var is set, the installer writes the active profile layout instead of falling back to HOME:

  • $CLAUDE_CONFIG_DIR/.claude.json for MCP wiring
  • $CLAUDE_CONFIG_DIR/settings.json and settings.local.json
  • $CLAUDE_CONFIG_DIR/CLAUDE.md
  • $CLAUDE_CONFIG_DIR/{skills,commands,agents}/...

The default HOME-based layout is unchanged when CLAUDE_CONFIG_DIR is unset.

Validation

Passed:

  • go test ./internal/agents/claudecode
  • go test ./internal/agents/claudecode -run 'TestClaudeCodeGlobalMode' -count=1
  • go test ./internal/agents/...
  • go vet ./...

Contribution-guide command attempted:

  • go test -race ./... fails in github.com/zzet/gortex/internal/graph at TestSchemaParityAudit with 105 orphan schema kinds. I reproduced the same failure on clean origin/main (a834727d) with go test -race ./internal/graph -run TestSchemaParityAudit -count=1, so this appears unrelated to the Claude Code installer change.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gortex install ignores CLAUDE_CONFIG_DIR — writes to ~/.claude instead of the active profile dir

1 participant