@devries-cameron20 / t3code-1 / commits / f54f4385e5
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Narrow the right sidebar and update task panel and diff panel (#2409)

shivam committed May 1, 2026 at 04:03 UTC f54f4385e518504f87001afef51bdf3b0be2a5be
3 files changed +11 -9
apps/web/src/components/settings/SettingsPanels.tsx
+5 -5
@@ -434,7 +434,7 @@ export function useSettingsRestore(onRestored?: () => void) {
434 ? ["Diff line wrapping"]
435 : []),
436 ...(settings.autoOpenPlanSidebar !== DEFAULT_UNIFIED_SETTINGS.autoOpenPlanSidebar
437 - ? ["Task sidebar"]
437 + ? ["Auto-open task panel"]
438 : []),
439 ...(settings.enableAssistantStreaming !== DEFAULT_UNIFIED_SETTINGS.enableAssistantStreaming
440 ? ["Assistant output"]
@@ -964,12 +964,12 @@ export function GeneralSettingsPanel() {
964 />
965
966 <SettingsRow
967 - title="Task sidebar"
968 - description="Open the plan and task sidebar automatically when steps appear."
967 + title="Auto-open task panel"
968 + description="Open the right-side plan and task panel automatically when steps appear."
969 resetAction={
970 settings.autoOpenPlanSidebar !== DEFAULT_UNIFIED_SETTINGS.autoOpenPlanSidebar ? (
971 <SettingResetButton
972 - label="task sidebar"
972 + label="auto-open task panel"
973 onClick={() =>
974 updateSettings({
975 autoOpenPlanSidebar: DEFAULT_UNIFIED_SETTINGS.autoOpenPlanSidebar,
@@ -984,7 +984,7 @@ export function GeneralSettingsPanel() {
984 onCheckedChange={(checked) =>
985 updateSettings({ autoOpenPlanSidebar: Boolean(checked) })
986 }
987 - aria-label="Open the task sidebar automatically"
987 + aria-label="Open the task panel automatically"
988 />
989 }
990 />
apps/web/src/rightPanelLayout.ts
+2 -2
@@ -1,3 +1,3 @@
1 -export const RIGHT_PANEL_INLINE_LAYOUT_MEDIA_QUERY = "(max-width: 1180px)";
1 +export const RIGHT_PANEL_INLINE_LAYOUT_MEDIA_QUERY = "(max-width: 980px)";
2 export const RIGHT_PANEL_SHEET_CLASS_NAME =
3 - "w-[min(88vw,820px)] max-w-[820px] p-0 wco:mt-[env(titlebar-area-height)] wco:h-[calc(100%-env(titlebar-area-height))] wco:max-h-[calc(100%-env(titlebar-area-height))]";
3 + "w-[min(42vw,28rem)] min-w-80 max-w-[28rem] p-0 max-[760px]:w-[min(88vw,24rem)] max-[760px]:min-w-0 wco:mt-[env(titlebar-area-height)] wco:h-[calc(100%-env(titlebar-area-height))] wco:max-h-[calc(100%-env(titlebar-area-height))]";
apps/web/src/routes/_chat.$environmentId.$threadId.tsx
+4 -2
@@ -26,8 +26,9 @@ import { Sidebar, SidebarInset, SidebarProvider, SidebarRail } from "~/component
26
27 const DiffPanel = lazy(() => import("../components/DiffPanel"));
28 const DIFF_INLINE_SIDEBAR_WIDTH_STORAGE_KEY = "chat_diff_sidebar_width";
29 -const DIFF_INLINE_DEFAULT_WIDTH = "clamp(28rem,48vw,44rem)";
30 -const DIFF_INLINE_SIDEBAR_MIN_WIDTH = 26 * 16;
29 +const DIFF_INLINE_DEFAULT_WIDTH = "clamp(24rem,34vw,36rem)";
30 +const DIFF_INLINE_SIDEBAR_MIN_WIDTH = 22 * 16;
31 +const DIFF_INLINE_SIDEBAR_MAX_WIDTH = 36 * 16;
32 const COMPOSER_COMPACT_MIN_LEFT_CONTROLS_WIDTH_PX = 208;
33
34 const DiffLoadingFallback = (props: { mode: DiffPanelMode }) => {
@@ -124,6 +125,7 @@ const DiffPanelInlineSidebar = (props: {
125 collapsible="offcanvas"
126 className="border-l border-border bg-card text-foreground"
127 resizable={{
128 + maxWidth: DIFF_INLINE_SIDEBAR_MAX_WIDTH,
129 minWidth: DIFF_INLINE_SIDEBAR_MIN_WIDTH,
130 shouldAcceptWidth: shouldAcceptInlineSidebarWidth,
131 storageKey: DIFF_INLINE_SIDEBAR_WIDTH_STORAGE_KEY,