Skip to content

Close a question skipped in the Claude app at the turn's end (pm-harness sprint 130) - #124

Merged
Yeeef merged 2 commits into
mainfrom
question-skip-closes
Oct 27, 2026
Merged

Yeeef merged 2 commits into
mainfrom
question-skip-closes

Conversation

@Yeeef

@Yeeef Yeeef commented Oct 27, 2026

Copy link
Copy Markdown
Owner

A Claude Code question the owner skips in the Claude app (Remote Control, claude rc) stayed under "Sessions ask you" until the session's process exited: Claude Code returns "Denied by user" to the agent but fires no PostToolUse and sends the waiting pm hook ask no signal. One poker session's question stayed open 18 h this way.

  • Claude Code's Stop group also runs pm hook ask --runtime claude; at Stop it closes the session's questions still open as dismissed ("the turn ended without an answer: the owner skipped the question in the Claude app"). No dialog outlives its turn, so none is open at Stop. The waiting PermissionRequest hook sees the close and exits.
  • Codex is unchanged: its questions outlive the turn by design. runtimeDifferences gives the Stop difference its reason.
  • Design page owner-questions: the measured fact, the sequence branch, the chat-answer table.

Checks: go test ./internal/hooks ./internal/install ./internal/cli ok; the new test fails with the Stop branch disabled; make test 159 passed. Live, in this repo's real store: before the fix, an AskUserQuestion skipped in the app left need open and its hook waiting for 16 min; the built pm run on a Stop event for that session closed it as dismissed, the waiting hook exited and the site dropped the card. Esc and a killed terminal were also re-checked on Claude Code 2.1.311: both still close as dismissed.

🤖 Generated with Claude Code

Yeeef and others added 2 commits October 27, 2026 19:42
…ess sprint 130)

Through Remote Control, skipping an AskUserQuestion dialog in the Claude app returns
"Denied by user" to the agent but fires no PostToolUse and sends the waiting
PermissionRequest hook no signal, so the question stayed open on the site until the
session's process exited (18 h in one poker session). No dialog outlives its turn, so
Claude Code's Stop hook now runs pm hook ask, which closes the session's questions still
open as dismissed; the waiting hook sees the close and exits. Codex keeps its questions
open past the turn by design, so this is Claude Code only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… Stop hook in the harness

Picking the dialog's Chat about this rejects AskUserQuestion like an app's skip: no
PostToolUse, no signal to the waiting hook (Claude Code 2.1.311). The Stop close already
covers it; the close reason and docs now name it. The harness's CLAUDE_PM lists the new
Stop command, and the misplaced Codex test comment is back on its test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Yeeef
Yeeef merged commit 2f764a7 into main Oct 27, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant