Fix settings templates to use 'gt prime --hook' for session ID tracking (#719)
Both settings-autonomous.json and settings-interactive.json templates were using bare 'gt prime' in SessionStart and PreCompact hooks, which caused gt doctor to report warnings about missing --hook flag. The --hook flag is required for proper session ID passthrough from Claude Code. When called as a hook, 'gt prime --hook' reads session metadata (session_id, transcript_path, source) from stdin JSON that Claude Code provides. Without --hook, session tracking breaks and gt doctor correctly warns: "SessionStart uses bare 'gt prime' - add --hook flag or use session-start.sh" This fix updates both template files to use 'gt prime --hook' in: - SessionStart hooks (lines 12) - PreCompact hooks (lines 23) New installations will now generate settings.json files with the correct format that passes gt doctor validation. Co-authored-by: Roland Tritsch <roland@ailtir.com> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in: