gstack/hosts
kalpajit279 78d7d30ec9 fix: pre-empt broken AskUserQuestion on the Claude Desktop host
The PreToolUse transport-avoidance in question-preference-hook only guarded
against Conductor. The Claude Desktop app (CLAUDE_CODE_ENTRYPOINT=claude-desktop)
advertises + enables AskUserQuestion (CLAUDE_CODE_ENABLE_ASK_USER_QUESTION_TOOL=true)
but its handler returns "[Tool result missing due to internal error]".

PostToolUse hooks do NOT fire on that transport-error path, so
auq-error-fallback-hook cannot rescue it after the fact — the model just sees the
raw error. Extend the existing PreToolUse deny to also fire when
CLAUDE_CODE_ENTRYPOINT=claude-desktop, redirecting to the same prose decision
brief. Generalize the reason label ([conductor] / [claude-desktop]).

Tests: mirror the ambient-env strip (delete CLAUDE_CODE_ENTRYPOINT) in the two
hook test runners so a suite run inside Claude Desktop stays deterministic, and
add a "Claude Desktop prose redirect" describe block paralleling the Conductor
cases.

Verified on claude.exe 2.1.197 (Windows): the identical AUQ call that returned
the missing-result error now returns the [claude-desktop] prose-redirect deny.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-01 23:42:21 +05:30
..
claude/hooks fix: pre-empt broken AskUserQuestion on the Claude Desktop host 2026-07-01 23:42:21 +05:30
claude.ts v1.13.0.0 feat: add Claude outside-voice skill (#1212) 2026-04-25 11:52:48 -07:00
codex.ts feat: Confusion Protocol, Hermes + GBrain hosts, brain-first resolver (v0.18.0.0) (#1005) 2026-04-16 10:41:38 -07:00
cursor.ts feat: Confusion Protocol, Hermes + GBrain hosts, brain-first resolver (v0.18.0.0) (#1005) 2026-04-16 10:41:38 -07:00
factory.ts feat: Confusion Protocol, Hermes + GBrain hosts, brain-first resolver (v0.18.0.0) (#1005) 2026-04-16 10:41:38 -07:00
gbrain.ts feat: Confusion Protocol, Hermes + GBrain hosts, brain-first resolver (v0.18.0.0) (#1005) 2026-04-16 10:41:38 -07:00
hermes.ts feat: Confusion Protocol, Hermes + GBrain hosts, brain-first resolver (v0.18.0.0) (#1005) 2026-04-16 10:41:38 -07:00
index.ts feat: Confusion Protocol, Hermes + GBrain hosts, brain-first resolver (v0.18.0.0) (#1005) 2026-04-16 10:41:38 -07:00
kiro.ts feat: Confusion Protocol, Hermes + GBrain hosts, brain-first resolver (v0.18.0.0) (#1005) 2026-04-16 10:41:38 -07:00
openclaw.ts feat: Confusion Protocol, Hermes + GBrain hosts, brain-first resolver (v0.18.0.0) (#1005) 2026-04-16 10:41:38 -07:00
opencode.ts community wave: 6 PRs + hardening (v0.18.1.0) (#1028) 2026-04-17 00:45:13 -07:00
slate.ts feat: Confusion Protocol, Hermes + GBrain hosts, brain-first resolver (v0.18.0.0) (#1005) 2026-04-16 10:41:38 -07:00