You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f4beff1
Browse filesBrowse the repository at this point in the historyBrowse files
* fix(ui): stop per-message branch-list polling and unlatch transient branch failures
Four coupled defects around the chat branch dropdown, fixed at their owners:
- Every persisted session.message and every sessions.changed triggered an
unconditional sessions.branches.list RPC per viewing client; the gateway
branch cache watermark is max(seq), so each message append made the next
list a full transcript rescan. Branch topology only changes on structural
mutations, and the producer already records the reason — the reload is now
gated on rewind/branch-switch/fork/reset/new.
- A transient listBranches failure recorded success (chatBranchesSessionKey
set with branches=[]), permanently hiding the branch dropdown for that
session+connection with no visible outcome. The catch no longer latches;
the next history load retries naturally.
- sessions.branches.list errored for upstream-linked sessions even though
"no local branches" is their truthful steady state; the fresh-session
sibling was already converted to {branches: []} for the same reason
(spurious gateway-log failures). Only mutating siblings fail closed now.
- Branch state was keyed by raw session-key spelling and strict-compared in
the header and history gate, blanking the dropdown across the legacy
main -> agent:main:main alias window (same class as #124020); both
compares use areUiSessionKeysEquivalent.
Riders per pathfinder rule: deleted the write-only chatBranchesLoading flag,
a duplicate activeLeafEntryId recompute, and two provably-no-op second
dropPreSessionStartAnnouncePairs passes in chat-history-pages.ts (the filter
is single-pass complete and its inputs were already filtered).
Production LOC +27/-34 (net -7); regression tests fail pre-fix.
* refactor(ui): move branch-display ownership out of the header render
check-lint-core-4 flagged chat-pane-header.ts at 702 counted lines after the
equivalence gate landed there. The branches-for-display decision belongs to
the state owner anyway: displayedChatSessionBranches in chat-history.ts now
owns it and the header render consumes the fact.
0 commit comments