You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BUG: Button between dashboard button and session tabs does nothing
Important
Problem: A sidebar toggle button (icon: sidebar-left) renders in the v2 titlebar between the dashboard button and session tabs. Clicking it produces no visible effect.
Root cause: The button calls layout.sidebar.toggle(), but the only consumer of that signal — WorkbenchPanel inside SplitFrame — lives in the legacy layout path, which never mounts when newLayoutDesigns = true (the current default). The button flips a boolean no active component observes.
Approach: Remove the IconButtonV2 block from the v2 titlebar in titlebar.tsx. Leave a comment indicating re-addition when WorkbenchPanel is ported to NewLayout.
Scope: Button removal only. WorkbenchPanel, SplitFrame, sidebar state machinery, and the legacy titlebar's own toggle all stay untouched — the panel feature is planned for porting.
Acceptance Criteria
The sidebar-leftIconButtonV2 no longer renders in the v2 titlebar
BUG: Button between dashboard button and session tabs does nothing
Important
Problem: A sidebar toggle button (icon:
sidebar-left) renders in the v2 titlebar between the dashboard button and session tabs. Clicking it produces no visible effect.Root cause: The button calls
layout.sidebar.toggle(), but the only consumer of that signal —WorkbenchPanelinsideSplitFrame— lives in the legacy layout path, which never mounts whennewLayoutDesigns = true(the current default). The button flips a boolean no active component observes.Approach: Remove the
IconButtonV2block from the v2 titlebar intitlebar.tsx. Leave a comment indicating re-addition whenWorkbenchPanelis ported toNewLayout.Scope: Button removal only.
WorkbenchPanel,SplitFrame, sidebar state machinery, and the legacy titlebar's own toggle all stay untouched — the panel feature is planned for porting.Acceptance Criteria
sidebar-leftIconButtonV2no longer renders in the v2 titlebarlayout-new.tsx<Match when>fallback in the<Switch>still renders its own sidebar toggle for completeness)pnpm buildinpackages/app)Key Decisions
Constraints & Invariants
layout.sidebarstate and its persistence must remain intact (used by the planned port)newLayoutDesigns = false) is not touchedcommand.sidebar.togglei18n key stays (shared with the legacy path)Prior Art
WorkbenchPanel(workbench-panel.tsx) — the sessions list panel this button was meant to toggleSplitFrame(split-frame.tsx:314) — where the panel renders, gated onlayout.sidebar.opened() && location.pathname !== "/"layout-new.tsx— the active layout shell; has no sidebar consumerSource
packages/app/src/components/titlebar.tsxlines 407-421Notes
newLayoutDesignsdefaults totrue, confirmed bysettings.test.ts)SplitFrame, notNewLayoutWorkbenchPanelis eventually ported tolayout-new.tsx, re-add the toggle button at the same position (between home button and session tabs)