Repository navigation
One stored answer to "did the provider keep this request?" #43271
grenmango51
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Several bugs in the last few weeks had one cause: a turn ended before the provider stored the user's request, and T3 then acted as if it had. Each fix added its own way to answer that one question, so the answer now lives in four places:
promptDroppedon the provider turn, set by the Cursor adapter when a turn ends (#40670)failedorcancelledinterruptedPrompt(#32583)interrupted)nativeTurnKept, asked when the next turn starts (#42938)inputRecordedAt(#26861, open)Each one covers some turn statuses and some lifetimes. The bugs live in the gaps. #43270 is one: a Cursor request stopped before its first checkpoint is lost once the session closes, because only the in-memory row covers
interruptedturns.Proposal
Give each provider turn one stored field that says whether the provider confirmed the request is in its history. #26861's
inputRecordedAtalready has the right shape: null until confirmed, absent on old turns.The four rows above then become one field and the code that sets it. Cursor's in-memory
interruptedPromptcould go, since the stored answer would cover a Stop whether or not the session lives on.Open questions
runCheckpointed). Does the SDK report the first checkpoint as it happens, or must the adapter ask when the turn ends, plus once at the next start for turns that ended with no adapter?promptDroppedstay as a separate "confirmed not kept" state, or becomeinputRecordedAt: nullon a turn that has ended?The bug fix for #43270 is in #43274, and it does not depend on this. It extends #42938's check to stopped turns and adds no new field.
Written with Claude Opus 5.5 (
claude-opus-5-5) in Claude Code, running in T3 Code.All reactions