From 5a32057d71d4ccaedd87cbb175a3af84864d9f42 Mon Sep 17 00:00:00 2001 From: Huiwen Zuo Date: Tue, 6 Oct 2026 20:15:54 +0000 Subject: [PATCH] feat(chat): add option to open sidebar sessions in a session tab A plain click on a sidebar session replaces the session in the active tab, so a user who keeps several sessions open as tabs loses one on every click. Add an opt-in Settings > Chat > Sessions toggle that opens the session in its own session tab instead, or switches to its tab when it has one. A tab opened right after a session switch now lands next to the active tab instead of at the end of the strip. --- docs/feature-map/README.md | 3 +- .../docs/settings-registry.generated.json | 7 ++ src/kiro_crew/docs/ui-index.generated.json | 17 +++- .../commandPalette/settingsRegistry.gen.ts | 12 +++ website/src/hooks/useSessionTabs.ts | 7 +- website/src/i18n/locales/bn.json | 2 + website/src/i18n/locales/de.json | 2 + website/src/i18n/locales/en-XA.json | 2 + website/src/i18n/locales/en.manual.json | 2 + website/src/i18n/locales/es.json | 2 + website/src/i18n/locales/fr.json | 2 + website/src/i18n/locales/hi.json | 2 + website/src/i18n/locales/it.json | 2 + website/src/i18n/locales/ja.json | 2 + website/src/i18n/locales/ko.json | 2 + website/src/i18n/locales/pt.json | 2 + website/src/i18n/locales/ru.json | 2 + website/src/i18n/locales/zh-CN.json | 2 + website/src/pages/ChatPage.tsx | 15 +++- website/src/pages/chat/ChatSettings.tsx | 11 ++- .../pages/chat/page/SessionsSidebarChrome.tsx | 8 +- .../src/pages/chat/page/activeSlotState.ts | 2 +- .../chat/useChatPageSessionController.ts | 18 ++++ website/src/pages/settings/ChatPanel.tsx | 1 + .../src/test/ChatPage.sessionTabs.test.tsx | 88 +++++++++++++++++-- website/src/test/ChatSettings.test.tsx | 19 ++++ .../test/SettingsChatPanelCoverage.test.tsx | 1 + 27 files changed, 219 insertions(+), 16 deletions(-) diff --git a/docs/feature-map/README.md b/docs/feature-map/README.md index 8975a8ef983c..03a88e4480d4 100644 --- a/docs/feature-map/README.md +++ b/docs/feature-map/README.md @@ -84,13 +84,14 @@ this area is reached from inside it unless stated otherwise. | Redaction cards | A removed credential renders as a lock tag and a suspicious URL as a Blocked link chip; each opens a card explaining the removal, naming the credential's source (Open in Terminal pre-fills without running) or showing the link's full address (Copy URL, Open once, Allow for this host). The first reply with removed values in a session carries a one-time coach. Allowed hosts are listed and revoked in Settings → Security → Redaction | Inside an assistant reply that had a value or link removed | `components/RedactionCards.tsx`, `pages/settings/SecurityPanel.tsx` (the Redaction section: `SecurityPanelRedaction.tsx`) | `handlers/redaction.py` | `GET,POST,DELETE /api/redaction/allowed-hosts` | | Remote media gate | A remote image, video or audio in an assistant reply loads only when the reader clicks it, so rendering never fetches an agent-chosen URL; media pointing at the gateway's own routes is refused | Inside an assistant reply that embeds remote media | `components/markdown/remoteMedia.tsx`, `components/markdown/ImgWithFallback.tsx` (composed by `components/MarkdownRenderer.tsx`) | — | — | | Loaded skill card | A skill selected through the `$` picker appears as a collapsed transcript card with a book icon. A one-skill card expands to its detail line and capped body. A card with several skills expands to one detail line and one row per skill; each saved body's native row button opens only that skill's keyboard-scrollable capped body, so every other row header stays reachable. A structured skill with an empty body stays non-interactive and states that the skill has no instructions. Each saved body has a bottom fade that clears at the scroll end, and compact headings keep skill instructions below assistant answers in the transcript hierarchy. Name-only rows from older gateways remain non-interactive and state that instructions were not recorded for older turns | Session transcript → composer `$` picker → select and send a skill | `pages/chat/SkillLoadCard.tsx`, `pages/chat/MarkdownDisclosureCard.tsx` (shared disclosure shell with `pages/chat/CompactionCard.tsx`), `pages/chat/transcriptRenderers.tsx`, `app-sdk/messageRenderers.tsx` | `chat_turn/prompt_assembly.py` (`_expand_dollar_skills` snapshots the loaded names and bodies) | `POST /api/chat`, `GET /api/ws` (`chat_message` row with `meta.kind=skill_load`) | -| Sessions | Multi-slot agent chat, one slot per conversation; pinned rows form a manually ordered section above automatic sorting, whose key (the sort-and-filter menu's **Sort sessions by**: last activity, created or name, each either way, or **Manual**, the person's own drag order) is stored on the gateway as `dashboard.session_sort`, so every browser draws the same order and clearing site data keeps it; a drop between two unpinned rows, in any sort, switches to Manual and offers **Sorted by hand** with Undo (under Manual, Alt+Arrow on a focused unpinned row moves it too), and the gateway keeps that order beside the pinned one (`chat_manual_order.json`, carried on each slot row as `manual_rank`, written by the person's browser only), and a pinned row stays on screen while a tag filter or a status chip narrows the rest of the list (the search box and a folder hide still apply to it; the chip counts still count matches). The gateway stores that order (`chat_pinned_order.json`, carried on each slot row as `pin_rank`), so every browser shows the same one, and an agent can set it with the dashboard MCP's `chat_session_pin_move`. The sidebar's session list has three button-cycled layouts: the folder tree, the **conductor lane**, and the flat lane. The tag board is NOT in that cycle. A configured board renders instead of all three, and the header button then switches flattening INSIDE its columns. The button cycles tree -> conductor -> flat -> tree, skipping any layout that cannot render. The conductor lane nests LOCAL sessions under the session that OPENED them via `session_create`, or under whichever session has since TAKEN THEM OVER: `session_adopt` re-parents a session and `session_release` returns one to the top level, so the nesting is mutable and no longer opener-only. Every crew arrives COLLAPSED by default, at every level, so the lane reads as one shut row per crew (child count plus the subtree's badges) and the person opens the crews they care about; the persisted set (`mc-sidebar-conductor-expanded`) holds what they have OPENED, so an opened crew stays open across reloads while one that set has never held renders shut (the older `mc-sidebar-conductor-collapsed` key is deleted on first read). A crew whose creator is a crew member's own thread (surface `member`) still nests: the lane borrows that creator from the full slot list as a dimmed anchor row that opens on the Members page and withholds rename, close, fork and drag. A card that has children carries a chevron and child count, plus that subtree's aggregated needs-you / running counts while it is collapsed; indentation is capped so a deep chain cannot walk the card off a narrow sidebar. The tree is built from EVERY row the view chips could show, and those chips then choose which rows show, so a status, tag or search chip can never re-parent anything: an ancestor that does not itself match but that a shown row hangs from stays on screen as a dimmed anchor row, and a chip admitting only parentless rows still renders the lane. The sort/filter menu's **Pause all filters** / **Resume all filters** row lifts every active status chip at once without removing it: the chips stay in the row, marked paused, and no status criterion narrows the list until the person resumes. The paused state persists with the filters across reloads. A click on a chip still clears that filter. The same menu's **Filter by model** section lists the models the sessions run on, most used first with a session count each, so it doubles as a read of what is in use; sessions with no pinned model sit under one **No model chosen (agent default)** row, while a session pinned to a model the account can no longer run keeps its model's row (those are the sessions to move), and two spellings of one model fold onto one row labelled by the id the composer shows (the routing prefix dropped). Ticking rows narrows the list to those models (a union, like tags); **Hide sessions on these models**, a checkbox row at the top of the section (listed from the start, enabled once a row is ticked), inverts the selection, so every session NOT on a given model is one tick plus the toggle; while inverted, a ticked row keeps its tick and gains a muted name and a trailing eye-off glyph, so the menu itself says which models are hidden. The selection and its direction persist across reloads under one key; a selected model no session uses any more is ignored rather than allowed to blank the list; a session from a peer gateway carries no model in its row and is hidden while the filter narrows, in either direction; one aggregate chip names the selection (or its negation) and clears it. In the filter menu, the **Unread**, **In progress** and **Pinned** rows each pair their show-only action with an eye-slash button that instead hides matching sessions; show-only and hide are exclusive, each hide persists per row in localStorage, hides subtract matches after every other status, Recent, tag and search filter, a pause leaves them hiding, a hide applies to pinned rows too (like a folder hide, it means "hide all of these") and in every lane including the tag board, and active hides collapse into one **Hiding …** chip under search with one clear button. The filter menu's folder checkboxes and those status hides are deliberately stronger than a chip, and are the two things that do change the population: a folder the person unchecked, or a session a status hide matches, is dropped before the tree is built, so it contributes no anchor row either and a child it would have anchored stands as a root instead. Every lane that draws session rows honours a folder hide (tree, flat, conductor and the tag board), in its nested folders as well as its root ones, for as long as the hide is in force. There are four ways back, and none of them is a view the person has to leave: CHECKING the folder again in the filter menu, the same checkbox whose unchecking hid it, which is reachable in EVERY view including a board; **Show all folders** in that same menu, which clears the whole set at once; the reveal row a tree, flat or conductor container ends with, which peeks the hidden folders open in place (a board column has no folder header for such a row to hang from, which is why its way back is the filter menu); and TYPING IN THE SEARCH BOX, which suspends the folder hide entirely while the query is non-empty, so a hidden folder is never a search dead-end and a match inside one is always reachable. A text query in the search box does NOT nest at all — it flattens, the way the flat lane does, putting every match at depth 0 with no chevrons and no anchor rows, so a match several levels down inside a folded conductor cannot sit behind a chevron the person would have to guess at; each flattened row still carries the creator it cites, which is the only thing distinguishing a child from a root once the nesting is gone. Because an adoption moves a session that is already on screen, the lane auto-expands the row a session moved UNDER — a row whose citation CHANGED between two slots frames, and its whole ancestor chain — so an agent-initiated takeover cannot unmount the rows the person was watching; it does that by adding the destination chain to the expanded set, so a takeover into a conductor the person had left shut still reveals the row that moved, while a row that is merely NEW — what `session_create` gets — keeps the collapsed default and stays behind its parent's chevron. Sessions from a federated PEER gateway nest too: the peer-slot allowlist at that trust boundary (`_clean_peer_slot`) carries the citation as a clamped, redacted `parent: {slot, key}`, resolved only within the row's own `peer_id`, so a peer's own parent/child pairs are rebuilt here and never cross origins. The conductor lane is offered only when some row carries a creator and no board is configured. The edge itself rides the slots broadcast as `parent: {slot, key} | null` per row, resolved from an in-memory session-tree projection the crew-log writer advances at commit time, so nesting costs no scan per poll; the System page's Sessions table nests on the same field through one shared `nestsUnder`. The sidebar never paints so wide that the chat pane drops below its minimum width, whatever width was saved, in the list layouts and on the tag board alike (the phone drawer and the embedded Sessions list fill their host, so they reserve nothing). On the tag board, the lane strip fades any edge that hides lanes, so a lane clipped by a narrow window reads as more to scroll to | `/chat/:slug?` — rail **Sessions**; on a phone, the session (chevron) menu's first item, "New chat in {folder}", opens a sibling session in the on-screen session's folder with that folder's inherited agent and project, as the drawer's folder `+` does | `pages/ChatPage.tsx`, `pages/chat/page/` (internal split of ChatPage — the owners of its drafts and staging, mentions, launch intake, event bridges, busy-turn controls, transcript rows and jumps, turn recovery, pane notices and the phone top bar, and the eight view components the page places, mapped in `docs/system-specs/modules/learn-cron-dashboard.md`; no new user-facing feature), `pages/useChatPageSlotSwitches.ts` (the page's own slot switches: fork, the signed chat link, the follow-up session and a split pane's Side Chat), `pages/ChatSidebar.tsx`, `components/SearchFilterBar.tsx` + `components/ListDock.tsx` (the search row is a Liquid Glass pane floating over the lanes — the rows scroll under it and a pinned folder header sits on the dock's bottom edge; the first row sits clear of it at rest; shared with the Crew Members roster), `pages/chat/SessionFlyout.tsx`, `pages/chat/TranscriptScrollShell.tsx` (internal split of ChatPage — the transcript scroller skeleton, no new user-facing feature), `pages/chat/rowActivity.ts` (internal helper of the turn fold — a tool row says it is running, awaiting approval, hosting an app or opened, so the fold never hides it; no new user-facing feature), `pages/chat/ChatHeaderMenu.tsx` (internal split of ChatPage — the session header's dropdown: reveal, rename, auto-title, mode and the MCP servers submenu, no new user-facing feature), `pages/chat/ChatPageMessageContent.tsx` (internal split of ChatPage — row-key helpers and user-bubble content renderers, no new user-facing feature), `pages/chat/useChatPageTranscriptController.tsx` (internal split of ChatPage — scroll-to-bottom, auto-follow gating, nav scrolling and the pinned-prompt banner, no new user-facing feature), `pages/chat/useChatPageSessionController.ts` (internal split of ChatPage — session identity, `?sid` URL sync, session tabs and slot auto-create, no new user-facing feature), `pages/chat/useChatPageResourcesController.tsx` (internal split of ChatPage — side-panel tabs, source/issue selection, file/folder/artifact/diff opening, uploads, screen snips and drops, no new user-facing feature), `pages/chat/useStableCallbackProps.ts` (internal helper of ChatPage — holds the composer's callback props at stable identities so its memo holds; no new user-facing feature), `pages/chat/useSelectionInertOverlays.ts` (internal helper of ChatPage — on touch, makes the header, composer dock and phone top bar inert while a transcript text selection is held, so a dragged handle stays in the transcript; no new user-facing feature), `pages/chat/hoverHold.ts` (internal split of ChatSidebar — seat arithmetic for the hovered-row hold, no new user-facing feature), `pages/chat/sessionRowWindow.tsx` (internal helper of ChatSidebar — mounts only the session rows near a lane's viewport and stubs the rest, no new user-facing feature), `pages/chat-sidebar/` (internal split of ChatSidebar — the owners of its session row and source-link chips, its lanes, folder blocks, header, dock and Older Sessions pane and the scope they read, its stored view preferences, row sources, filters, lane choice, folders, board, drag and drop, reveal and session creation, mapped in `docs/system-specs/modules/history.md`; no new user-facing feature), `pages/chat-sidebar/scrollPeek.ts` + `pages/chat-sidebar/ScrollPeekLayer.tsx` (scroll peek — while the session list is scrolled by wheel, touch or arrow/page keys, each title in view that its row clips is shown in full in a floating, click-through layer laid over the row; rows keep the stored width and nothing scrolls sideways; the row under the pointer, any title behind a stuck folder header, and a title whose start (inside the sidebar) another panel covers get no overlay; that check samples the title's start only, so a panel over just the part drawn past the sidebar's edge is not detected and is covered for at most the 4s ceiling below, and the layer re-measures on every scroll or row change; it hides 150ms after the pointer leaves, 4s after the last scroll input, on any press or non-scrolling key anywhere on the page, when the window loses focus, or 0.7s after the last touch or key input; desktop list lanes only; off by default, turned on under Settings → Chat → Sessions → **Show Full Titles While Scrolling**), `pages/chat/CompactionCard.tsx` (transcript row for the gateway's compaction / session-reload status notices — folds the compaction summary behind a one-line card instead of an assistant bubble; no new user-facing entry point), `pages/chat/transientNotice.ts` (helper for the existing error row — resolves the gateway's transient-retry `meta.notice` token into localized NoticeCard / ErrorCard copy; no new user-facing entry point), `pages/chat/sidePanelWidth.ts` (helper for the side panel — keys the remembered width and dock height per chat slot, so a tab switch inside one chat never moves the panel, and owns their load fallback to the bare key every drag also writes; no new entry point), `pages/chat/useSidePanelSize.ts` (the side panel's size state those keys store, its resize drags, its clamp to the window and its eased edge on a chat switch; an owner of `pages/chat/SidePanel.tsx`, no new entry point), `utils/pinnedSessionOrder.ts`, `pages/chat-sidebar/sessionSort.ts` + `hooks/useSessionSortKey.ts` (the session sort key: read from `dashboard.session_sort`, saved by the **Sort sessions by** menu, and the one-time carry-over of the retired browser key `mc-session-sort`), `pages/chat-sidebar/manualOrder.ts` (the Manual order: drop and Alt+Arrow moves, the seed, and the Sorted by hand Undo), `lib/sessionLineage.ts` (the one lineage reader both the sidebar's conductor lane and the System page's Sessions table nest with), `pages/chat-sidebar/rows.ts` (the sidebar's row model — filters, order, lanes, folder rows and each row's peer-masked view; no new user-facing entry point), `pages/chat-sidebar/rowAnimSettle.ts` (helper for the session list — holds row animation until the list's first population has painted, so the first load does not collapse and re-expand; no new user-facing entry point) | `chat_handlers.py`, `ws.py`, `src/kiro_crew/crew_log/session_tree_projection.py` (the in-memory tree the writer advances at commit; `src/kiro_crew/crew_log/session_tree.py` remains its cold rebuild path), `handlers_instances_peer.py` (the peer-slot allowlist), `handlers/core_config_schema.py` (the `dashboard.session_sort` PATCH allowlist entry), `src/kiro_crew/config/loader.py` (reads the key; anything unknown is `date-desc`), `chat_folders.py` (`api_chat_pinned_order`, the pinned-order write), `dashboard/pinned_session_order.py` (the gateway's pinned-order store, and the manual order beside it), `dashboard/chat_manual_order.py` (`api_chat_manual_order`, the manual-order write) | `POST /api/chat`, `GET,POST /api/chat/slots` (each slot row carries `parent`, `pin_rank` and `pin_rev`), `POST /api/chat/pinned-order`, `POST /api/chat/manual-order`, `GET /api/ws` (the `slots` frame carries the same `parent`, `pin_rank` and `pin_rev`), `GET /api/instances/{id}/chat-slots` (each peer row carries `parent`), `GET,PATCH /api/config/kirocrew` (`dashboard.session_sort`) | +| Sessions | Multi-slot agent chat, one slot per conversation; pinned rows form a manually ordered section above automatic sorting, whose key (the sort-and-filter menu's **Sort sessions by**: last activity, created or name, each either way, or **Manual**, the person's own drag order) is stored on the gateway as `dashboard.session_sort`, so every browser draws the same order and clearing site data keeps it; a drop between two unpinned rows, in any sort, switches to Manual and offers **Sorted by hand** with Undo (under Manual, Alt+Arrow on a focused unpinned row moves it too), and the gateway keeps that order beside the pinned one (`chat_manual_order.json`, carried on each slot row as `manual_rank`, written by the person's browser only), and a pinned row stays on screen while a tag filter or a status chip narrows the rest of the list (the search box and a folder hide still apply to it; the chip counts still count matches). The gateway stores that order (`chat_pinned_order.json`, carried on each slot row as `pin_rank`), so every browser shows the same one, and an agent can set it with the dashboard MCP's `chat_session_pin_move`. The sidebar's session list has three button-cycled layouts: the folder tree, the **conductor lane**, and the flat lane. The tag board is NOT in that cycle. A configured board renders instead of all three, and the header button then switches flattening INSIDE its columns. The button cycles tree -> conductor -> flat -> tree, skipping any layout that cannot render. The conductor lane nests LOCAL sessions under the session that OPENED them via `session_create`, or under whichever session has since TAKEN THEM OVER: `session_adopt` re-parents a session and `session_release` returns one to the top level, so the nesting is mutable and no longer opener-only. Every crew arrives COLLAPSED by default, at every level, so the lane reads as one shut row per crew (child count plus the subtree's badges) and the person opens the crews they care about; the persisted set (`mc-sidebar-conductor-expanded`) holds what they have OPENED, so an opened crew stays open across reloads while one that set has never held renders shut (the older `mc-sidebar-conductor-collapsed` key is deleted on first read). A crew whose creator is a crew member's own thread (surface `member`) still nests: the lane borrows that creator from the full slot list as a dimmed anchor row that opens on the Members page and withholds rename, close, fork and drag. A card that has children carries a chevron and child count, plus that subtree's aggregated needs-you / running counts while it is collapsed; indentation is capped so a deep chain cannot walk the card off a narrow sidebar. The tree is built from EVERY row the view chips could show, and those chips then choose which rows show, so a status, tag or search chip can never re-parent anything: an ancestor that does not itself match but that a shown row hangs from stays on screen as a dimmed anchor row, and a chip admitting only parentless rows still renders the lane. The sort/filter menu's **Pause all filters** / **Resume all filters** row lifts every active status chip at once without removing it: the chips stay in the row, marked paused, and no status criterion narrows the list until the person resumes. The paused state persists with the filters across reloads. A click on a chip still clears that filter. The same menu's **Filter by model** section lists the models the sessions run on, most used first with a session count each, so it doubles as a read of what is in use; sessions with no pinned model sit under one **No model chosen (agent default)** row, while a session pinned to a model the account can no longer run keeps its model's row (those are the sessions to move), and two spellings of one model fold onto one row labelled by the id the composer shows (the routing prefix dropped). Ticking rows narrows the list to those models (a union, like tags); **Hide sessions on these models**, a checkbox row at the top of the section (listed from the start, enabled once a row is ticked), inverts the selection, so every session NOT on a given model is one tick plus the toggle; while inverted, a ticked row keeps its tick and gains a muted name and a trailing eye-off glyph, so the menu itself says which models are hidden. The selection and its direction persist across reloads under one key; a selected model no session uses any more is ignored rather than allowed to blank the list; a session from a peer gateway carries no model in its row and is hidden while the filter narrows, in either direction; one aggregate chip names the selection (or its negation) and clears it. In the filter menu, the **Unread**, **In progress** and **Pinned** rows each pair their show-only action with an eye-slash button that instead hides matching sessions; show-only and hide are exclusive, each hide persists per row in localStorage, hides subtract matches after every other status, Recent, tag and search filter, a pause leaves them hiding, a hide applies to pinned rows too (like a folder hide, it means "hide all of these") and in every lane including the tag board, and active hides collapse into one **Hiding …** chip under search with one clear button. The filter menu's folder checkboxes and those status hides are deliberately stronger than a chip, and are the two things that do change the population: a folder the person unchecked, or a session a status hide matches, is dropped before the tree is built, so it contributes no anchor row either and a child it would have anchored stands as a root instead. Every lane that draws session rows honours a folder hide (tree, flat, conductor and the tag board), in its nested folders as well as its root ones, for as long as the hide is in force. There are four ways back, and none of them is a view the person has to leave: CHECKING the folder again in the filter menu, the same checkbox whose unchecking hid it, which is reachable in EVERY view including a board; **Show all folders** in that same menu, which clears the whole set at once; the reveal row a tree, flat or conductor container ends with, which peeks the hidden folders open in place (a board column has no folder header for such a row to hang from, which is why its way back is the filter menu); and TYPING IN THE SEARCH BOX, which suspends the folder hide entirely while the query is non-empty, so a hidden folder is never a search dead-end and a match inside one is always reachable. A text query in the search box does NOT nest at all — it flattens, the way the flat lane does, putting every match at depth 0 with no chevrons and no anchor rows, so a match several levels down inside a folded conductor cannot sit behind a chevron the person would have to guess at; each flattened row still carries the creator it cites, which is the only thing distinguishing a child from a root once the nesting is gone. Because an adoption moves a session that is already on screen, the lane auto-expands the row a session moved UNDER — a row whose citation CHANGED between two slots frames, and its whole ancestor chain — so an agent-initiated takeover cannot unmount the rows the person was watching; it does that by adding the destination chain to the expanded set, so a takeover into a conductor the person had left shut still reveals the row that moved, while a row that is merely NEW — what `session_create` gets — keeps the collapsed default and stays behind its parent's chevron. Sessions from a federated PEER gateway nest too: the peer-slot allowlist at that trust boundary (`_clean_peer_slot`) carries the citation as a clamped, redacted `parent: {slot, key}`, resolved only within the row's own `peer_id`, so a peer's own parent/child pairs are rebuilt here and never cross origins. The conductor lane is offered only when some row carries a creator and no board is configured. The edge itself rides the slots broadcast as `parent: {slot, key} | null` per row, resolved from an in-memory session-tree projection the crew-log writer advances at commit time, so nesting costs no scan per poll; the System page's Sessions table nests on the same field through one shared `nestsUnder`. The sidebar never paints so wide that the chat pane drops below its minimum width, whatever width was saved, in the list layouts and on the tag board alike (the phone drawer and the embedded Sessions list fill their host, so they reserve nothing). On the tag board, the lane strip fades any edge that hides lanes, so a lane clipped by a narrow window reads as more to scroll to | `/chat/:slug?` — rail **Sessions**; on a phone, the session (chevron) menu's first item, "New chat in {folder}", opens a sibling session in the on-screen session's folder with that folder's inherited agent and project, as the drawer's folder `+` does | `pages/ChatPage.tsx`, `pages/chat/page/` (internal split of ChatPage — the owners of its drafts and staging, mentions, launch intake, event bridges, busy-turn controls, transcript rows and jumps, turn recovery, pane notices and the phone top bar, and the eight view components the page places, mapped in `docs/system-specs/modules/learn-cron-dashboard.md`; no new user-facing feature), `pages/useChatPageSlotSwitches.ts` (the page's own slot switches: fork, the signed chat link, the follow-up session and a split pane's Side Chat), `pages/ChatSidebar.tsx`, `components/SearchFilterBar.tsx` + `components/ListDock.tsx` (the search row is a Liquid Glass pane floating over the lanes — the rows scroll under it and a pinned folder header sits on the dock's bottom edge; the first row sits clear of it at rest; shared with the Crew Members roster), `pages/chat/SessionFlyout.tsx`, `pages/chat/TranscriptScrollShell.tsx` (internal split of ChatPage — the transcript scroller skeleton, no new user-facing feature), `pages/chat/rowActivity.ts` (internal helper of the turn fold — a tool row says it is running, awaiting approval, hosting an app or opened, so the fold never hides it; no new user-facing feature), `pages/chat/ChatHeaderMenu.tsx` (internal split of ChatPage — the session header's dropdown: reveal, rename, auto-title, mode and the MCP servers submenu, no new user-facing feature), `pages/chat/ChatPageMessageContent.tsx` (internal split of ChatPage — row-key helpers and user-bubble content renderers, no new user-facing feature), `pages/chat/useChatPageTranscriptController.tsx` (internal split of ChatPage — scroll-to-bottom, auto-follow gating, nav scrolling and the pinned-prompt banner, no new user-facing feature), `pages/chat/useChatPageSessionController.ts` (internal split of ChatPage — session identity, `?sid` URL sync, session tabs and slot auto-create; its `ensureSlotTab` backs the **Open sidebar sessions in a session tab** row), `pages/chat/useChatPageResourcesController.tsx` (internal split of ChatPage — side-panel tabs, source/issue selection, file/folder/artifact/diff opening, uploads, screen snips and drops, no new user-facing feature), `pages/chat/useStableCallbackProps.ts` (internal helper of ChatPage — holds the composer's callback props at stable identities so its memo holds; no new user-facing feature), `pages/chat/useSelectionInertOverlays.ts` (internal helper of ChatPage — on touch, makes the header, composer dock and phone top bar inert while a transcript text selection is held, so a dragged handle stays in the transcript; no new user-facing feature), `pages/chat/hoverHold.ts` (internal split of ChatSidebar — seat arithmetic for the hovered-row hold, no new user-facing feature), `pages/chat/sessionRowWindow.tsx` (internal helper of ChatSidebar — mounts only the session rows near a lane's viewport and stubs the rest, no new user-facing feature), `pages/chat-sidebar/` (internal split of ChatSidebar — the owners of its session row and source-link chips, its lanes, folder blocks, header, dock and Older Sessions pane and the scope they read, its stored view preferences, row sources, filters, lane choice, folders, board, drag and drop, reveal and session creation, mapped in `docs/system-specs/modules/history.md`; no new user-facing feature), `pages/chat-sidebar/scrollPeek.ts` + `pages/chat-sidebar/ScrollPeekLayer.tsx` (scroll peek — while the session list is scrolled by wheel, touch or arrow/page keys, each title in view that its row clips is shown in full in a floating, click-through layer laid over the row; rows keep the stored width and nothing scrolls sideways; the row under the pointer, any title behind a stuck folder header, and a title whose start (inside the sidebar) another panel covers get no overlay; that check samples the title's start only, so a panel over just the part drawn past the sidebar's edge is not detected and is covered for at most the 4s ceiling below, and the layer re-measures on every scroll or row change; it hides 150ms after the pointer leaves, 4s after the last scroll input, on any press or non-scrolling key anywhere on the page, when the window loses focus, or 0.7s after the last touch or key input; desktop list lanes only; off by default, turned on under Settings → Chat → Sessions → **Show Full Titles While Scrolling**), `pages/chat/CompactionCard.tsx` (transcript row for the gateway's compaction / session-reload status notices — folds the compaction summary behind a one-line card instead of an assistant bubble; no new user-facing entry point), `pages/chat/transientNotice.ts` (helper for the existing error row — resolves the gateway's transient-retry `meta.notice` token into localized NoticeCard / ErrorCard copy; no new user-facing entry point), `pages/chat/sidePanelWidth.ts` (helper for the side panel — keys the remembered width and dock height per chat slot, so a tab switch inside one chat never moves the panel, and owns their load fallback to the bare key every drag also writes; no new entry point), `pages/chat/useSidePanelSize.ts` (the side panel's size state those keys store, its resize drags, its clamp to the window and its eased edge on a chat switch; an owner of `pages/chat/SidePanel.tsx`, no new entry point), `utils/pinnedSessionOrder.ts`, `pages/chat-sidebar/sessionSort.ts` + `hooks/useSessionSortKey.ts` (the session sort key: read from `dashboard.session_sort`, saved by the **Sort sessions by** menu, and the one-time carry-over of the retired browser key `mc-session-sort`), `pages/chat-sidebar/manualOrder.ts` (the Manual order: drop and Alt+Arrow moves, the seed, and the Sorted by hand Undo), `lib/sessionLineage.ts` (the one lineage reader both the sidebar's conductor lane and the System page's Sessions table nest with), `pages/chat-sidebar/rows.ts` (the sidebar's row model — filters, order, lanes, folder rows and each row's peer-masked view; no new user-facing entry point), `pages/chat-sidebar/rowAnimSettle.ts` (helper for the session list — holds row animation until the list's first population has painted, so the first load does not collapse and re-expand; no new user-facing entry point) | `chat_handlers.py`, `ws.py`, `src/kiro_crew/crew_log/session_tree_projection.py` (the in-memory tree the writer advances at commit; `src/kiro_crew/crew_log/session_tree.py` remains its cold rebuild path), `handlers_instances_peer.py` (the peer-slot allowlist), `handlers/core_config_schema.py` (the `dashboard.session_sort` PATCH allowlist entry), `src/kiro_crew/config/loader.py` (reads the key; anything unknown is `date-desc`), `chat_folders.py` (`api_chat_pinned_order`, the pinned-order write), `dashboard/pinned_session_order.py` (the gateway's pinned-order store, and the manual order beside it), `dashboard/chat_manual_order.py` (`api_chat_manual_order`, the manual-order write) | `POST /api/chat`, `GET,POST /api/chat/slots` (each slot row carries `parent`, `pin_rank` and `pin_rev`), `POST /api/chat/pinned-order`, `POST /api/chat/manual-order`, `GET /api/ws` (the `slots` frame carries the same `parent`, `pin_rank` and `pin_rev`), `GET /api/instances/{id}/chat-slots` (each peer row carries `parent`), `GET,PATCH /api/config/kirocrew` (`dashboard.session_sort`) | | Agent picker | The composer's agent pop-up lists the installed shared templates for the chat. Configured mates (each wearing its roster avatar) join it too, except one a listed template already covers (same name, or no memory of its own on a listed template); the default agent stays unless a template shares its name, so a switch away from it can be reversed by name; `dashboard.crewmates_in_agent_picker` (default off) lists every mate, grouped under **Custom agents** then **Mates**, so a member and a template of one name are two rows and picking one binds that namespace to the session (a template pick runs the shared template without enrolling it as a member or pinning member memory). The same read-only catalog feeds the schedule form, channel and project bindings and the agent-cycle shortcuts, folded to one row per name; opening any of them no longer enrols discovered templates as crew members | Chat composer → agent chip (also split-view panes); typing `/agent ` in the composer, a split pane or a Slack thread linked to the chat makes the same switch; `Alt+Shift+A` / `Alt+Shift+Z` cycle (named on the chip tooltip; ⌥⇧A / ⌥⇧Z on macOS); mate rows via `config.json` → `dashboard.crewmates_in_agent_picker` | `components/AgentDropdownList.tsx`, `hooks/useAgents.ts`, `components/ChatPane.tsx`, `pages/ChatPage.tsx`, `pages/chat/page/ComposerDockView.tsx`, `pages/chat/ChatInput.tsx` (`agentSwitchTarget`) | `handlers/agent_catalog.py`, `chat_handlers.py` (`agent_kind` on create and switch, `switch_slot_agent`), `agent_switch_command.py` and `chat_turn/slash_commands.py` (`_handle_agent_command`) for the typed command, `handlers/core.py` (serves the config key) | `GET /api/agents/catalog`, `GET /api/config/kirocrew` (`dashboard.crewmates_in_agent_picker`), `POST /api/chat/slots` (`agent`, `agent_kind`), `POST /api/chat/slots/{slot}/agent` (`agent`, `agent_kind`, `announce`) | | Project AWS profile | Binds an AWS named profile to a project directory (`aws.project_profiles`, operator-owned, never read from the checkout), so a session working there starts its agent with `AWS_PROFILE` and `AWS_DEFAULT_PROFILE` set unless the caller set one; the deepest mapped directory wins, matched on real paths by whole components. The project pill shows the bound profile read-only and turns amber when its sign-in no longer resolves (an expired SSO session names the `aws sso login` command); the project picker carries an AWS profile row to change it: known profiles, a typed name, or the default credential chain. Hidden for an unbound project when no profile name is known. A wrong-account guard, not isolation | Chat composer → project pill → folder → project picker → **AWS profile for this project**; `kirocrew config set aws.project_profiles` | `components/ProjectAwsProfile.tsx` (status mounted by `components/ChatInput.tsx`, picker row passed to `components/ProjectPicker.tsx` by `pages/chat/page/ComposerDockView.tsx`) | `handlers/aws_project_profile.py`, `src/kiro_crew/aws_project_profiles.py` (match and spawn injection in `session_allocation.py` and `session_allocation_parts/`) | `GET,PUT /api/aws/project-profile` | | ACP chat effort | A slot's ACP capability answer advertises whether effort is supported, which levels it accepts, and whether model IDs encode effort. Supported sessions show an effort slider inside the model picker (`ModelEffortDropdown`), fed by the selection-capabilities read — there is no separate effort chip; Codex model/effort pair IDs collapse to one row per base model, while other backends keep their own model IDs. Before the session starts, the endpoint still reports the configured backend's pair-ID convention. Unknown sessions probe briefly at 2s intervals and then back off to 30s. A crew window offers the peer's own roster from `GET /api/instances/{id}/capabilities`, where the hub retains safe peer levels up to a total cap, and reads the peer slot's own selection-capabilities answer through the hub proxy | Chat composer → model picker (effort slider inside it) | `pages/ChatPage.tsx`, `pages/chat/page/ComposerDockView.tsx`, `pages/chat/page/composerChips.ts`, `components/ChatInput.tsx`, `components/ChatPane.tsx`, `components/ModelEffortDropdown.tsx`, `components/ReasoningEffortDropdown.tsx`, `components/modelPickerKeyRouting.ts`, `hooks/useInteractiveModels.ts` | `chat_handlers.py` (`api_chat_slot_selection_capabilities`, `api_chat_slot_reasoning_effort`), `chat_persistence.py` (bounded effort allowlist), `handlers_instances_peer.py` (peer effort levels) | `GET /api/chat/slots/{slot}/selection-capabilities`, `POST /api/chat/slots/{slot}/reasoning-effort`, `GET /api/instances/{id}/capabilities` | | Sessions page | A neutral, bookmarkable session chooser at a stable URL — lists open sessions with search, filter chips (All / Unread / tags) and recency groups; never auto-selects or auto-creates a session, unlike bare `/chat` | `/sessions` — typed or bookmarked URL only (deliberately no nav-rail entry; pending a maintainer call) | `pages/SessionsPage.tsx`, `pages/chat/sessionOrder.ts` (shared ordering with the sidebar) | none new — reads the same SSE slots frames and existing handlers | `GET /api/ws` (`slots`), `GET /api/chat/tags`, `POST /api/chat/slots` (New session) | | Default memory mode | Picks Persistent, Incognito, or Temporary for new dashboard-created chats; explicit per-chat choices win, while app-owned and direct API sessions keep their own mode | Settings → Chat → Sessions → **Default Memory Mode**; the Welcome view can override one chat | `pages/settings/ChatPanel.tsx`, `pages/settings/useChatPanelDashboard.ts`, `store/chat/lifecycle.ts` (`createSlot`), `components/WelcomeView.tsx`, `components/MemoryModeChip.tsx`, `pages/chat/memoryModeSwitch.ts` (internal helper of ChatPage, loaded on the chip pick — replaces the chat with one in the new mode and carries the unsent draft and running uploads; no new user-facing entry point) | `handlers/files.py` (`api_dashboard_config`), `chat_handlers.py` | `GET,PUT /api/dashboard/config`, `POST /api/chat/slots` | | Default folder for new chats | Files a chat started from a New entry point into one sidebar folder the person picked, stored by folder ID so a rename or move keeps it; the chat takes that folder's project and agent pin and an explicit folder wins. The default is opt-in at the New entry points (`createSlot({ defaultFolder: true })`), so apps, an app's chat launch, the Projects, Dev Fleet and Prompts auto-send launches, crons, channels, agents, forks, worktree, crew, agent-template and artifact chats keep their own placement. Clean up empty folders keeps the default folder. A deleted default, or one whose project directory is gone, leaves the chat unfiled | Settings → Chat → Sessions → **Default Sidebar Folder for New Chats** | `pages/settings/DefaultSessionFolderSetting.tsx`, `store/chat/lifecycle.ts` (`createSlot`), `pages/chat/page/ChatEmptyState.tsx` (reports a failed create from the empty page) | `dashboard/default_session_folder.py`, `chat_api/slot_create.py`, `file_api/dashboard_config.py` | `POST /api/chat/slots` (`default_folder`), `GET,PUT /api/dashboard/config` (`default_session_folder`) | +| Open sidebar sessions in a session tab | Opt-in, off by default: a plain click on a sidebar session, or a pick from the collapsed sidebar's recents flyout, opens the session in its own session tab beside the active one instead of replacing the active tab's session. A session that already has a tab is only selected | Settings → Chat → Sessions → **Open Sidebar Sessions in a Session Tab** | `pages/settings/ChatPanel.tsx` (stored by `pages/chat/ChatSettings.tsx` under `mc-chat-config`), `pages/ChatPage.tsx` (the sidebar's `onSelectSlot` handler and the flyout's switch), `pages/chat/useChatPageSessionController.ts` (`ensureSlotTab`), `hooks/useSessionTabs.ts` (`openInNewTab` places the tab) | client-only (no handler) | none | | Relay archive | A chat an older build ran on a connected peer crew through the retired turn relay. It loads read-only: send, regenerate, rewind, continue, todo, header picks, the MCP session tools and the OpenAI-compatible endpoint all answer 409 `relay_archive_read_only`. New chat on crew opens a crew window instead (next row) | Existing relay-archive rows in the Sessions list | `pages/ChatPage.tsx`, `pages/chat-sidebar/SessionRow.tsx`, `components/RemoteCrewChip.tsx` | `relay_archive.py`, `chat_handlers.py`, `slot_persistence/metadata_codec.py` | `POST /api/chat` (409) | | Peer-owned live session (crew window) | A session a connected peer crew owns, filed read-only under its crew's group in this machine's live Sessions list: `Local` first, then one collapsible group per crew with an online / reconnecting / error / offline badge from the tunnel state. A relay archive that ran on that crew sits in the same group. Inside the group the crew's own folders nest its rows (read-only spaces mirroring the crew's tree, edited on the crew, with their own collapse state), unfiled rows last. A disconnected crew keeps its last listed rows, dimmed, until a reload; with no crew group the list draws no group headers. Clicking one, or New chat on crew (which creates the session ON the peer after a version check), opens a crew window in the chat pane: the peer's own transcript, running state and pending approval, read and driven through the hub proxy, drawn with the shared transcript rows (tool lines, cards, the approval group), the local chat's own message bubbles and hover rows (Quote, Copy, Edit & Resend; Regenerate on the newest reply) and the shared composer, whose model + effort picker and agent picker read the peer's roster and set the PEER session's model, effort and agent. Its approval-mode picker shows the peer session's mode (the peer's YOLO comes from `GET /api/instances/{id}/approval-state`, re-read every 30 s while the window is open and again right before a mode write, which is skipped when YOLO is on) and sets Normal, Reads or Trust on that session; YOLO is not offered, and nothing is while the peer is in YOLO. A peer refusal shows on the window. Attach is not drawn: it uploads to this machine. While the peer runs, the composer steers or queues, as locally; its Resume shows on a turn the peer calls interrupted. The context meter (with no auto-compact slider), the stop and compacting states and the folder chip read the peer; the folder is a label, with no picker and nothing on this machine rooted at it. A crew that cannot be reached gets its own notice, with a button to its dashboard. Send, steer, stop, approve, continue, regenerate, rewind and the model, effort, agent and mode picks call the peer's own routes; nothing is stored on this machine. Peer rows draw no decision strip and no file-change chips. The proxy redacts every peer reply before the browser renders it. The row still omits rename, close, pin, folders, drag and the ⋯ group. Board view stays local and reports the count it filtered. The peer's CLOSED sessions are reachable only through federated history search | Settings → Developer → Feature Previews → **Chat on a crew** (default off; one switch for the crew groups and New chat on crew), then rail **Sessions**; New-chat menu → **New chat on crew** | `pages/ChatSidebar.tsx` (the crew-window open), `pages/chat-sidebar/laneRows.tsx` (the `Local` and per-crew groups), `pages/chat-sidebar/SidebarHeader.tsx` (the New menu's **New chat on crew**), `pages/chat-sidebar/sessionSources.ts`, `pages/chat/crew-window/CrewChatWindow.tsx`, `pages/chat/crew-window/crewWindowRenderers.tsx`, `pages/chat/crew-window/crewWindowModelPicker.tsx`, `pages/chat/crew-window/crewWindowAgentMode.tsx`, `pages/chat/crew-window/crewWindowStore.ts`, `pages/chat-sidebar/create.ts`, `hooks/useInstanceSessions.ts`, `components/RemoteCrewChip.tsx`, `pages/settings/FeaturePreviewsSection.tsx` | `handlers_instances_peer.py`, `slot_projection.py` | `GET /api/instances/{id}/chat-slots` (owner-only, GET-only; reads the peer's `GET /api/chat/slots`, allowlists and re-redacts each row), `ANY /api/instances/{id}/proxy/api/chat/...` and `GET /api/instances/{id}/proxy/api/stream` (owner-only; replies redacted, the stream held only while a window is open), `GET /api/instances/{id}/capabilities`, `GET /api/instances/{id}/approval-state` (owner-only; the peer's YOLO flag) | | Session folders | User-defined folders grouping session rows; a folder holding no sessions can optionally drop its body so it costs one row instead of two. **Clean up empty folders** deletes, in one step, every folder whose whole subtree holds no live session and no folder a saved cron job files into, that carries no setting the person chose (`project_dir`, `default_agent`, `steering_dirs`, `tags`, `color`, `icon`) and that is not a channel folder (one stamped for a channel, or one a channel's `session_folder` setting names); top-level folders are kept unless the person ticks the box, a dry run lists the folders by full path first, archived sessions in a removed folder stay in Older Sessions unfiled, occupancy is re-checked under the folder-store lock, and agent and app callers are refused. Sibling folders list in one per-user order — the stored positions (**Custom**, the default and the only mode a folder drag reorders in), **By name** (natural: `01.` < `02.` < `10.`) or **By date created (newest first)** (a folder from before the `created_at` stamp existed has no date and comes last, in the stored order, which the menu and `chat_folder_tree` both say while such a folder is in the list) — stored as `dashboard.folder_sort`, which every folder picker outside the sidebar, the Command Bar's **Search Folders** view and the `chat_folder_tree` MCP tool list in too, so a person and an agent see the same tree. A folder can also declare extra **steering directories**: the always-inclusion `*.md` files under them (`.kiro/steering`-style) are delivered to every session filed in the folder or its subfolders (folder membership belongs to a dashboard session slot, including a channel conversation surfaced as one -- a Slack, Discord, Telegram or Teams session the reconciler or channel auto-filing placed in a folder, or a Slack thread linked with `/kirocrew link-to-dashboard`; a turn typed in that slot's dashboard tab runs on the linked channel session through the dashboard chat runner and receives the folder's steering, while a turn arriving from the channel side is dispatched with no slot and does not), on every model provider (kiro-cli, Claude Code, Codex, KAS or a config-authored harness) -- with one provider-aware difference: a document under the project's or the operator's own `.kiro/steering` tree is skipped only where the provider already delivers that tree (kiro-cli natively, Claude Code through the explicit steering load, KAS via `native_steering`) and is delivered through the folder on the harnesses that have no such path (Codex, OpenCode, Pi, Goose, DeepSeek) -- accumulating root-first up the parent chain, bounded to 64 documents and 4096 directory entries per root with any excess reported in-band as a `[FOLDER STEERING OMISSION: …]` line; only the person may **declare** steering directories -- `POST`/`PATCH /api/chat/folders` from an app or crew-member principal refuses a non-empty `steering_dirs` with 403 (`steering_dirs_forbidden`, audited) before any path is touched, because folder permission is not host-file permission and the gateway reads these files unsandboxed; clearing to `[]` is still allowed -- and a folder a non-person principal owns steers only chats running as that principal (an app's folder → that app's slots; a crew member's folder, stamped `member:`, → that member's own private-memory chats); a private-member chat in **Temporary** memory mode receives none of it, the same way that mode withholds the member's project steering (the essentials envelope is built with reads blocked), while a non-member Temporary chat still receives it. Not available on native Windows: the tree is read only through descriptor-pinned directory handles (never by name), and Windows cannot open a directory relative to a descriptor, so there `PATCH /api/chat/folders/{id}` refuses a non-empty `steering_dirs` before touching the filesystem (clearing to `[]` still works) and the collector skips a stored value with a warning rather than attempting a by-name walk. An agent cannot write the field (a call on the internal credential every MCP tool call carries is refused like an app's); it proposes a `folder.steering` change card (`propose_change`) showing the folder, its current list and the new one, which the person's own browser applies through the same `PATCH`, and `chat_folder_tree` renders each folder's declared list as `steering=[…]`. A folder named in chat prose by its full path -- the `/`-joined human path the folder tools take (`goal/worker`) or the ` › ` breadcrumb the header shows -- renders as a click-to-reveal chip, the folder twin of the session-key chip: the click puts a sidebar on screen (the phone opens its drawer, the desktop pins the pane) and issues the same `requestFolderReveal` the Command Bar's folder scope does, so the sidebar expands the ancestors, leaves the flat lane, scrolls to and flashes the folder; Ctrl/Cmd+click copies the path. Offered only for a path that exactly one existing folder renders to, compared against every folder's whole root-to-leaf path, and that carries a separator (a bare word stays click-to-copy; a path two same-named siblings render to, or that a nested folder and a root folder literally named with either separator (`goal/worker`, `goal › worker`) both render to, is refused as ambiguous; both spellings are normalised to one key before the comparison), only where the chat page can mount a sidebar (never in embed-chat), and it yields the span to the filesystem path chip when the stat probe confirms a file or directory of that spelling on disk | Sidebar folder header → drag a row; open folder → click the connector line down the left of its session rows (hover widens it to an accent bar) to collapse that folder, in the list and board views; sidebar folder header (list view or a board column) → right-click opens the same folder actions menu as the row's ⋯ button, positioned at the pointer (Rename, New subfolder, New incognito chat, New temporary chat, Move folder to, Folder settings, Delete folder; Hide folder and Hide when empty are list-view only); folder ⋯ menu → **New incognito chat** / **New temporary chat** (each with a one-line memory hint) to start a mode-pinned session in the folder; folder ⋯ menu → **Folder settings** → **Additional steering** → Add directory (a child folder lists what it inherits read-only, filtered the way delivery is: an ancestor owned by another principal is not listed because its directories never reach this folder's chats); sidebar sort-and-filter menu → **Folder order** → Custom / By name / By date created (newest first) (labels that do not take the shape of the **Sort sessions by** rows above them, whose heading names its object so the two orderings do not read as one; outside Custom the line under the rows says folders can be dragged into place in Custom order only, in By date created a second line says folders from before the stamp have no date and come last, and the status line after a withdrawn reorder drag offers **Switch to Custom**, staying until the next interaction away from it rather than on a clock; picks save one at a time in pick order, so the last pick is the persisted one); ⌘K → **Search Folders** lists in the same order; Settings → Chat → Sessions → **Compact Empty Folders** (off by default); sidebar header ⋮ menu → **Clean up empty folders**; any full folder path in backticks inside a chat message → click | `pages/chat/FolderPanel.tsx`, `pages/chat-sidebar/folderBlocks.tsx` (the folder header, its drag and its right-click / ⋯ menu), `pages/chat-sidebar/SearchDock.tsx` (the **Folder order** rows), `pages/chat-sidebar/SidebarHeader.tsx` (the **Clean up empty folders** menu item), `pages/chat-sidebar/FolderCleanupPanel.tsx`, `components/FolderRail.tsx` (the connector-line collapse target), `pages/chat-sidebar/stickyCollapse.ts` (keeps a pinned folder header in place while its folder collapses; no new entry point), `pages/chat-sidebar/collapseFloor.ts` (the scroll floor that keeps that position reachable when the folder is near the end of the list; no new entry point), `pages/chat-sidebar/folders.ts` (the tree's comparator), `utils/folderTree.ts` (`folderComparator`), `hooks/useFolderSortMode.ts` (`useFolderSortRead`, the one derivation of known-mode / failed-read every surface keys on; `useFolderSortMode` owned by `components/SessionActionsMenu.tsx`, `components/JobForm.tsx` and `pages/ChatPage.tsx`, which hands the mode to `pages/chat/FolderSuggestionCard.tsx` as a prop, as the chat callers hand it to `components/FolderMoveSubmenu.tsx`; `apps/command-bar/useCommandBarOverlayEngines.ts` reads the shared config entry without fetching and hands the mode to `apps/command-bar/foldersProvider.ts`), `components/FolderConfigModal.tsx`, `utils/folderAgent.ts`, `pages/settings/ChatPanel.tsx`, `pages/chat/ChatSettings.tsx`, `components/markdown/InlineCode.tsx` (`FolderChip`), `components/markdown/linkTargets.ts` (`resolveFolderChip`), `components/markdown/contexts.ts` (`SidebarFolderCtx`, provided once by `pages/chat/page/ChatPageFrame.tsx`) | `chat_folders.py` and its `chat_folders_*` owners, `chat_folder_cleanup.py`, `chat_handlers.py`, `chat_runner.py`, `folder_steering.py`, `context.py`, `handlers/core_config_schema.py` (the `dashboard.folder_sort` PATCH allowlist entry), `src/kiro_crew/config/loader.py` (reads the mode; anything unknown is `custom`), `src/kiro_crew/mcp_dashboard_folder_runs.py` (`chat_folder_tree` lists in the mode and names it in its header; the mode read and sort keys are in `src/kiro_crew/mcp_dashboard_folder_tree.py`), `change_card_catalog.py` (`folder.steering`) | `GET,POST /api/chat/folders`, `POST /api/chat/folders/cleanup`, `PATCH /api/chat/folders/{id}` (`steering_dirs`), `PATCH /api/chat/slots/{slot}/folder`, `POST /api/chat/slots`, `GET,PATCH /api/config/kirocrew` (`dashboard.folder_sort`) | diff --git a/src/kiro_crew/docs/settings-registry.generated.json b/src/kiro_crew/docs/settings-registry.generated.json index f22f840fdea7..72a93413c507 100644 --- a/src/kiro_crew/docs/settings-registry.generated.json +++ b/src/kiro_crew/docs/settings-registry.generated.json @@ -665,6 +665,13 @@ "hint": "Folders are named by date with a short random suffix, and only you can open them. ~ stands for your home folder. A chat started in a chat folder that has its own project keeps that project.", "configKey": "dashboard.session_folder_root" }, + { + "id": "chat.open-sidebar-sessions-in-a-session-tab", + "label": "Open Sidebar Sessions in a Session Tab", + "tab": "chat", + "route": "/settings/chat/sessions?highlight=chat.open-sidebar-sessions-in-a-session-tab", + "hint": "A click opens the session in its own session tab instead of replacing the active tab's session." + }, { "id": "chat.pin-the-latest-turn", "label": "Pin the latest turn", diff --git a/src/kiro_crew/docs/ui-index.generated.json b/src/kiro_crew/docs/ui-index.generated.json index 45e6d40fc2e7..7c5be169e1c5 100644 --- a/src/kiro_crew/docs/ui-index.generated.json +++ b/src/kiro_crew/docs/ui-index.generated.json @@ -1,9 +1,9 @@ { "$comment": "AUTO-GENERATED by website/scripts/gen-ui-index.mjs from the dashboard source — DO NOT EDIT. Regenerate with `npm run gen:ui`; read by the find_ui tool (kiro_crew/mcp_guide.py).", "schema_version": 1, -"input_digest": "sha256:8240dc63b63d271c3eefaab78b9df4e392c2f89ffa145ac30a94ded1394180ed", +"input_digest": "sha256:423c2370b2d2c658c744327cac771f1c80f9fa6dc0faa201e136b4b815c83a38", "build_digest": "sha256:99de0a46e570074d3de396e71b96172b8a233d8d22714a85c8e4035441b8ce96", -"coverage": {"scope":"pages, page tabs, Settings tabs and sub-pages, every Settings control, registered controls; not every dashboard control","counts":{"button":84,"list":6,"field":3,"tab":82,"menu-item":27,"toggle":10,"disclosure":1,"page":13,"setting":251,"link":1},"tiers":{"generated":342,"curated":136},"registered_controls":136}, +"coverage": {"scope":"pages, page tabs, Settings tabs and sub-pages, every Settings control, registered controls; not every dashboard control","counts":{"button":84,"list":6,"field":3,"tab":82,"menu-item":27,"toggle":10,"disclosure":1,"page":13,"setting":252,"link":1},"tiers":{"generated":343,"curated":136},"registered_controls":136}, "locales": ["en","zh-CN","hi","es","fr","bn","pt","ru","de","ja","ko","it"], "surfaces": ["apps","apps-library","artifacts","capabilities","chat","developer","logs","members","notifications","projects","schedule","settings","shell","webhooks"], "conditions": {"has_open_sessions":"at least one open session is listed","app_enabled":"the app that provides this page is installed and enabled","full_dashboard":"the full dashboard is open, not an embedded chat or sessions view","no_active_session":"no session is open in the chat pane","no_schedules":"no scheduled job exists yet","has_schedules":"at least one scheduled job exists","search_bar_unclaimed":"no enabled app has claimed the top-bar search (an app that does turns it into its own launcher)","session_open":"a session is open in the chat pane","no_response_running":"the open session is not answering right now (the control is disabled while a response runs)","empty_session":"the open session has no messages yet","not_on_sessions_page":"the open page is not Sessions (on a phone, Sessions has its own drawer instead)","has_closed_sessions":"at least one closed session is in the history","older_sessions_collapsed":"the Older Sessions list is collapsed","sessions_board_view":"the sessions list is in Board view, with sessions in columns (switch it from the sessions ⋯ menu)","sessions_list_view":"the sessions list is in List view (the default)","pointer_on_session_row":"the pointer or keyboard focus is on a session row of this machine that is not being renamed (the control is drawn on that row)","terminal_enabled":"the terminal is turned on in Settings","developer_mode":"developer mode is on","phone_connect_available":"pairing a phone is available on this machine","kiro_account_entry":"the menu offers a Kiro account row (always when this installation runs on Kiro; with another backend, only once an account usage reading has arrived)","has_notifications":"at least one notification is listed","has_unread_notifications":"at least one notification is unread","notification_selected":"a notification is open in the detail panel (select it in the list)","notification_read":"the open notification is already read (opening one marks it read; an unread one shows Mark read here instead)","crewmate_selected":"a crewmate is selected in the list","no_crewmates":"no crewmate exists yet","has_crewmates":"at least one crewmate exists","crewmate_editor_open":"a crewmate's editor is open (choose Edit on that crewmate)","has_installed_apps":"at least one app is installed","app_details_open":"an app's detail page is open (in Discover, click the app's card)","app_tile_menu_open":"the app card's ⋯ (More actions) menu is open (in Library, point at the app's card to show ⋯, then click it; clicking the card itself opens the app instead)","job_open":"a scheduled job's detail panel is open (select the job in the list)","job_running":"the open job is running now","job_secret_request_pending":"the open job is waiting for a secret approval","job_details_tab":"the job panel's Details tab is selected (the default; the Logs tab hides this)","schedule_list_view":"the Schedule page shows its List view (the default; the Calendar and Executions views hide this)","jobs_checked":"one or more jobs are checked in the list","one_job_checked":"exactly one job is checked in the list (tick that job's own box)","skill_selected":"a skill is selected in the list","message_typed":"something is ready to send: text in the message box, an attached file, or a referenced session","board_missing_state_lanes":"one of the Board view’s default status columns was removed (this appears only then)","response_running":"the open session is answering right now","message_box_empty":"nothing is waiting to send: no text in the message box and no attached file (with either, this place holds Queue or Steer instead)","mouse_input":"the device is used with a mouse or trackpad, not a touchscreen","touch_input":"the device is used by touch (a tablet or touchscreen), so the message box shows its touch controls","goal_loop_running":"a goal loop is running in the open session (its panel then offers Pause)","monitor_running":"a monitor is watching for the open session and has not finished (its panel then offers Stop monitor)","screen_capture_available":"taking a screenshot is supported here (the desktop app, or a Mac)","context_usage_reported":"the open session has reported how full its context is (after its first answer)","new_channel_prompt":"the first notification from a new channel is asking whether to keep or mute that channel","crewmate_danger_zone_open":"the crewmate editor shows its Danger zone section (choose Danger zone in the editor's section list)","crewmate_panel_not_docked":"the crewmate's details panel is not already docked open beside the chat","open_app_not_installed":"the open app is not installed yet and can be installed from the dashboard","open_app_enabled":"the open app is a regular installed app (not a built-in or independently managed one) and is turned on","open_app_syncable":"the open app is a regular installed app with no newer version waiting; Sync reloads its installed files and does not install a new release","open_app_update_available":"the open app is a regular installed app and a newer version is waiting (Update stands where Sync otherwise is)","open_app_removable":"the open app is a regular installed app (not a built-in or independently managed one) that is not locked against removal","job_not_running":"the open job is not running now (while it runs, Cancel Run stands in this place)","nav_rail_expanded":"the navigation rail is expanded, showing labels","cloud_deploy_available":"this installation can publish to a public cloud URL (the built-in AWS destination is offered)","voice_input_supported":"this browser can record from a microphone (the mic button is not drawn otherwise)","job_enabled":"the open job is active (not paused)","job_paused":"the open job is paused","crewmate_place_pane_open":"the crewmate editor shows its Memory section (choose it in the editor's section list)","crewmate_model_pane_open":"the crewmate editor shows its General section, which holds the model (choose it in the editor's section list)","artifact_open":"an artifact's own page is open (click the artifact in the library)","terminal_not_popped_out":"the terminal is docked in the dashboard, not popped out to its own window","terminal_docked_bottom":"the terminal panel sits below the chat (the default)","terminal_docked_right":"the terminal panel sits to the right of the chat, side by side with it"}, @@ -241,6 +241,7 @@ {"id":"setting:chat.message-font-size","kind":"setting","label_key":"pages.settings.chatPanel.message_font_size","setting_id":"chat.message-font-size","placements":[{"surface_id":"settings","route":"/settings/chat/transcript?highlight=chat.message-font-size","parent_ids":["page.settings","settings.tab.chat","settings.sub.chat.transcript"],"entry_kind":"tab","requires":[]}],"tier":"generated"}, {"id":"setting:chat.minimap-location","kind":"setting","label_key":"pages.settings.chatPanel.minimap_location","setting_id":"chat.minimap-location","placements":[{"surface_id":"settings","route":"/settings/chat/transcript?highlight=chat.minimap-location","parent_ids":["page.settings","settings.tab.chat","settings.sub.chat.transcript"],"entry_kind":"tab","requires":[]}],"tier":"generated"}, {"id":"setting:chat.new-session-folders","kind":"setting","label_key":"pages.settings.chatPanel.session_folder_root","setting_id":"chat.new-session-folders","placements":[{"surface_id":"settings","route":"/settings/chat/sessions?highlight=key%3Adashboard.session_folder_root","parent_ids":["page.settings","settings.tab.chat","settings.sub.chat.sessions"],"entry_kind":"tab","requires":[]}],"tier":"generated"}, +{"id":"setting:chat.open-sidebar-sessions-in-a-session-tab","kind":"setting","label_key":"pages.settings.chatPanel.sidebar_click_opens_tab","setting_id":"chat.open-sidebar-sessions-in-a-session-tab","placements":[{"surface_id":"settings","route":"/settings/chat/sessions?highlight=chat.open-sidebar-sessions-in-a-session-tab","parent_ids":["page.settings","settings.tab.chat","settings.sub.chat.sessions"],"entry_kind":"tab","requires":[]}],"tier":"generated"}, {"id":"setting:chat.pin-the-latest-turn","kind":"setting","label_key":"pages.settings.chatPanel.pin_last_prompt","setting_id":"chat.pin-the-latest-turn","placements":[{"surface_id":"settings","route":"/settings/chat/transcript?highlight=chat.pin-the-latest-turn","parent_ids":["page.settings","settings.tab.chat","settings.sub.chat.transcript"],"entry_kind":"tab","requires":[]}],"tier":"generated"}, {"id":"setting:chat.plain-diffs","kind":"setting","label_key":"settings.chat.plainDiff.label","setting_id":"chat.plain-diffs","placements":[{"surface_id":"settings","route":"/settings/chat/transcript?highlight=chat.plain-diffs","parent_ids":["page.settings","settings.tab.chat","settings.sub.chat.transcript"],"entry_kind":"tab","requires":[]}],"tier":"generated"}, {"id":"setting:chat.pr-and-issue-chips-on-session-cards","kind":"setting","label_key":"pages.settings.chatPanel.session_card_source_links","setting_id":"chat.pr-and-issue-chips-on-session-cards","placements":[{"surface_id":"settings","route":"/settings/chat/sessions?highlight=chat.pr-and-issue-chips-on-session-cards","parent_ids":["page.settings","settings.tab.chat","settings.sub.chat.sessions"],"entry_kind":"tab","requires":[]}],"tier":"generated"}, @@ -774,6 +775,7 @@ "pages.settings.chatPanel.show_timestamps": "Show Timestamps", "pages.settings.chatPanel.show_token_usage": "Show Context Tokens", "pages.settings.chatPanel.side_panel": "Side panel", +"pages.settings.chatPanel.sidebar_click_opens_tab": "Open Sidebar Sessions in a Session Tab", "pages.settings.chatPanel.simplified_tool_call_names": "Simplified Tool Call Names", "pages.settings.chatPanel.soft_stop_budget_seconds": "Soft-stop budget (seconds)", "pages.settings.chatPanel.spellcheck_input": "Spell Check Message Input", @@ -1240,6 +1242,7 @@ "pages.settings.chatPanel.show_timestamps": "显示时间戳", "pages.settings.chatPanel.show_token_usage": "显示上下文令牌", "pages.settings.chatPanel.side_panel": "侧边面板", +"pages.settings.chatPanel.sidebar_click_opens_tab": "在会话标签页中打开侧边栏会话", "pages.settings.chatPanel.simplified_tool_call_names": "简化工具调用名称", "pages.settings.chatPanel.soft_stop_budget_seconds": "软停止预算(秒)", "pages.settings.chatPanel.spellcheck_input": "检查消息输入的拼写", @@ -1706,6 +1709,7 @@ "pages.settings.chatPanel.show_timestamps": "टाइमस्टैम्प दिखाएँ", "pages.settings.chatPanel.show_token_usage": "कॉन्टेक्स्ट टोकन दिखाएँ", "pages.settings.chatPanel.side_panel": "साइड पैनल", +"pages.settings.chatPanel.sidebar_click_opens_tab": "साइडबार के सत्रों को सत्र टैब में खोलो", "pages.settings.chatPanel.simplified_tool_call_names": "सरलीकृत टूल कॉल नाम", "pages.settings.chatPanel.soft_stop_budget_seconds": "सॉफ़्ट-स्टॉप बजट (सेकंड)", "pages.settings.chatPanel.spellcheck_input": "मैसेज इनपुट में वर्तनी जाँच", @@ -2172,6 +2176,7 @@ "pages.settings.chatPanel.show_timestamps": "Mostrar marcas de tiempo", "pages.settings.chatPanel.show_token_usage": "Mostrar los tokens de contexto", "pages.settings.chatPanel.side_panel": "Panel lateral", +"pages.settings.chatPanel.sidebar_click_opens_tab": "Abrir las sesiones de la barra lateral en una pestaña de sesión", "pages.settings.chatPanel.simplified_tool_call_names": "Nombres simplificados de las llamadas de herramientas", "pages.settings.chatPanel.soft_stop_budget_seconds": "Margen de parada suave (segundos)", "pages.settings.chatPanel.spellcheck_input": "Revisar la ortografía en la entrada de mensajes", @@ -2638,6 +2643,7 @@ "pages.settings.chatPanel.show_timestamps": "Afficher les horodatages", "pages.settings.chatPanel.show_token_usage": "Afficher les jetons de contexte", "pages.settings.chatPanel.side_panel": "Panneau latéral", +"pages.settings.chatPanel.sidebar_click_opens_tab": "Ouvrir les sessions de la barre latérale dans un onglet de session", "pages.settings.chatPanel.simplified_tool_call_names": "Noms d'appels d'outils simplifiés", "pages.settings.chatPanel.soft_stop_budget_seconds": "Budget d'arrêt souple (secondes)", "pages.settings.chatPanel.spellcheck_input": "Vérifier l'orthographe dans la zone de message", @@ -3104,6 +3110,7 @@ "pages.settings.chatPanel.show_timestamps": "টাইমস্ট্যাম্প দেখান", "pages.settings.chatPanel.show_token_usage": "কনটেক্সট টোকেন দেখান", "pages.settings.chatPanel.side_panel": "সাইড প্যানেল", +"pages.settings.chatPanel.sidebar_click_opens_tab": "সাইডবারের সেশনগুলো সেশন ট্যাবে খোলো", "pages.settings.chatPanel.simplified_tool_call_names": "সরলীকৃত টুল কলের নাম", "pages.settings.chatPanel.soft_stop_budget_seconds": "সফট-স্টপ বাজেট (সেকেন্ড)", "pages.settings.chatPanel.spellcheck_input": "মেসেজ ইনপুটে বানান পরীক্ষা", @@ -3570,6 +3577,7 @@ "pages.settings.chatPanel.show_timestamps": "Mostrar carimbos de hora", "pages.settings.chatPanel.show_token_usage": "Mostrar os tokens de contexto", "pages.settings.chatPanel.side_panel": "Painel lateral", +"pages.settings.chatPanel.sidebar_click_opens_tab": "Abrir sessões da barra lateral em uma aba de sessão", "pages.settings.chatPanel.simplified_tool_call_names": "Nomes simplificados de chamadas de ferramenta", "pages.settings.chatPanel.soft_stop_budget_seconds": "Orçamento de parada suave (segundos)", "pages.settings.chatPanel.spellcheck_input": "Verificar a ortografia na entrada de mensagens", @@ -4036,6 +4044,7 @@ "pages.settings.chatPanel.show_timestamps": "Показывать метки времени", "pages.settings.chatPanel.show_token_usage": "Показывать токены контекста", "pages.settings.chatPanel.side_panel": "Боковая панель", +"pages.settings.chatPanel.sidebar_click_opens_tab": "Открывать сессии из боковой панели во вкладке сессии", "pages.settings.chatPanel.simplified_tool_call_names": "Упрощённые названия вызовов инструментов", "pages.settings.chatPanel.soft_stop_budget_seconds": "Запас на мягкую остановку (секунды)", "pages.settings.chatPanel.spellcheck_input": "Проверять орфографию в поле ввода", @@ -4502,6 +4511,7 @@ "pages.settings.chatPanel.show_timestamps": "Zeitstempel anzeigen", "pages.settings.chatPanel.show_token_usage": "Kontext-Token anzeigen", "pages.settings.chatPanel.side_panel": "Seitenleiste", +"pages.settings.chatPanel.sidebar_click_opens_tab": "Sitzungen aus der Seitenleiste in einem Sitzungs-Tab öffnen", "pages.settings.chatPanel.simplified_tool_call_names": "Vereinfachte Werkzeugaufrufnamen", "pages.settings.chatPanel.soft_stop_budget_seconds": "Zeitbudget für sanftes Stoppen (Sekunden)", "pages.settings.chatPanel.spellcheck_input": "Nachrichteneingabe auf Rechtschreibung prüfen", @@ -4968,6 +4978,7 @@ "pages.settings.chatPanel.show_timestamps": "タイムスタンプを表示", "pages.settings.chatPanel.show_token_usage": "コンテキストトークンを表示", "pages.settings.chatPanel.side_panel": "サイドパネル", +"pages.settings.chatPanel.sidebar_click_opens_tab": "サイドバーのセッションをセッションタブで開く", "pages.settings.chatPanel.simplified_tool_call_names": "簡略化されたツール呼び出し名", "pages.settings.chatPanel.soft_stop_budget_seconds": "ソフトストップ予算(秒)", "pages.settings.chatPanel.spellcheck_input": "メッセージ入力のスペルチェック", @@ -5434,6 +5445,7 @@ "pages.settings.chatPanel.show_timestamps": "타임스탬프 표시", "pages.settings.chatPanel.show_token_usage": "컨텍스트 토큰 표시", "pages.settings.chatPanel.side_panel": "사이드 패널", +"pages.settings.chatPanel.sidebar_click_opens_tab": "사이드바 세션을 세션 탭에서 열기", "pages.settings.chatPanel.simplified_tool_call_names": "간소화된 도구 호출 이름", "pages.settings.chatPanel.soft_stop_budget_seconds": "소프트 중지 예산(초)", "pages.settings.chatPanel.spellcheck_input": "메시지 입력 맞춤법 검사", @@ -5900,6 +5912,7 @@ "pages.settings.chatPanel.show_timestamps": "Mostra i timestamp", "pages.settings.chatPanel.show_token_usage": "Mostra i token di contesto", "pages.settings.chatPanel.side_panel": "Pannello laterale", +"pages.settings.chatPanel.sidebar_click_opens_tab": "Apri le sessioni della barra laterale in una scheda di sessione", "pages.settings.chatPanel.simplified_tool_call_names": "Nomi semplificati delle chiamate agli strumenti", "pages.settings.chatPanel.soft_stop_budget_seconds": "Budget per l'arresto graduale (secondi)", "pages.settings.chatPanel.spellcheck_input": "Controlla l'ortografia nel campo messaggio", diff --git a/website/src/components/commandPalette/settingsRegistry.gen.ts b/website/src/components/commandPalette/settingsRegistry.gen.ts index 0bce3e3d5615..8b8080fd844c 100644 --- a/website/src/components/commandPalette/settingsRegistry.gen.ts +++ b/website/src/components/commandPalette/settingsRegistry.gen.ts @@ -1194,6 +1194,18 @@ export const SETTINGS_REGISTRY: SettingEntry[] = }, "configKey": "dashboard.session_folder_root" }, + { + "id": "chat.open-sidebar-sessions-in-a-session-tab", + "label": "Open Sidebar Sessions in a Session Tab", + "labelKey": "pages.settings.chatPanel.sidebar_click_opens_tab", + "hint": "A click opens the session in its own session tab instead of replacing the active tab's session.", + "tab": "chat", + "type": "toggle", + "occurrence": 1, + "params": { + "sub": "sessions" + } + }, { "id": "chat.pin-the-latest-turn", "label": "Pin the latest turn", diff --git a/website/src/hooks/useSessionTabs.ts b/website/src/hooks/useSessionTabs.ts index b0de08227d5f..b5cffcddccbe 100644 --- a/website/src/hooks/useSessionTabs.ts +++ b/website/src/hooks/useSessionTabs.ts @@ -148,7 +148,12 @@ export function useSessionTabs( // holds it. Without this the gesture is a no-op the user cannot tell from a // misfire — background mode does not even switch sessions. if (tabsRef.current.includes(key)) { setCue({ key, at: Date.now() }); return } - setTabs(current => openSessionTab(current, key, activeRef.current)) + // Read the active session NOW, not in the updater: the updater can run + // after a render that already moved `activeRef` to a session the caller + // just switched to, which puts the tab at the end instead of beside the + // one the user was on. + const besideKey = activeRef.current + setTabs(current => openSessionTab(current, key, besideKey)) }, []) const closeTab = useCallback((key: string) => { diff --git a/website/src/i18n/locales/bn.json b/website/src/i18n/locales/bn.json index c31a26ce6dde..81d527c7fdd7 100644 --- a/website/src/i18n/locales/bn.json +++ b/website/src/i18n/locales/bn.json @@ -16333,6 +16333,8 @@ "show_thinking_inline": "চিন্তাভাবনা ইনলাইনে দেখান", "show_timestamps": "টাইমস্ট্যাম্প দেখান", "show_token_usage": "কনটেক্সট টোকেন দেখান", + "sidebar_click_opens_tab": "সাইডবারের সেশনগুলো সেশন ট্যাবে খোলো", + "sidebar_click_opens_tab_desc": "কোনো সেশনে ক্লিক করলে সেটি সক্রিয় ট্যাবের সেশন বদলে না দিয়ে নিজের সেশন ট্যাবে খোলে।", "simplified_tool_call_names": "সরলীকৃত টুল কলের নাম", "tool_calls_start_expanded": "টুল কল খোলা অবস্থায় দেখাও", "tool_calls_start_expanded_desc": "টুল কলের সারিগুলো গুটিয়ে না রেখে ইনপুট ও আউটপুট দেখিয়ে খোলো। যে সারি তুমি নিজে খোলো বা বন্ধ করো, সেটা তোমার পছন্দ রাখে।", diff --git a/website/src/i18n/locales/de.json b/website/src/i18n/locales/de.json index 5ef34b933026..482f5bd84efb 100644 --- a/website/src/i18n/locales/de.json +++ b/website/src/i18n/locales/de.json @@ -16333,6 +16333,8 @@ "show_thinking_inline": "Denkprozess inline anzeigen", "show_timestamps": "Zeitstempel anzeigen", "show_token_usage": "Kontext-Token anzeigen", + "sidebar_click_opens_tab": "Sitzungen aus der Seitenleiste in einem Sitzungs-Tab öffnen", + "sidebar_click_opens_tab_desc": "Ein Klick auf eine Sitzung öffnet sie in einem eigenen Sitzungs-Tab, statt die Sitzung im aktiven Tab zu ersetzen.", "simplified_tool_call_names": "Vereinfachte Werkzeugaufrufnamen", "tool_calls_start_expanded": "Tool-Aufrufe ausgeklappt anzeigen", "tool_calls_start_expanded_desc": "Zeilen von Tool-Aufrufen mit sichtbarer Eingabe und Ausgabe öffnen statt eingeklappt. Zeilen, die du von Hand öffnest oder schließt, behalten deine Wahl.", diff --git a/website/src/i18n/locales/en-XA.json b/website/src/i18n/locales/en-XA.json index 14bd6b8e3192..bc3f6016a455 100644 --- a/website/src/i18n/locales/en-XA.json +++ b/website/src/i18n/locales/en-XA.json @@ -16053,6 +16053,8 @@ "default_auto": "[Ðèƒàùĺţ (àùţø) ·············]", "double_click_to_edit": "[Ðøùƀĺè-çĺìçķ ţø èðìţ ýøùŕ ɱèşşàğèş ·················]", "double_click_to_edit_desc": "[Ẁĥèñ øƒƒ, à ðøùƀĺè-çĺìçķ øñ ýøùŕ ɱèşşàğè şèĺèçţş à ẁøŕð àş ìñ àñý ţèẋţ. ·····················]", + "sidebar_click_opens_tab": "[Øþèñ Şìðèƀàŕ Şèşşìøñş ìñ à Şèşşìøñ Ţàƀ ···················]", + "sidebar_click_opens_tab_desc": "[À çĺìçķ øþèñş ţĥè şèşşìøñ ìñ ìţş øẁñ şèşşìøñ ţàƀ ìñşţèàð øƒ ŕèþĺàçìñğ ţĥè àçţìṽè ţàƀ'ş şèşşìøñ. ·····························]", "failed_to_save_selectable_models": "[Ƒàìĺèð ţø şàṽè şèĺèçţàƀĺè ɱøðèĺş ················]", "model_picker_all_models": "[Àĺĺ ɱøðèĺş ({{count}}) ············]", "model_picker_selected_models": "[Şèĺèçţèð {{selected}} / {{total}} ···········]", diff --git a/website/src/i18n/locales/en.manual.json b/website/src/i18n/locales/en.manual.json index 46593fa58e88..62c103bf8a18 100644 --- a/website/src/i18n/locales/en.manual.json +++ b/website/src/i18n/locales/en.manual.json @@ -7615,6 +7615,8 @@ "default_auto": "Default (auto)", "double_click_to_edit": "Double-click to edit your messages", "double_click_to_edit_desc": "When off, a double-click on your message selects a word as in any text.", + "sidebar_click_opens_tab": "Open Sidebar Sessions in a Session Tab", + "sidebar_click_opens_tab_desc": "A click opens the session in its own session tab instead of replacing the active tab's session.", "failed_to_save_selectable_models": "Failed to save selectable models", "model_picker_all_models": "All models ({{count}})", "model_picker_selected_models": "Selected {{selected}} / {{total}}", diff --git a/website/src/i18n/locales/es.json b/website/src/i18n/locales/es.json index 82bc20afd635..91b3a2dbc679 100644 --- a/website/src/i18n/locales/es.json +++ b/website/src/i18n/locales/es.json @@ -16600,6 +16600,8 @@ "show_thinking_inline": "Mostrar el razonamiento en línea", "show_timestamps": "Mostrar marcas de tiempo", "show_token_usage": "Mostrar los tokens de contexto", + "sidebar_click_opens_tab": "Abrir las sesiones de la barra lateral en una pestaña de sesión", + "sidebar_click_opens_tab_desc": "Al hacer clic en una sesión, se abre en su propia pestaña de sesión en lugar de reemplazar la sesión de la pestaña activa.", "simplified_tool_call_names": "Nombres simplificados de las llamadas de herramientas", "tool_calls_start_expanded": "Mostrar las llamadas a herramientas expandidas", "tool_calls_start_expanded_desc": "Abre las filas de llamadas a herramientas con su entrada y salida visibles, en lugar de contraídas. Las filas que abras o cierres a mano conservan tu elección.", diff --git a/website/src/i18n/locales/fr.json b/website/src/i18n/locales/fr.json index fba85e93fdc5..ef3606ff91de 100644 --- a/website/src/i18n/locales/fr.json +++ b/website/src/i18n/locales/fr.json @@ -16600,6 +16600,8 @@ "show_thinking_inline": "Afficher la réflexion en ligne", "show_timestamps": "Afficher les horodatages", "show_token_usage": "Afficher les jetons de contexte", + "sidebar_click_opens_tab": "Ouvrir les sessions de la barre latérale dans un onglet de session", + "sidebar_click_opens_tab_desc": "Un clic sur une session l'ouvre dans son propre onglet de session au lieu de remplacer la session de l'onglet actif.", "simplified_tool_call_names": "Noms d'appels d'outils simplifiés", "tool_calls_start_expanded": "Afficher les appels d’outils dépliés", "tool_calls_start_expanded_desc": "Ouvrir les lignes d’appel d’outil avec leur entrée et leur sortie visibles, au lieu de repliées. Les lignes que tu ouvres ou fermes à la main gardent ton choix.", diff --git a/website/src/i18n/locales/hi.json b/website/src/i18n/locales/hi.json index 699c9ac64f6f..7a9270fe8829 100644 --- a/website/src/i18n/locales/hi.json +++ b/website/src/i18n/locales/hi.json @@ -16333,6 +16333,8 @@ "show_thinking_inline": "थिंकिंग इनलाइन दिखाएँ", "show_timestamps": "टाइमस्टैम्प दिखाएँ", "show_token_usage": "कॉन्टेक्स्ट टोकन दिखाएँ", + "sidebar_click_opens_tab": "साइडबार के सत्रों को सत्र टैब में खोलो", + "sidebar_click_opens_tab_desc": "सत्र पर क्लिक करने से वह सक्रिय टैब का सत्र बदलने के बजाय अपने सत्र टैब में खुलता है।", "simplified_tool_call_names": "सरलीकृत टूल कॉल नाम", "tool_calls_start_expanded": "टूल कॉल खुले हुए दिखाएँ", "tool_calls_start_expanded_desc": "टूल कॉल की पंक्तियाँ बंद करने के बजाय उनका इनपुट और आउटपुट दिखाते हुए खोलो। जिन पंक्तियों को तुम ख़ुद खोलते या बंद करते हो, वे तुम्हारी पसंद बनाए रखती हैं।", diff --git a/website/src/i18n/locales/it.json b/website/src/i18n/locales/it.json index e2edfc1fe876..48ccc21fddf2 100644 --- a/website/src/i18n/locales/it.json +++ b/website/src/i18n/locales/it.json @@ -16600,6 +16600,8 @@ "show_thinking_inline": "Mostra il ragionamento inline", "show_timestamps": "Mostra i timestamp", "show_token_usage": "Mostra i token di contesto", + "sidebar_click_opens_tab": "Apri le sessioni della barra laterale in una scheda di sessione", + "sidebar_click_opens_tab_desc": "Un clic su una sessione la apre in una scheda di sessione dedicata invece di sostituire la sessione della scheda attiva.", "simplified_tool_call_names": "Nomi semplificati delle chiamate agli strumenti", "tool_calls_start_expanded": "Mostra le chiamate agli strumenti espanse", "tool_calls_start_expanded_desc": "Apri le righe delle chiamate agli strumenti con input e output visibili, invece che compresse. Le righe che apri o chiudi a mano mantengono la tua scelta.", diff --git a/website/src/i18n/locales/ja.json b/website/src/i18n/locales/ja.json index f1426ca8719c..fa3e741933cc 100644 --- a/website/src/i18n/locales/ja.json +++ b/website/src/i18n/locales/ja.json @@ -16066,6 +16066,8 @@ "show_thinking_inline": "インライン思考を表示", "show_timestamps": "タイムスタンプを表示", "show_token_usage": "コンテキストトークンを表示", + "sidebar_click_opens_tab": "サイドバーのセッションをセッションタブで開く", + "sidebar_click_opens_tab_desc": "セッションをクリックすると、アクティブなタブのセッションを置き換えずに、専用のセッションタブで開きます。", "simplified_tool_call_names": "簡略化されたツール呼び出し名", "tool_calls_start_expanded": "ツール呼び出しを展開して表示", "tool_calls_start_expanded_desc": "ツール呼び出しの行を折りたたまず、入力と出力を表示した状態で開きます。手動で開閉した行はその状態を保ちます。", diff --git a/website/src/i18n/locales/ko.json b/website/src/i18n/locales/ko.json index 455f52269020..4ba431ec0334 100644 --- a/website/src/i18n/locales/ko.json +++ b/website/src/i18n/locales/ko.json @@ -16066,6 +16066,8 @@ "show_thinking_inline": "사고 과정 인라인 표시", "show_timestamps": "타임스탬프 표시", "show_token_usage": "컨텍스트 토큰 표시", + "sidebar_click_opens_tab": "사이드바 세션을 세션 탭에서 열기", + "sidebar_click_opens_tab_desc": "세션을 클릭하면 활성 탭의 세션을 바꾸지 않고 별도의 세션 탭에서 엽니다.", "simplified_tool_call_names": "간소화된 도구 호출 이름", "tool_calls_start_expanded": "도구 호출을 펼친 상태로 시작", "tool_calls_start_expanded_desc": "도구 호출 행을 접지 않고 입력과 출력이 보이는 상태로 엽니다. 직접 펼치거나 접은 행은 그 선택을 유지합니다.", diff --git a/website/src/i18n/locales/pt.json b/website/src/i18n/locales/pt.json index a64f8e9adfe1..396370f5786b 100644 --- a/website/src/i18n/locales/pt.json +++ b/website/src/i18n/locales/pt.json @@ -16600,6 +16600,8 @@ "show_thinking_inline": "Mostrar raciocínio embutido", "show_timestamps": "Mostrar carimbos de hora", "show_token_usage": "Mostrar os tokens de contexto", + "sidebar_click_opens_tab": "Abrir sessões da barra lateral em uma aba de sessão", + "sidebar_click_opens_tab_desc": "Clicar em uma sessão a abre em uma aba de sessão própria, em vez de substituir a sessão da aba ativa.", "simplified_tool_call_names": "Nomes simplificados de chamadas de ferramenta", "tool_calls_start_expanded": "Mostrar chamadas de ferramentas expandidas", "tool_calls_start_expanded_desc": "Abre as linhas de chamadas de ferramentas com a entrada e a saída visíveis, em vez de recolhidas. As linhas que você abre ou fecha manualmente mantêm sua escolha.", diff --git a/website/src/i18n/locales/ru.json b/website/src/i18n/locales/ru.json index 043afc735b29..ddd295e86689 100644 --- a/website/src/i18n/locales/ru.json +++ b/website/src/i18n/locales/ru.json @@ -16867,6 +16867,8 @@ "show_thinking_inline": "Показывать рассуждения в чате", "show_timestamps": "Показывать метки времени", "show_token_usage": "Показывать токены контекста", + "sidebar_click_opens_tab": "Открывать сессии из боковой панели во вкладке сессии", + "sidebar_click_opens_tab_desc": "Щелчок по сессии открывает её в отдельной вкладке сессии, а не заменяет сессию в активной вкладке.", "simplified_tool_call_names": "Упрощённые названия вызовов инструментов", "tool_calls_start_expanded": "Показывать вызовы инструментов развёрнутыми", "tool_calls_start_expanded_desc": "Открывать строки вызовов инструментов с видимыми входными и выходными данными, а не свёрнутыми. Строки, которые ты открыл или закрыл вручную, сохраняют твой выбор.", diff --git a/website/src/i18n/locales/zh-CN.json b/website/src/i18n/locales/zh-CN.json index 162c1d869edd..6d164c3bdae1 100644 --- a/website/src/i18n/locales/zh-CN.json +++ b/website/src/i18n/locales/zh-CN.json @@ -16066,6 +16066,8 @@ "show_thinking_inline": "内联显示思考过程", "show_timestamps": "显示时间戳", "show_token_usage": "显示上下文令牌", + "sidebar_click_opens_tab": "在会话标签页中打开侧边栏会话", + "sidebar_click_opens_tab_desc": "点击会话会在单独的会话标签页中打开,不会替换当前标签页里的会话。", "simplified_tool_call_names": "简化工具调用名称", "tool_calls_start_expanded": "工具调用默认展开", "tool_calls_start_expanded_desc": "工具调用行打开时直接显示输入和输出,而不是折叠。你手动展开或折叠的行会保留你的选择。", diff --git a/website/src/pages/ChatPage.tsx b/website/src/pages/ChatPage.tsx index 0abb4fea9f9c..862a60e4be90 100644 --- a/website/src/pages/ChatPage.tsx +++ b/website/src/pages/ChatPage.tsx @@ -545,6 +545,7 @@ export default function ChatPage({ mode, embedded, embedMode, popout, noUrlSync setAppSlotLaunch, closeSessionTab, drawerPopRef, + ensureSlotTab, handleResumeSession, highlightTs, initialMidRef, @@ -908,13 +909,23 @@ export default function ChatPage({ mode, embedded, embedMode, popout, noUrlSync hasLiveAppTab, jiraSourceHostsRef, bitbucketServerSourceHostsRef, search, selectSource, setRevealedSources, sourceHostsRef, tabsCtl, drawerPopRef, chatFolders, setSidebarPinned, sidebarPinned, sidebarPinnedRef, sidebarAutoHidden, toggleAct, }) + // "Open Sidebar Sessions in a Session Tab" (Settings > Chat > Sessions). A + // sidebar row's click, Enter/Space and source chip all call `onSelectSlot` + // after their `switchSlot`, so one handler covers each; the flyout below is + // the same list while the sidebar is collapsed. + const sidebarClickOpensTab = chatConfig.sidebarClickOpensTab + const selectFromSidebar = useCallback((key: string) => { + clearSplitOnSelect() + if (sidebarClickOpensTab) ensureSlotTab(key) + }, [clearSplitOnSelect, sidebarClickOpensTab, ensureSlotTab]) const flyoutSwitch = useCallback((key: string) => { // User gesture on a listed session row (collapsed-sidebar flyout): the // announced class, same as the expanded sidebar's own rows. dispatch(switchSlot({ key, announceOnMissing: true })) setSplitMode(false) + if (sidebarClickOpensTab) ensureSlotTab(key) flyout.close() - }, [dispatch, flyout, setSplitMode]) + }, [dispatch, flyout, setSplitMode, sidebarClickOpensTab, ensureSlotTab]) const { flyoutNew, panelReserve, panelMaximized, panelFillWidth, mobileSessionsToggle, topbarSessionsToggle, mobileNewSessionItem, switchMemoryMode, showComposerMemoryChip, memorySwitching, composerOptimizing, handleOptimizingChange, } = usePanelLayout({ @@ -950,7 +961,7 @@ export default function ChatPage({ mode, embedded, embedMode, popout, noUrlSync