Skip to content

Fix duplicate interactive UI messages for numbered answers When an assistant message contains both text blocks and an interactive tool_use (ExitPlanMode/AskUserQuestion), the text entries were processed first in handle_new_message, clearing the interactive UI state set by the status poller. This caused the JSONL callable to send a second interactive message instead of editing the existing one. Fix: pre-scan assistant messages for interactive tools and suppress text block emission when present — the terminal capture already includes that preamble text. https://claude.ai/code/session_01WHUN1GLBFr2ZkuEmeVtuPW#7

Merged
JanusMarko merged 1 commit intomainfrom
claude/fix-numbered-answer-duplicates-eUNgW
Mar 5, 2026

Conversation

@JanusMarko
Copy link
Copy Markdown
Owner

No description provided.

When an assistant message contains both text blocks and an interactive
tool_use (ExitPlanMode/AskUserQuestion), the text entries were processed
first in handle_new_message, clearing the interactive UI state set by the
status poller. This caused the JSONL callable to send a second interactive
message instead of editing the existing one.

Fix: pre-scan assistant messages for interactive tools and suppress text
block emission when present — the terminal capture already includes that
preamble text.

https://claude.ai/code/session_01WHUN1GLBFr2ZkuEmeVtuPW
@JanusMarko JanusMarko merged commit b9d74c3 into main Mar 5, 2026
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.

2 participants