* Stop PermissionRequest/blocked/waiting hook states from firing agent-task-complete 'waiting' (e.g. a Claude PermissionRequest) and 'blocked' (e.g. a Copilot elicitation dialog) occur mid-turn while the agent is still alive, yet isCompletionHookState treated them as completion and dispatched a false agent-task-complete. Restrict completion to a genuine 'done' and add an isAttentionHookState early return that also cancels a pending done-quiet timer when an attention pause arrives first. The 'needs you' notification for these states is raised separately (smart-attention), so it is unaffected. Fixes #5698 * Preserve attention notifications for waiting hooks --------- Co-authored-by: brennanb2025 <brennanb2025@users.noreply.github.com> Co-authored-by: Neil <neil@stably.ai>