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
feat(ai): run postCd hooks before launching AI process (#144)
When users configure postCd hooks (e.g., source ./vars.sh), gtr cd runs
them but gtr ai did not. This meant AI tools launched via gtr ai didn't
get the worktree's environment setup.
Add run_hooks_export to lib/hooks.sh — a variant of run_hooks that evals
hooks without subshell isolation so exported env vars persist. Call sites
wrap it in an explicit subshell for safety with set -e.
Closes#144
0 commit comments