Skip to content

Keep what an interrupted reply had already committed - #502

Open
shellicar wants to merge 1 commit into
mainfrom
feature/persist-aborted-query
Open

Keep what an interrupted reply had already committed#502
shellicar wants to merge 1 commit into
mainfrom
feature/persist-aborted-query

Conversation

@shellicar

Copy link
Copy Markdown
Owner

Summary

  • Interrupting a reply keeps what Claude had already said, so it can answer questions about it on the next turn.
  • Thinking already completed when the interrupt lands is kept too, so the reasoning behind an unfinished answer is not thrown away.
  • A tool call still streaming its input is dropped whole.
  • An interrupted query records a [Request interrupted by user] message after the reply it cut off.
  • Interrupting before anything was committed hands the prompt back to the editor and takes the abandoned exchange off the transcript.
  • Cancelling a query no longer reports an error.

@shellicar shellicar added this to the 1.0 milestone Aug 4, 2026
@shellicar shellicar added enhancement New feature or request pkg: claude-sdk-cli The new SDK-based CLI pkg: claude-sdk The agent SDK labels Aug 4, 2026
@shellicar shellicar self-assigned this Aug 4, 2026
@shellicar
shellicar requested a review from bananabot9000 August 4, 2026 13:41
@shellicar
shellicar marked this pull request as ready for review August 4, 2026 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request pkg: claude-sdk The agent SDK pkg: claude-sdk-cli The new SDK-based CLI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant