Repository navigation
fix(web): next unread skips threads a project chat manages, and the chat on its own page - #1636
Open
incognitojam wants to merge 2 commits into
Open
incognitojam wants to merge 2 commits into
incognitojam wants to merge 2 commits into
Conversation
Upstream divergenceBoth sides are compared with upstream at the in-order tip
Upstream files whose difference changes (2)
|
incognitojam
force-pushed
the
styal/next-unread-skips-agent-threads
branch
from
November 19, 2026 18:46
fe38b3b to
070c72c
Compare
…hat on its own page
…g managed when it is replaced or gone
incognitojam
force-pushed
the
styal/next-unread-skips-agent-threads
branch
from
November 19, 2026 20:35
070c72c to
ace20c8
Compare
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.
The next-unread chip,
mod+shift+uand Go to next unread thread counted threads the project chat started, which the project page already shows in Needs you and Since you last checked. On the project page, the chip also counted the chat you were looking at, so clicking it reopened the same page.The rule: threads a project chat manages are the chat's to handle, and it raises what it cannot, so the unread button reaches the chat, not them. A managed thread counts again once you pin it or write to it, or once its chat is replaced, unassigned, archived, deleted or settled by you, or project coordinators are turned off. The chat itself always counts, including when it failed or has a question for you, except on its own page.
The rule is the one that already keeps such a thread on the project page while it works, without the "until it needs you or fails" part. The chip, the shortcut and the palette entry read one list, so all three change together. The sidebar rows are unchanged.
Harbor CLI project page, before: the chip counts the chat itself, the failed ARM run and the checklist question, all on this page already. (The timeline summary row is the existing first-open row.)
After: no chip; the failed run and the question are in the sidebar and in Needs you.
Another project's page, before: 3 unread.
After: 1 unread, the Harbor chat's open question; clicking it opens the Harbor CLI page.
A managed thread's own page (Release checklist, waiting on a question), before: 3 unread, counting the failed ARM run the project chat started.
After: 2 unread, the Harbor chat's open question and a finished thread in Quiet Pond.
The project page with a finished thread unread in another project (Quiet Pond), before: 4 unread.
After: 1 unread; clicking it opens the Quiet Pond thread.
The project page with nothing outside the project waiting: no button.
Another project's page while the first project's chat has a question for you: the button points at that project's page.
A managed thread's own page: the button counts only the project's chat.
Checked on an isolated dev server with a synthetic project whose chat started five threads: the chip count and target on the project page and on another project, as above. A failing test covers which threads count as the chat's; further tests pin the chat itself as never managed, failed or asking, and a thread as unmanaged once its chat is replaced, unassigned or no longer takes reports. Not checked: mobile, which has no next-unread entry.
Written by
claude/claude-opus-5-5, reviewed bycodex/gpt-6-astra, in styal 🧵.