gstack/hosts/claude
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
..
hooks fix(hooks): don't emit permissionDecision 'defer' from question-preference-hook 2026-07-03 11:28:00 -03:00