Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/feature-map/README.md

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions src/kiro_crew/docs/settings-registry.generated.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
17 changes: 15 additions & 2 deletions src/kiro_crew/docs/ui-index.generated.json

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions website/src/components/commandPalette/settingsRegistry.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 6 additions & 1 deletion website/src/hooks/useSessionTabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
2 changes: 2 additions & 0 deletions website/src/i18n/locales/bn.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "টুল কলের সারিগুলো গুটিয়ে না রেখে ইনপুট ও আউটপুট দেখিয়ে খোলো। যে সারি তুমি নিজে খোলো বা বন্ধ করো, সেটা তোমার পছন্দ রাখে।",
Expand Down
2 changes: 2 additions & 0 deletions website/src/i18n/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
2 changes: 2 additions & 0 deletions website/src/i18n/locales/en-XA.json
Original file line number Diff line number Diff line change
Expand Up @@ -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}} ···········]",
Expand Down
2 changes: 2 additions & 0 deletions website/src/i18n/locales/en.manual.json
Original file line number Diff line number Diff line change
Expand Up @@ -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}}",
Expand Down
2 changes: 2 additions & 0 deletions website/src/i18n/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
2 changes: 2 additions & 0 deletions website/src/i18n/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
2 changes: 2 additions & 0 deletions website/src/i18n/locales/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "टूल कॉल की पंक्तियाँ बंद करने के बजाय उनका इनपुट और आउटपुट दिखाते हुए खोलो। जिन पंक्तियों को तुम ख़ुद खोलते या बंद करते हो, वे तुम्हारी पसंद बनाए रखती हैं।",
Expand Down
2 changes: 2 additions & 0 deletions website/src/i18n/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
2 changes: 2 additions & 0 deletions website/src/i18n/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "ツール呼び出しの行を折りたたまず、入力と出力を表示した状態で開きます。手動で開閉した行はその状態を保ちます。",
Expand Down
2 changes: 2 additions & 0 deletions website/src/i18n/locales/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "도구 호출 행을 접지 않고 입력과 출력이 보이는 상태로 엽니다. 직접 펼치거나 접은 행은 그 선택을 유지합니다.",
Expand Down
2 changes: 2 additions & 0 deletions website/src/i18n/locales/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
2 changes: 2 additions & 0 deletions website/src/i18n/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "Открывать строки вызовов инструментов с видимыми входными и выходными данными, а не свёрнутыми. Строки, которые ты открыл или закрыл вручную, сохраняют твой выбор.",
Expand Down
2 changes: 2 additions & 0 deletions website/src/i18n/locales/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "工具调用行打开时直接显示输入和输出,而不是折叠。你手动展开或折叠的行会保留你的选择。",
Expand Down
15 changes: 13 additions & 2 deletions website/src/pages/ChatPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,7 @@ export default function ChatPage({ mode, embedded, embedMode, popout, noUrlSync
setAppSlotLaunch,
closeSessionTab,
drawerPopRef,
ensureSlotTab,
handleResumeSession,
highlightTs,
initialMidRef,
Expand Down Expand Up @@ -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({
Expand Down Expand Up @@ -950,7 +961,7 @@ export default function ChatPage({ mode, embedded, embedMode, popout, noUrlSync
<SessionsSidebarChrome
embedMode={embedMode} mode={mode} activeSlot={activeSlot} connected={connected} creatingSlot={creatingSlot} dispatch={dispatch} filteredSlots={filteredSlots} isMobile={isMobile}
keyboardInset={keyboardInset} mobileNavRail={mobileNavRail} surfaceUnreadSlots={surfaceUnreadSlots} titleInTopbar={titleInTopbar} topbarSlot={topbarSlot} topbarTrailSlot={topbarTrailSlot}
vv={vv} activityOpen={activityOpen} clearSplitOnSelect={clearSplitOnSelect} history={history} historyHasMore={historyHasMore} navigateToEmbeddedSlot={navigateToEmbeddedSlot}
vv={vv} activityOpen={activityOpen} selectFromSidebar={selectFromSidebar} history={history} historyHasMore={historyHasMore} navigateToEmbeddedSlot={navigateToEmbeddedSlot}
openEmbeddedCrewWindow={openEmbeddedCrewWindow} splitMode={splitMode} defaultAgent={defaultAgent} installedAgents={installedAgents} sidebarAgents={sidebarAgents} sidebarChoices={sidebarChoices}
setActionError={setActionError} showActionError={showActionError} canStageSessionRef={canStageSessionRef} chatPaneEl={chatPaneEl} stageSessionRef={stageSessionRef}
openSlotInNewTab={openSlotInNewTab} ownsSessionTabs={ownsSessionTabs} activePoppedOut={activePoppedOut} focusActivePopout={focusActivePopout} openActivePopout={openActivePopout}
Expand Down
Loading
Loading