Repository navigation
fix(server): settling a finished thread removes it from the Live Activity - #18604
Open
alcpereira wants to merge 2 commits into
Open
alcpereira wants to merge 2 commits into
alcpereira wants to merge 2 commits into
Conversation
Also clarify that skipping thread.unsettled only blocks the immediate re-alert; pingdotgg#11938 still covers later metadata republishes. Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a focused Live Activity bug fix: settled completed or failed threads now emit a tombstone, while live and waiting work remains visible. The production impact is isolated and covered by targeted relay and projection tests. Notes:
You can add or adjust custom eligibility rules. Learn more. |
macroscopeapp
Bot
dismissed
their stale review
October 12, 2026 09:43
Dismissing prior approval to re-evaluate 6311df2
This branch has not been deployed
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.
Settling a finished thread left it on the iOS Live Activity (and the Android activity aggregate) showing Done. Settle events never reached the awareness relay, and the projection ignored settlement. Archive already clears the row; settle didn't.
Fix
projectThreadAwarenessV2returns null whensettledOverride === "settled"and the phase iscompletedorfailed. The relay then publishes a tombstone the same way archive does, which ends the activity when it was the last row.thread.settlednow triggers a publish. Live or waiting work stays on the card after settle, including a completed run held open by a monitor or subagent. Starting a new turn clearssettledOverride, so a thread that runs again comes back normally.thread.unsettleddeliberately does not publish, so pulling a thread back to Active does not re-alert Done.Fixes #16229. Replaces #16506, which was closed for not stating the model and harness. This is the same change rebased onto current main and re-reviewed.
Out of scope
Test plan
vp test run packages/shared/src/agentAwareness.test.ts apps/server/src/relay/AgentAwarenessRelay.test.ts(41 passed)First drafted in Cursor, then rebased and re-reviewed with Claude Opus 5.5 (
claude-opus-5-5) in Claude Code, running inside T3 Code.