mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-18 13:23:33 +08:00
When the tab strip overflows, newly opened sessions were active but could remain outside the visible horizontal viewport. The tab bar already owns element refs for drag and close behavior, so the focused fix scrolls the active tab into view after activation and refreshes overflow controls on the next frame. Constraint: Preserve existing tab ordering, drag behavior, and close-button affordances. Rejected: Reorder new sessions to the left | changes established tab order and makes history harder to scan. Confidence: high Scope-risk: narrow Directive: Keep active-tab visibility behavior in TabBar so all activation paths share it. Tested: cd desktop && bun run test -- TabBar Tested: cd desktop && bun run lint Tested: cd desktop && bun run build Tested: agent-browser overflow smoke with six tabs confirmed active Untitled Session fullyVisible=true Not-tested: Full bun run verify gate.