Repository navigation
Conversation
…tarted run short A server shutdown marks a run that already started as cancelled. The turn-item visibility rule (and its SQL copies in the snapshot window, the hidden-row lookup, both shell item counts and thread search) hid every queued_turn message of a cancelled run, so a message the provider had already received vanished from the timeline after a restart. Only a cancelled run that never started withdraws its queued input now. Fixes pingdotgg#41290 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
Author
|
Closing: review showed 🤖 Claude (Opus 5.5) on behalf of Etan |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
🤖 Claude (Opus 5.5) on behalf of Etan
Fixes #41290.
Problem
A server restart marks a run that already started as
cancelled. The visibility rule hides everyqueued_turnmessage of a cancelled run, so a message the provider had already received disappears from the timeline,t3_thread_read, history pages, the shell item count and search after a desktop update.Change
A cancelled run hides its queued message only if it never started (
startedAt === null). That is the server's existing definition of withdrawn queued input (see the last-executed-run index). The same condition goes into each copy of the rule:orchestrationV2Timeline.ts, plus the SQL inProjectionStore.ts(hidden-row lookup, snapshot window, both shell counts) andThreadSearch.ts. The shell counts readstartedAtthrough a separate primary-key lookup, so their status lookups stay covering. Fork inheritance is unchanged.Scope and approval
Bug fix, reported in #41290.
Verification
mainand passes here.orchestrationV2Timeline.test.ts: point and indexed checks.ProjectionStore.test.ts: timeline page, projection, snapshot window and shell counts.ThreadSearch.test.ts.vp run check:changed: lint, knip, typecheck and the affected tests pass.🤖 Generated with Claude Code