Repository navigation
Description
Summary
When a thread is marked read or unread from somewhere other than the window you are looking at (another window, another device, or bb thread read), that window's thread list does not update. The unread dot stays, or never appears, until something unrelated reloads the list. Status changes (running, idle) do update right away; read state does not.
Versions and environment
- bb 0.46.0 (desktop app), macOS 27.0.1
- Code checked on
mainat d011a88
Steps to reproduce
- Open bb and keep the window focused on any page with the thread list visible. Pick a thread that is currently read.
- In a terminal:
bb thread unread thr_<id> - Wait 10 seconds. The thread does not show as unread.
bb thread read thr_<id>, then click anything that reloads the list (in my test, a sidebar tab). The list now shows the right state.
The same happens when another bb window or device opens the thread: the first window keeps showing it as unread.
Expected vs actual
Expected: the list updates within a second or so, like it does for status changes.
Actual: the server sends the change, the app receives it, and nothing reloads until step 4. Log from the window (WebSocket messages received, HTTP requests sent):
23:21:25.291 CLI marked unread
23:21:25.292 WS< {"type":"changed","entity":"thread","id":"thr_8sg6uktwb4","metadata":{"projectId":"proj_xubf46gc6m"},"changes":["read-state-changed"]}
23:21:29.292 thread still shown as read
23:21:29.487 CLI marked read
23:21:29.488 WS< {"type":"changed","entity":"thread","id":"thr_8sg6uktwb4","metadata":{"projectId":"proj_xubf46gc6m"},"changes":["read-state-changed"]}
23:21:39.497 no request for the list so far
23:21:39.519 HTTP> GET /api/v1/sidebar-bootstrap <- only after I clicked a sidebar tab
Evidence
Why it happens: on read-state-changed, the app only marks its copy of the list as out of date and does not reload it or update the row (realtime-cache-registry.ts#L428-L431, #L997-L1004, refetchType: "none"). The message itself carries no read time, so the app cannot update the row either (threads.ts#L1874-L1878).
The window that does the reading updates itself right away, so this only shows when bb is open in more than one place, or when the CLI or an agent changes the read state.
What you ruled out
- Not sidebar-bootstrap ships 138KB and refetches wholesale on thread status changes #1302 / Patch sidebar rows from status-changed pushes instead of refetching #2169: those fixed the same pattern for status changes (the new status now travels with the message and is written into the list). Read state was not part of that change.
- Not Reparented threads can remain at sidebar root until reload (unverified) #3029 (reparented threads), a different change kind.
- Seen with a sidebar plugin, but the plugin reads the same list data as the core sidebar (
useSidebarThreads, same query), so I expect the core sidebar to behave the same. I did not check the core sidebar separately.
Suggested priority and effort
Low to medium. Anyone with bb open in two places, or using bb thread read / unread. Nothing is lost, and clicking around fixes it. Effort low: send the new read time with the message and write it into the list, like #2169 does for status. I am preparing a fix on my fork and will open a PR once approved.
AGENT GENERATED
Activity
duizabojul commentedon Oct 12, 2026
Fix ready on my fork, waiting for contributor approval before opening the PR: main...duizabojul:bb:fix/read-state-list-patch
The read-state message now carries the new read time, and the app writes it into the cached lists instead of only marking them stale (same approach as #2169). Tests included; each fails on main and passes with the change.
bb-slop-cop commentedon Oct 12, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotui,confirmed-repro.Refresh active thread lists after read-state events (#5403)