When gt doctor hooks-sync or gt hooks sync runs for non-Claude template-based agents (OpenCode, Gemini, etc.), it incorrectly uses ResolveRoleAgentConfig which falls back to claude when the agent binary is not in PATH (e.g. in CI). This causes non-Claude hook targets to be silently skipped in CI environments.
When
gt doctor hooks-syncorgt hooks syncruns for non-Claude template-based agents (OpenCode, Gemini, etc.), it incorrectly usesResolveRoleAgentConfigwhich falls back toclaudewhen the agent binary is not in PATH (e.g. in CI). This causes non-Claude hook targets to be silently skipped in CI environments.