gstack/hosts/claude/hooks
Daniel Nascimento 10f30975c3 fix(hooks): don't emit permissionDecision 'defer' from question-preference-hook
'defer' is a real permissionDecision value in Claude Code, but it means
'pause this tool call and hand control back' and is honored in
print/non-interactive mode (interactive mode warns and ignores it).
The hook emitted it as its 'no opinion' outcome, which made every
AskUserQuestion call get deferred in non-interactive sessions (e.g. the
Claude Code desktop app): the question UI never rendered and AUQ
appeared completely broken after gstack setup registered the hook.

The neutral outcome for a PreToolUse hook is a silent exit 0 — so defer()
now emits nothing, or only additionalContext (without any
permissionDecision) when there is plan-tune memory context to inject.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-03 11:28:00 -03:00
..
auq-error-fallback-hook v1.57.2.0 feat: AskUserQuestion prose fallback when the tool fails at runtime (#1908) 2026-06-07 21:38:21 -07:00
auq-error-fallback-hook.ts v1.57.2.0 feat: AskUserQuestion prose fallback when the tool fails at runtime (#1908) 2026-06-07 21:38:21 -07:00
question-log-hook v1.52.0.0 feat(plan-tune): explicit consent + first-run setup wizard for contributors (#1741) 2026-05-28 18:21:09 -07:00
question-log-hook.ts v1.52.0.0 feat(plan-tune): explicit consent + first-run setup wizard for contributors (#1741) 2026-05-28 18:21:09 -07:00
question-preference-hook v1.52.0.0 feat(plan-tune): explicit consent + first-run setup wizard for contributors (#1741) 2026-05-28 18:21:09 -07:00
question-preference-hook.ts fix(hooks): don't emit permissionDecision 'defer' from question-preference-hook 2026-07-03 11:28:00 -03:00