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.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
feat(office): open a coding session as a movable window, not a full-width strip
rubenluetke10-beepafbc99d5752a
diff --git a/jarvis/ui/web/frontend/src/components/society/office/PaneCommandPanel.tsx b/jarvis/ui/web/frontend/src/components/society/office/PaneCommandPanel.tsxindex 9566a8209d..e8933200ea 100644--- a/jarvis/ui/web/frontend/src/components/society/office/PaneCommandPanel.tsx+++ b/jarvis/ui/web/frontend/src/components/society/office/PaneCommandPanel.tsx@@ -209,11 +209,28 @@ export function PaneCommandPanel({ occupant, compact = false, onOpen, onClose }:setResizing(false);};+ /**+ * The pointer was taken away mid-drag (the OS, a touch turned into a scroll,+ * capture lost). Its last coordinates are not a place anyone chose — a+ * cancelled pointer often reports (0, 0) — so the window goes back to where+ * the drag began and nothing is remembered. After a normal release the+ * gesture is already over and this does nothing.+ */+ const abandon = (event: ReactPointerEvent<HTMLElement>) => {+ const g = gesture.current;+ if (!g || g.pointerId !== event.pointerId) return;+ gesture.current = null;+ if (frame.current !== null) { cancelAnimationFrame(frame.current); frame.current = null; }+ setDragRect(null);+ setResizing(false);+ };+const gestureHandlers = (kind: Gesture["kind"], edge?: ResizeEdge) => ({onPointerDown: (event: ReactPointerEvent<HTMLElement>) => begin(event, kind, edge),onPointerMove: follow,onPointerUp: finish,- onPointerCancel: finish,+ onPointerCancel: abandon,+ onLostPointerCapture: abandon,});/** Double-click on the title bar: back to where the window first opened. */@@ -227,8 +244,9 @@ export function PaneCommandPanel({ occupant, compact = false, onOpen, onClose }:// Built once per pane and size state, so the window re-rendering while it is// carried around never re-renders the terminal inside it. Mounted only once- // the stage is measured: the first size the agent hears is the window's.- const ready = stage !== null;+ // the stage has a size: the first size the agent hears is the window's, and+ // a window with no room cannot hold the pane's size lead against the grid.+ const ready = stage !== null && stage.width > 0 && stage.height > 0;const terminal = useMemo(() => ready ? (// Keyed by the pane, so another session is a fresh socket, never this one's screen under a new name.<AgenticTerminal key={`${pane.workspace_id}/${pane.name}`} headerMode="none" sizeLeaddiff --git a/jarvis/ui/web/frontend/src/components/society/office/paneCommand.css b/jarvis/ui/web/frontend/src/components/society/office/paneCommand.cssindex 477bd83fa4..19326a526d 100644--- a/jarvis/ui/web/frontend/src/components/society/office/paneCommand.css+++ b/jarvis/ui/web/frontend/src/components/society/office/paneCommand.css@@ -39,13 +39,14 @@.office-pane-status[data-tone="ok"] { color:var(--pane-ok); }.office-pane-status[data-tone="error"] { color:var(--pane-fault); white-space:normal; }-/* Resize grips: thin strips along each edge and squares on the corners, inside- the window's rounded clip. Only the bottom-right one is drawn. */+/* Resize grips: 4 px strips along each edge and squares on the corners, inside+ the window's rounded clip — thin enough to stay clear of the terminal's+ text and scroll rail inside its padding. Only the bottom-right one is drawn. */.office-pane-grip { position:absolute; z-index:3; touch-action:none; }-.office-pane-grip[data-edge="n"] { top:0; left:12px; right:12px; height:5px; cursor:ns-resize; }-.office-pane-grip[data-edge="s"] { bottom:0; left:12px; right:12px; height:6px; cursor:ns-resize; }-.office-pane-grip[data-edge="e"] { right:0; top:12px; bottom:12px; width:6px; cursor:ew-resize; }-.office-pane-grip[data-edge="w"] { left:0; top:12px; bottom:12px; width:6px; cursor:ew-resize; }+.office-pane-grip[data-edge="n"] { top:0; left:12px; right:12px; height:4px; cursor:ns-resize; }+.office-pane-grip[data-edge="s"] { bottom:0; left:12px; right:12px; height:4px; cursor:ns-resize; }+.office-pane-grip[data-edge="e"] { right:0; top:12px; bottom:12px; width:4px; cursor:ew-resize; }+.office-pane-grip[data-edge="w"] { left:0; top:12px; bottom:12px; width:4px; cursor:ew-resize; }.office-pane-grip[data-edge="nw"] { top:0; left:0; width:12px; height:12px; cursor:nwse-resize; }.office-pane-grip[data-edge="ne"] { top:0; right:0; width:12px; height:12px; cursor:nesw-resize; }.office-pane-grip[data-edge="sw"] { bottom:0; left:0; width:14px; height:14px; cursor:nesw-resize; }