Skip to content

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
mainfrom
styal/next-unread-skips-agent-threads
Open

incognitojam wants to merge 2 commits into
mainfrom
styal/next-unread-skips-agent-threads

Conversation

@incognitojam

@incognitojam incognitojam commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

The next-unread chip, mod+shift+u and 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.

Thread Before After
Started by the project chat with reportBack, now waiting on you or failed Counted Skipped; the project page lists it
The same thread after you pin it or write to it Counted Counted, as now when it leaves the project page
The project chat, while you are on its page Counted Skipped as the open thread
The project chat, from anywhere else Counted Counted
Subagents, side chats, delegated tasks Not counted (no sidebar row) Unchanged
Threads launched with reportBack from an ordinary thread Counted Unchanged

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.)

Before: 3 unread on the project page

After: no chip; the failed run and the question are in the sidebar and in Needs you.

After: no chip on the project page

Another project's page, before: 3 unread.

Before: 3 unread on another project

After: 1 unread, the Harbor chat's open question; clicking it opens the Harbor CLI page.

After: 1 unread on another project

A managed thread's own page (Release checklist, waiting on a question), before: 3 unread, counting the failed ARM run the project chat started.

Before: managed thread's page

After: 2 unread, the Harbor chat's open question and a finished thread in Quiet Pond.

After: managed thread's page

The project page with a finished thread unread in another project (Quiet Pond), before: 4 unread.

Before: project page, unread elsewhere

After: 1 unread; clicking it opens the Quiet Pond thread.

After: project page, unread elsewhere

The project page with nothing outside the project waiting: no button.

Project page, nothing else waiting

Another project's page while the first project's chat has a question for you: the button points at that project's page.

Another project's page

A managed thread's own page: the button counts only the project's chat.

A managed thread's own page

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 by codex/gpt-6-astra, in styal 🧵.

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Upstream divergence

Both sides are compared with upstream at the in-order tip 9f4b42e750. Excludes .repos/ and pnpm-lock.yaml.

Measure Base This PR Change
Upstream files the fork changes 2,305 2,305 0
Lines changed in them 158,331 158,344 +13
Upstream files the fork removes 71 71 0
Fork-only files 1,003 1,003 0
Fork-only lines 183,164 183,217 +53
Upstream files whose difference changes (2)
File Change Now differs by
apps/web/src/components/Sidebar.tsx +11 978 lines
docs/user/keybindings.md +2 52 lines

@incognitojam
incognitojam force-pushed the styal/next-unread-skips-agent-threads branch from 070c72c to ace20c8 Compare November 19, 2026 20:35

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant