Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

fix(ide): let the side panel be dragged as wide as the window allows

rubenluetke10-beep370f7e3bba11
diff --git a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/IdeSidePanel.test.tsx b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/IdeSidePanel.test.tsx
index 55cfed4416..9a0cbdec3d 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/IdeSidePanel.test.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/IdeSidePanel.test.tsx
@@ -203,6 +203,13 @@ describe("IdeSidePanel", () => {
expect(useIdeSidePanelStore.getState()).toMatchObject({ active: "agents", tabs: ["office", "agents"] });
});
+ it("keeps a stored width wider than the old 720px cap", () => {
+ localStorage.setItem("jarvis.agenticIde.sidePanelWidth.v1", "1100");
+ act(() => useIdeSidePanelStore.setState({ open: true, tabs: ["agents"], active: "agents" }));
+ render(<Harness />);
+ expect(screen.getByTestId("ide-side-panel-host").style.width).toBe("1100px");
+ });
+
it("maximizes the office over the whole view without remounting it or resizing the grid", async () => {
localStorage.setItem("jarvis.agenticIde.sidePanelWidth.v1", "600");
act(() => useIdeSidePanelStore.setState({ open: true, tabs: ["office"], active: "office" }));
diff --git a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/IdeSidePanel.tsx b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/IdeSidePanel.tsx
index 67826d2316..55e86ee429 100644
--- a/jarvis/ui/web/frontend/src/components/agentic/sidePanel/IdeSidePanel.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentic/sidePanel/IdeSidePanel.tsx
@@ -19,11 +19,17 @@ import { SIDE_PANEL_ID } from "./sidePanelIds";
const WIDTH_KEY = "jarvis.agenticIde.sidePanelWidth.v1";
const DEFAULT_PX = 340;
const MIN_PX = 260;
-const MAX_PX = 720;
+/**
+ * Ceiling before the frame has been measured. The real limit is the frame
+ * minus `GRID_RESERVED_PX`: a fixed cap here stopped the drag halfway across a
+ * wide window, and it must stay high so the first, unmeasured render does not
+ * clip a wider stored width.
+ */
+const UNMEASURED_MAX_PX = 4096;
/** The office map needs room to walk around in: its tab opens the panel at least this wide. */
const OFFICE_MIN_PX = 520;
-/** Terminal canvas kept visible while the panel is open. */
-const GRID_RESERVED_PX = 320;
+/** Strip of terminal grid kept beside the panel, so its grip always stays reachable. */
+const GRID_RESERVED_PX = 120;
// Preserve the existing public export without coupling caption chrome to the panel.
export { SIDE_PANEL_ID } from "./sidePanelIds";
@@ -70,7 +76,7 @@ export function IdeSidePanelFrame({ children, markInUse = false, appearance, onS
return () => observer.disconnect();
}, []);
- const max = Math.max(MIN_PX, Math.min(MAX_PX, frameWidth ? frameWidth - GRID_RESERVED_PX : MAX_PX));
+ const max = Math.max(MIN_PX, frameWidth ? frameWidth - GRID_RESERVED_PX : UNMEASURED_MAX_PX);
const pane = useResizablePane({
storageKey: WIDTH_KEY,
defaultSize: DEFAULT_PX,