You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(hooks): replace export PATH with {{GT_BIN}} in all remaining templates (#3315)
* fix(hooks): replace export PATH with {{GT_BIN}} in all remaining templates
Claude, Cursor, Copilot, and Codex hook templates still used
'export PATH=...' format while Gemini was migrated to {{GT_BIN}} in
PR #2742. The needsUpgrade() function detects 'export PATH=' as stale
and triggers a full settings overwrite on every session start, clobbering
user customizations like mcpServers and permissions.
Migrate all 8 remaining template files to use {{GT_BIN}} placeholder
resolved at install time. Update 4 tests to compare against
resolveAndSubstitute() output instead of raw template bytes.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(doctor): update settings check to accept resolved {{GT_BIN}} paths
The claude-settings doctor check looked for 'PATH=' and 'gt costs
record' patterns in hook commands. After migrating templates to
{{GT_BIN}}, installed files contain resolved absolute paths (e.g.
'/usr/local/bin/gt prime --hook') instead of 'export PATH=... && gt
prime --hook'. Update patterns to match the command payload rather
than the PATH prefix: 'prime --hook' and 'costs record'.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(doctor): update priming test for resolved {{GT_BIN}} paths
TestPrimingCheck_FixNoPrimeHook checked for literal 'gt prime' in
recreated settings.json. After {{GT_BIN}} migration, the resolved
path is '/path/to/binary prime --hook'. Check for 'prime --hook'
instead, consistent with claude_settings_check.go.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: gastown/crew/navani <user.email=28374790+A3Ackerman@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments