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
fix(agentic-ide): make a committed pane move visible
rubenluetke10-beep5fd082c87e25
diff --git a/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.test.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.test.tsxindex cc6992a6a1..768e5f41ca 100644--- a/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.test.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.test.tsx@@ -2275,6 +2275,46 @@ describe("rearranging panes", () => {expect(api.moveTerminal).not.toHaveBeenCalled();});+ it("marks the pane that landed, so the move is SEEN", async () => {+ // A committed move used to repaint in one frame with nothing pointing at+ // the pane that travelled — among near-identical panes that read as+ // "dragging is broken" (reported 2026-08-07). The carried pane wears the+ // arrival ring for a moment after the drop.+ const moved = sessionWith([+ ["Nova", 0],+ ["Mika", 1],+ ]);+ vi.mocked(api.moveTerminal).mockResolvedValue(moved);+ twoPlacedPanes();++ press("Mika", 100, 50);+ move(380, 50);+ await release();++ await waitFor(() =>+ expect(screen.getByTestId("pane-cell-Mika").className).toContain("ring-2"),+ );+ });++ it("says so when a drop changes nothing", async () => {+ // "Right of Nova" is a legal drop for the pane already sitting right of+ // Nova. The backend answers with the unchanged workspace — and the grid+ // used to answer with silence, indistinguishable from a broken drag. Now+ // the silence is replaced by a plain answer, and no ring pretends a move.+ vi.mocked(api.moveTerminal).mockResolvedValue(BASE);+ const { onSessionChanged } = twoPlacedPanes();++ press("Mika", 100, 50);+ move(380, 50);+ await release();++ await waitFor(() =>+ expect(pushToast).toHaveBeenCalledWith("info", expect.stringContaining("already")),+ );+ expect(onSessionChanged).not.toHaveBeenCalled();+ expect(screen.getByTestId("pane-cell-Mika").className).not.toContain("ring-2");+ });+it("offers no drag while a pane is maximized", () => {// Every other pane is hidden, so there is nothing on screen to drop onto.renderGrid();diff --git a/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.tsxindex 0b97f6b6ce..1b290987e7 100644--- a/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/AgenticGrid.tsx@@ -1483,6 +1483,27 @@ export function AgenticGrid({else void split(null, "right");};+ /*+ * A pane that MOVED has to be seen landing.+ *+ * Reported 2026-08-07 as "dragging terminals just doesn't work": every drop+ * had in fact been committed and persisted, but among a wall of+ * near-identical panes a column swap repaints in one frame with nothing+ * marking the pane that travelled — indistinguishable from nothing having+ * happened. The panes now glide to their new boxes (see the cell's+ * transition class) and the one that was carried wears the arrival ring.+ * A nonce rather than the bare name, so dropping the same pane twice in a+ * row re-arms the ring instead of the second drop landing unannounced.+ */+ const [justMoved, setJustMoved] = useState<{ name: string; nonce: number } | null>(+ null,+ );+ useEffect(() => {+ if (justMoved === null) return;+ const timer = window.setTimeout(() => setJustMoved(null), 2600);+ return () => window.clearTimeout(timer);+ }, [justMoved]);+/** A pane was dragged onto another one.*@@ -1497,6 +1518,24 @@ export function AgenticGrid({setWorking(true);try {const next = await moveTerminal(moved, target, zone);+ /*+ * A drop that changes nothing must SAY so. "Right of T4" is a legal+ * drop for the pane already sitting right of T4, and the backend+ * answers it with the unchanged workspace — correct, and exactly what+ * a user reads as "dragging is broken" when the grid just sits there+ * (they repeat the identical gesture, observed 2026-08-07). Saying+ * "already there" turns a silent nothing into an answer.+ */+ const placement = (+ terms: readonly { name: string; column: number; slot: number }[],+ ) => terms.map((pane) => `${pane.name}:${pane.column}.${pane.slot}`).join(" ");+ if (placement(next.terminals) === placement(session.terminals)) {+ pushToast(+ "info",+ t("agentic_grid.arrange.already_there").replace("{0}", moved),+ );+ return;+ }// Column widths follow the panes that carried them, so a pane dropped// into a wide column does not drag that column's width away with it.sizes.setWeights((current) =>@@ -1504,13 +1543,14 @@ export function AgenticGrid({);rebaseWeights(next.terminals);onSessionChanged?.(next);+ setJustMoved({ name: moved, nonce: Date.now() });} catch (error) {pushToast("error", (error as Error).message);} finally {setWorking(false);}},- [onSessionChanged, pushToast, rebaseWeights, session.terminals, sizes.setWeights],+ [onSessionChanged, pushToast, rebaseWeights, session.terminals, sizes.setWeights, t],);const arrange = usePaneArrange(@@ -2521,6 +2561,16 @@ export function AgenticGrid({data-testid={`pane-cell-${term.name}`}className={cn("absolute min-h-0 min-w-0 rounded-lg",+ // Rearranging has to be SEEN: boxes glide to their new places+ // instead of teleporting in one repaint (see `justMoved`). Off+ // while a seam is being dragged — those frames are written+ // imperatively (`paintDraggedLayout`) and must track the+ // pointer, not ease after it — and off for the stage/maximize+ // style, which swaps to `inset` and cannot tween from here.+ !chatView &&+ !isMaximized &&+ !layoutBusy &&+ "transition-[left,top,width,height] duration-300 ease-out motion-reduce:transition-none",selectedTerminals.has(term.name) &&"ring-2 ring-primary ring-offset-2 ring-offset-background",// Just arrived — see `justOpened`. Second to the selection ring@@ -2529,6 +2579,11 @@ export function AgenticGrid({justOpened.has(term.name) &&!selectedTerminals.has(term.name) &&"ring-2 ring-primary/70 ring-offset-2 ring-offset-background",+ // Just landed after a drag — same ring, same reasoning: the+ // move happened, and the grid says WHERE.+ justMoved?.name === term.name &&+ !selectedTerminals.has(term.name) &&+ "ring-2 ring-primary/70 ring-offset-2 ring-offset-background",chatView? onStage? "rounded-xl border border-border shadow-lg"diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.jsonindex 182975b6ed..f0b73e34af 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json@@ -3759,7 +3759,8 @@"right": "Rechts von {0}","above": "Über {0}","below": "Unter {0}",- "swap_hint": "· Umschalt zum Tauschen"+ "swap_hint": "· Umschalt zum Tauschen",+ "already_there": "{0} ist schon genau dort — nichts verschoben."},"history": {"open": "Prompt-Verlauf für {0} öffnen",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.jsonindex 5ffa135b4e..8b51cb195c 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json@@ -3759,7 +3759,8 @@"right": "Right of {0}","above": "Above {0}","below": "Below {0}",- "swap_hint": "· Shift to swap"+ "swap_hint": "· Shift to swap",+ "already_there": "{0} is already exactly there — nothing moved."},"history": {"open": "View prompt history for {0}",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.jsonindex 4a458cba93..b9a7df6ce4 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json@@ -3759,7 +3759,8 @@"right": "A la derecha de {0}","above": "Encima de {0}","below": "Debajo de {0}",- "swap_hint": "· Mayús para intercambiar"+ "swap_hint": "· Mayús para intercambiar",+ "already_there": "{0} ya está exactamente ahí — nada se movió."},"history": {"open": "Ver el historial de prompts de {0}",