Skip to content

fix: mark tool outputs after interrupted replies - #6859

Draft
chenghao-mou wants to merge 1 commit into
mainfrom
chenghao/fix/AGT-3295-interrupted-tool-output
Draft

fix: mark tool outputs after interrupted replies#6859
chenghao-mou wants to merge 1 commit into
mainfrom
chenghao/fix/AGT-3295-interrupted-tool-output

Conversation

@chenghao-mou

Copy link
Copy Markdown
Member

Why

Tool outputs remain in chat history after execution. If the user interrupts their spoken reply, the next LLM turn can treat that explanation as delivered and return no reply.

Behavior

Mark interrupted tool results in model-facing payloads while preserving existing payloads for completed replies. Keep immediate commits so tools with side effects are not replayed.

Addresses AGT-3295

Initial prompt and agent context

Model: GPT-5.6

so today, we commit the tool output after execution, but if the user interrupts the tool reply, llm might treat the tool output as spoken and skips the reply altogether in the new reply. We should try wrapping the tool output with some kind of interrupted:bool flag so it is clear to them that it is delivered or not.

@chenghao-mou
chenghao-mou force-pushed the chenghao/fix/AGT-3295-interrupted-tool-output branch from a202b70 to f644561 Compare August 14, 2026 16:43
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