Skip to content

Commit 81aadb0

Browse files
committed
fix(ui): disable session selection outside chat page to prevent confusion
The component was made global but behaves inconsistently on other pages. Temporarily disable it until proper two-way binding is implemented.
1 parent c5d34c8 commit 81aadb0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ui/src/ui/chat/session-controls.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export function renderChatSessionSelect(
122122
surface,
123123
selectedSessionLabel,
124124
pickerOpen,
125-
disabled: !state.connected || !state.client,
125+
disabled: !state.connected || !state.client || state.tab !== "chat",
126126
compact,
127127
})}
128128
${modelSelect} ${quotaPill}
@@ -825,7 +825,7 @@ function renderChatAgentSelect(
825825
aria-label=${t("chat.selectors.agentFilter")}
826826
title=${selectedLabel}
827827
.value=${activeAgentId}
828-
?disabled=${!state.connected}
828+
?disabled=${!state.connected || state.tab !== "chat"}
829829
@change=${(e: Event) => {
830830
const nextAgentId = normalizeAgentId((e.target as HTMLSelectElement).value);
831831
if (nextAgentId === activeAgentId) {

0 commit comments

Comments
 (0)