Remove stale toolbar status model fields

This commit is contained in:
murashit 2026-06-04 23:42:44 +09:00
parent 4ad0f6ec28
commit 85d8f8c84d
3 changed files with 1 additions and 7 deletions

View file

@ -35,8 +35,6 @@ export interface ToolbarDiagnosticSection {
}
export interface ToolbarViewModel {
connected: boolean;
status: string;
newChatDisabled: boolean;
historyOpen: boolean;
statusPanelOpen: boolean;

View file

@ -172,8 +172,6 @@ export function toolbarViewModel(input: ToolbarViewModelInput): ToolbarViewModel
const statusPanelOpen = state.openDetails.has("status-panel");
const runtimeOpen = state.runtimePicker !== null;
return {
connected: input.connected,
status: state.status,
newChatDisabled: input.turnBusy,
historyOpen,
statusPanelOpen,

View file

@ -76,7 +76,7 @@ describe("toolbar renderer decisions", () => {
expect(toggleAutoReview).toHaveBeenCalled();
parent.empty();
renderToolbar(parent, toolbarModel({ status: "Turn running...", autoReviewActive: true }), toolbarActions());
renderToolbar(parent, toolbarModel({ autoReviewActive: true }), toolbarActions());
expect(parent.querySelector(".codex-panel__status-menu-toggle")?.getAttribute("aria-label")).toBe("Show panel menu");
expect(parent.querySelector(".codex-panel__auto-review-toggle")?.getAttribute("aria-pressed")).toBe("true");
@ -378,8 +378,6 @@ describe("toolbar renderer decisions", () => {
function toolbarModel(overrides: Partial<ToolbarViewModel> = {}): ToolbarViewModel {
return {
connected: true,
status: "Connected.",
newChatDisabled: false,
historyOpen: false,
statusPanelOpen: false,