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.

feat(office): a coding agent's monitor opens its command panel

rubenluetke10-beepb33982f12fab
diff --git a/jarvis/ui/web/frontend/src/components/society/office/OfficeStage.tsx b/jarvis/ui/web/frontend/src/components/society/office/OfficeStage.tsx
index 05003deed2..dd9c0ed9d2 100644
--- a/jarvis/ui/web/frontend/src/components/society/office/OfficeStage.tsx
+++ b/jarvis/ui/web/frontend/src/components/society/office/OfficeStage.tsx
@@ -179,14 +179,16 @@ export function OfficeStage({ onOpenLedger, onSelectAgent, onCreateAgent, onOpen
else useEventStore.getState().setActiveSection("agents");
}, [onSelectAgent]);
// Clicking a chat monitor dives into it, then opens that agent's chat. A
- // terminal skips the dive: the live pane, maximized in the grid, is the close-up.
+ // coding agent's monitor opens its command panel instead: prompt it right
+ // here, and "open" from there shows the pane maximized in the grid.
const openTimer = useRef<ReturnType<typeof setTimeout> | undefined>(undefined);
useEffect(() => () => clearTimeout(openTimer.current), []);
const [diving, setDiving] = useState(false);
const openScreen = useCallback((agentId: string, screen: Point & { y: number }, facing: number) => {
select(null);
clearTimeout(openTimer.current);
- if (reduced || occupantsRef.current.has(agentId)) { openAgent(agentId); return; }
+ if (occupantsRef.current.has(agentId)) { select({ kind: "agent", id: agentId }); return; }
+ if (reduced) { openAgent(agentId); return; }
useOfficeStore.getState().zoomInto([screen.x, screen.y, screen.z], facing);
// The screen fills the view, then the real chat view fades in over it.
setDiving(true);
diff --git a/jarvis/ui/web/frontend/src/components/society/office/TerminalMonitors.tsx b/jarvis/ui/web/frontend/src/components/society/office/TerminalMonitors.tsx
index bee6186b76..b43ba990d8 100644
--- a/jarvis/ui/web/frontend/src/components/society/office/TerminalMonitors.tsx
+++ b/jarvis/ui/web/frontend/src/components/society/office/TerminalMonitors.tsx
@@ -1,7 +1,7 @@
/**
* Desk monitors on the coding floor: each shows its pane's terminal live
* while the agent sits at the desk, a dim screensaver otherwise. A click on a
- * screen opens that session, maximized in the IDE grid.
+ * screen opens that agent's command panel, where it can be prompted.
*/
import { useEffect, useMemo, useRef, useState } from "react";
import { useFrame, type ThreeEvent } from "@react-three/fiber";
@@ -69,7 +69,7 @@ function Screen({ desk, occupant, screen, onOpen }: {
return (
<group position={[desk.x, 0, desk.z]} rotation={[0, turn, 0]}>
<mesh position={[0, SCREEN_Y, SCREEN_Z]} onClick={click}
- onPointerOver={() => { hovered.current = true; document.body.style.cursor = "zoom-in"; }}
+ onPointerOver={() => { hovered.current = true; document.body.style.cursor = "pointer"; }}
onPointerOut={() => { hovered.current = false; document.body.style.cursor = ""; }}>
<planeGeometry args={[SCREEN_W, SCREEN_H]} />
<meshBasicMaterial map={surface.texture} toneMapped={false} />