Claude-Code-Game-Studios/.claude
Donchitos 666e0fcb5a
Fix log-agent hooks reading wrong field — audit trail always logged "unknown" (#21)
Both SubagentStart/SubagentStop hooks were extracting `.agent_name` from the
hook payload, but Claude Code emits the agent name in `agent_type`. This caused
every audit log entry to fall through to the "unknown" fallback, making the
entire agent audit trail useless.

Fix: swap `.agent_name` -> `.agent_type` in both the jq path and the grep/sed
fallback for systems without jq. Log output format is unchanged so existing
audit logs remain valid.

Bug reported and fix authored by @bobloy in issue #20:
https://github.com/Donchitos/Claude-Code-Game-Studios/issues/20

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 20:28:38 +10:00
..
agent-memory/lead-programmer Pipeline integrity + brownfield adoption system 2026-03-11 18:46:07 +11:00
agents Add v0.6.0: full skill/agent QA pass, 3 new agents tested, template cleanup 2026-04-07 17:28:46 +10:00
docs Add v0.5.0: CCGS Skill Testing Framework, skill-improve, 4 new skills, director gate path fixes 2026-04-06 17:42:32 +10:00
hooks Fix log-agent hooks reading wrong field — audit trail always logged "unknown" (#21) 2026-04-10 20:28:38 +10:00
rules Release v0.2.0: Context Resilience, AskUserQuestion, /design-systems 2026-02-20 20:52:35 +11:00
skills Add v0.6.0: full skill/agent QA pass, 3 new agents tested, template cleanup 2026-04-07 17:28:46 +10:00
settings.json Add notification hook, directory CLAUDE.md scaffolding 2026-03-16 20:17:53 +11:00
statusline.sh Add v0.5.0: CCGS Skill Testing Framework, skill-improve, 4 new skills, director gate path fixes 2026-04-06 17:42:32 +10:00