Skip to content

Commit 53012c9

Browse files
qingminglongclaude
andcommitted
fix(control-ui): restore Codex usage quota pill in sidebar session switcher
PR #88772 ("calm composer controls") replaced the old chat header (which rendered renderChatQuotaPill via renderChatSessionSelect) with a sidebar that calls renderChatSessionSelect with sessionSwitcherOnly: true. The quota pill was inadvertently suppressed because it was gated on !sessionSwitcherOnly alongside the model selector. Fix by rendering the quota pill unconditionally — the data path remains intact. Closes #93041 Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
1 parent 1db8ab3 commit 53012c9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export function renderChatSessionSelect(
9494
const agentSelect = compact ? "" : renderChatAgentSelect(state, onSwitchSession, agentOptions);
9595
const sessionSwitcherOnly = options.sessionSwitcherOnly ?? false;
9696
const modelSelect = sessionSwitcherOnly ? "" : renderChatModelSelect(state);
97-
const quotaPill = sessionSwitcherOnly ? "" : renderChatQuotaPill(state);
97+
const quotaPill = renderChatQuotaPill(state);
9898
const surface = options.surface ?? "desktop";
9999
const selectedSessionLabel = resolveSelectedChatSessionLabel(state, sessionGroups);
100100
const pickerOpen = state.chatSessionPickerOpen && state.chatSessionPickerSurface === surface;

0 commit comments

Comments
 (0)