Skip to content

hooks-sync: use configured agent name for non-Claude agents (not resolved binary) #3247

@baumgold

Description

@baumgold

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions