Repository navigation
Conversation
This was referenced Oct 14, 2026
Every session opened on a board becomes a tab in the existing session panel until it is closed. One session looks exactly like today; a tab bar appears with the second. Tabs that do not fit go into a neutral "N more" dropdown with an amber count for sessions that need you. Hide panel collapses to an "N open" edge button. On mobile the session header gets an "N open" switcher that opens an "Open sessions" sheet. Open tabs and the selected tab persist per user per board in localStorage. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Compute how many tabs fit at 200px, then stretch the fitting tabs to share the whole row up to 280px each, so "N more" no longer sits after an empty gap. Tab status reuses getSessionStatusTone, and the mobile sheet uses Drawer size instead of the deprecated height. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
kgabryje
force-pushed
the
feature-session-tabs
branch
from
October 21, 2026 13:03
80a867c to
8d90ea1
Compare
- Persisted tabs are never pruned by what the client has loaded. Missing or
moved-board sessions are filtered for display only; a close picks its
neighbour from the shown tabs, and selectedId stays in ids or null.
Archive and delete events drop the tab explicitly.
- useSessionTabs takes { onSelect, onCloseLast } and owns close and
close-others navigation for desktop and mobile. Closing replaces the URL,
so Back does not reopen a closed tab.
- App subscribes only to the shown tab ids; the tab bar, edge button and
mobile switcher subscribe to the live sessions themselves.
- Mobile switching clears read and attention flags like the other open paths.
- SessionTabs.onHide is optional; SessionPanel takes an explicit closesTab;
the mobile sheet is height-bounded and scrolls; "N open" has an aria-label.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Closing a tab decided whether to navigate from the saved selectedId, which storage sync shares across windows on the board. With two windows showing A and B, closing A in the first left its panel and URL on the closed session. Navigation now follows the window's displayed session. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
useSessionTabs now subscribes to sessions patched/removed events to drop archived and deleted tabs, so the test's mocked service needs on and removeListener like the other UI test mocks. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
kgabryje
marked this pull request as ready for review
October 22, 2026 14:53
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.
What
Every session you open on a board becomes a tab in today's session panel until you close it.
/s/<id>still points at the selected tab, so links, back and forward work as before.Badgecount sits on it only when hidden tabs need you. The selected tab always stays visible.SessionPanel, no fork): one session full screen as today. With 2+ open, the header gets an "N open" button that opens an "Open sessions" bottom sheet with each session's status and a close ×. Back to the board keeps them open.useUserLocalStorage, same aspanel:right:size).Status is never colour alone: Needs you (
ExclamationCircleFilled, warning), Running (spinningLoadingOutlined), Completed, not read yet (CheckCircleFilled, primary; reusesready_for_promptviaisUnreadResult), Failed (CloseCircleFilled, error), Idle (no icon). Every action is a visible button or menu item.Why
Today opening a second session replaces the first, so following several agents means hunting for them on the board again. Spec:
agor://kb/product-prds/session-tabs/impl-spec-2026-10-13.md. Prototype: https://agor.sandbox.preset.zone/ui/a/01a130accd27727a85f19d98/fullscreenHow
hooks/useSessionTabs.ts: per-board tab state (pure open/close/close-others helpers plus a shallow store subscription for the open sessions).components/SessionTabs/: antdTabs(editable-card) tab bar with the "N more"Dropdownand Hide panel, the shared "N open" button, and the mobile sheet (Drawer placement="bottom").App.tsx: the selected session opens a tab; tab bar sits above the existingSessionPanelin the session slot; edge button on the canvas when tabs are hidden; archiving the selected session selects its neighbour.SessionPanel.tsx: optionalonCloseOtherTabs(adds the ⋯ item, header × becomes "Close tab") andheaderExtra(mobile switcher). Still one mountedSessionPanel; drafts survive switching (fix: persist prompt drafts to localStorage to survive board switches #897).Does not touch panel sizing (#2794) or ejecting sessions to the canvas (#1713).
Screenshots
All 17 screenshots (1440 with and without the left panel, 1920, 390; light and dark; one session, 2 tabs, 6 tabs with "4 more" and a needs-you badge, tooltips, right-click, ⋯ menu, close, hide panel and edge button, mobile switcher and sheet): https://agor.sandbox.preset.zone/ui/a/01a135e5c4b4728394af07ec/fullscreen
Test env: http://10.33.92.175:13935
Testing
hooks/useSessionTabs.test.ts: open, no duplicates, close selects the right then left neighbour, last tab, close others.components/SessionTabs/SessionTabs.test.tsx: status mapping, needs-you copy (singular/plural), overflow keeps order and the selected tab, tab width stretches between 200 and 280px, "N more" badge, close and hide, mobile sheet.SessionPanel.test.tsx: Close tab and "Close other tabs" with 2+ tabs; menu unchanged with one.Appand mobileSessionPagesuites pass. Biome, frontend colour plugin check andagor-uitypecheck pass.Not in this PR (follow-ups)
🤖 Generated with Claude Code