Repository navigation
fix(server): mark unvisited thread completions unread - #15607
Open
maria-rcks wants to merge 7 commits into
Open
maria-rcks wants to merge 7 commits into
maria-rcks wants to merge 7 commits into
Conversation
maria-rcks
marked this pull request as ready for review
October 4, 2026 12:09
Contributor
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This focused server bug fix adds a one-time unread watermark for fresh dispatches on never-visited threads while preserving existing maintenance and visited-thread behavior. The accompanying tests cover the new state transition and its exclusions. Notes:
You can add or adjust custom eligibility rules. Learn more. |
macroscopeapp
Bot
dismissed
their stale review
October 6, 2026 16:52
Dismissing prior approval to re-evaluate 050e127
macroscopeapp
Bot
dismissed
their stale review
October 9, 2026 23:44
Dismissing prior approval to re-evaluate 5551447
macroscopeapp
Bot
dismissed
their stale review
October 11, 2026 05:48
Dismissing prior approval to re-evaluate 5551447
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.
A thread started in the background could finish without ever showing an unread Done badge, because its read watermark was still null. The first fresh message now initializes that watermark one millisecond before dispatch, so the completion is unread on every client; opening the thread clears it, and untouched imported history stays read.
Closes #3131
The earlier Codex request-ordering and setup-worktree rename changes were dropped from this PR; the scoped server suites pass without them.
Verified on Blacksmith: 2009 orchestration-v2, MCP, and scheduling tests passed, including the focused watermark regression; server typecheck and scoped lint passed. Earlier: a real Codex completion in the web client, a full reload, and opening the thread.
Before: completed, never-opened thread has no Done badge.
After: a fresh completion shows Done; the older null-marker thread remains read.
Written by claude-opus-5-5 via Claude Code in T3 Code