Skip to content

fix(extension): cancelled runs say 'cancelled', not that an extension failed - #262

Merged
yuanhao merged 1 commit into
mainfrom
fix/cancelled-after-tool-text
Oct 8, 2026
Merged

yuanhao merged 1 commit into
mainfrom
fix/cancelled-after-tool-text

Conversation

@yuanhao

@yuanhao yuanhao commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

Follow-up from #261's review. On a cancelled run with an extension installed, a tool result whose after_tool was cut off by the cancel read "Tool result withheld: extension 'x' did not finish processing it." — which looks like the extension failed.

The result is still withheld (a redactor may not have run, so letting the raw output through would be unsafe); only the text changes, to "Tool result withheld: the run was cancelled before extension 'x' finished processing it." A real failure keeps the old text.

Test: an after_tool that waits until cancel → the new text; control: a failing after_tool keeps "did not finish processing it". Mutation-checked (fails with the old text).

🤖 Generated with Claude Code

https://claude.ai/code/session_01T7iq5hpndSiHQcnAsywKuG

…as cancelled

The result stays withheld (a redactor may not have run), but the text no
longer reads as an extension failure. Test with a failing-hook control,
mutation-checked.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T7iq5hpndSiHQcnAsywKuG
@yuanhao
yuanhao merged commit 0008e70 into main Oct 8, 2026
15 checks passed
@yuanhao
yuanhao deleted the fix/cancelled-after-tool-text branch October 8, 2026 01:22
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