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): a pane opened on the chat stage starts at a size its agent can draw in, and a typed message is reported honestly
rubenluetke10-beep6ee0e488a21e
diff --git a/docs/BUGS.md b/docs/BUGS.mdindex 1802245c5f..dbb98ec371 100644--- a/docs/BUGS.md+++ b/docs/BUGS.md@@ -13288,3 +13288,57 @@ executor was fixed once; anyio's was the same bug one layer over. And agate that releases on a timer gates only what fits in the timer: the honestend of a cold start is the CLI's own input line.++## BUG-190: a message typed on the Agentic IDE's chat stage answered "T11: the prompt is in its input box, not sent" and a pasted screenshot "session not found" — the hidden tile spawned the agent at 10x4, an unconfirmed delivery was read as a refusal, and the pane's history id went out as a chat session id (MEDIUM, FIXED 2026-08-27)++**Symptom.** With the Agentic IDE in chat view, a new pane (T11) was+opened and "Hlallo" typed into the stage's composer. A warning toast said+`T11: the prompt is in its input box, not sent` — while the agent in T11+was already answering it. Pasting a screenshot into the same composer put+`session not found` in red under the input. The log, eleven seconds apart:+`PTY spawned: shell=agentic-ide:t11 … size=10x4`, then `never saw the+prompt reach T11 — it may have been submitted or dropped; reporting it as+unconfirmed`.++**Cause.** Three, stacked.++1. `AgenticTerminal` measures its tile once before the socket handshake, so+ the agent is spawned at the size the grid shows. On the chat stage every+ cell is `hidden` (display:none) and the staged pane's transcript is drawn+ over the canvas instead — so the fit addon measured a box with no size+ and answered with its own minimum (2x1), the floors clamped that to 10x4,+ and the handshake spawned the CLI at exactly that. The later+ `applyResize` path already refused an unmeasurable tile; the mount-time+ fit did not.+2. In a ten-column terminal the CLI never draws its input line the way+ `_input_line_holds` reads it, so `_write_and_confirm` reported+ `submitted: null` — "never seen arriving, no claim either way".+ `useWebSocket.ts` folded that null into false and toasted the warning+ meant for a prompt provably still sitting in its box.+3. `store/paneChat.ts` handed the pane's history id out as+ `activeSessionId`. The composer sends that id as `session_id` with every+ file attach, and `/api/agent-chat/attachments` looks it up in the chat's+ session store — where no pane has ever existed — and answers 404.++**Fix.**++1. The mount-time fit runs only for a tile that has a size (`measurable()`,+ the same check `applyResize` uses); a pane that mounts hidden keeps its+ constructed 80x24 until the tile is shown, and the first real measurement+ follows from `sendResize` then. Test: "does not shrink a pane that mounts+ hidden to the floors".+2. The prompt toast has the event's three states: success for true, the+ warning for false, and an info line for null that says the pane never+ showed the prompt arriving (`use_web_socket.prompt_unconfirmed`,+ en/de/es). Test: "tells the three states of a prompt typed into a pane+ apart".+3. A pane's store reports no `activeSessionId`; the attach goes by the+ workspace folder, which is where a pane's files belong anyway. The+ session object beside it still names the pane for the stage.++**Lesson.** A measurement taken from something hidden is not a small+number, it is no number — code that clamps to a floor must first ask+whether there was anything to measure. And when the backend goes to the+trouble of reporting three states, no layer on the way to the user may fold+two of them together: an honest "unconfirmed" turned into a confident "not+sent" is a lie the user acts on.diff --git a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.test.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.test.tsxindex eafa3897b7..4c659df4a2 100644--- a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.test.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.test.tsx@@ -1556,6 +1556,31 @@ describe("pane refit", () => {expect(screen.queryByTestId("pane-width-notice-Dana")).toBeNull();});+ /*+ * A pane that mounts HIDDEN measures nothing — and must say nothing.+ *+ * The chat stage hides every cell and draws the staged pane's transcript+ * over the canvas, so a pane opened there is display:none from its first+ * frame. The fit addon answers a hidden box with its own minimum, and+ * clamped to the floors that was a 10x4 terminal — which the handshake then+ * spawned the agent at (T11, 2026-08-27). Unmeasured, the terminal keeps+ * its constructed size and the agent starts in one it can draw in.+ */+ it("does not shrink a pane that mounts hidden to the floors", () => {+ Reflect.deleteProperty(HTMLElement.prototype, "clientWidth");+ Reflect.deleteProperty(HTMLElement.prototype, "clientHeight");+ // What the fit addon proposes for a display:none tile.+ terminalHarness.size = { cols: 2, rows: 1 };+ render(pane(false, {}, false));+ settle();++ expect(terminalHarness.resize).not.toHaveBeenCalled();+ expect(terminalHarness.fit).not.toHaveBeenCalled();+ expect(terminalHarness.send).not.toHaveBeenCalledWith(+ expect.objectContaining({ cols: 10, rows: 4 }),+ );+ });+it("gives xterm and the agent the same number, always", () => {// The one thing that must never drift. An agent laying its lines out for a// width its xterm does not have re-wraps every one of them, and the TUI'sdiff --git a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsxindex d251a0e8a9..efd5f852a3 100644--- a/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/AgenticTerminal.tsx@@ -880,11 +880,27 @@ export function AgenticTerminal({attachCustomKeyEventHandler: keys.add,input: (data) => term.input(data),});+ /** Is this pane's tile something that can honestly be measured right now? */+ const measurable = () =>+ container.clientWidth >= 8 && container.clientHeight >= 8;+try {// Taken BEFORE the handshake below reads the terminal's geometry — so// the grid this pane draws on and the size its agent is spawned at are// the same thing from the very first byte.- const proposed = fit.proposeDimensions();+ //+ // Only from a tile that HAS a size. A pane that mounts hidden — the+ // chat stage hides every cell and draws the staged pane's transcript+ // over the canvas — is a display:none box, and the fit addon answers+ // that with its own minimum rather than with nothing. Clamped to the+ // floors below, that became a 10x4 terminal, and the handshake then+ // spawned the agent at exactly that (T11, 2026-08-27): a CLI drawing+ // its input line ten columns wide, where a prompt written into it+ // could never be seen arriving and every message was reported as+ // unconfirmed. Unmeasured, the terminal keeps its constructed 80x24+ // and the agent starts at a size it can draw in; the first real+ // measurement follows from `sendResize` the moment the tile is shown.+ const proposed = measurable() ? fit.proposeDimensions() : undefined;if (proposed &&Number.isFinite(proposed.cols) &&@@ -1339,10 +1355,6 @@ export function AgenticTerminal({typeof document.hasFocus !== "function" ||document.hasFocus());- /** Is this pane's tile something that can honestly be measured right now? */- const measurable = () =>- container.clientWidth >= 8 && container.clientHeight >= 8;-/*** Fit this pane to its tile and tell the agent behind it — right now.*diff --git a/jarvis/ui/web/frontend/src/hooks/useWebSocket.test.tsx b/jarvis/ui/web/frontend/src/hooks/useWebSocket.test.tsxindex a407758167..7fbbe269ac 100644--- a/jarvis/ui/web/frontend/src/hooks/useWebSocket.test.tsx+++ b/jarvis/ui/web/frontend/src/hooks/useWebSocket.test.tsx@@ -182,6 +182,28 @@ describe("useWebSocket VoiceBootStatus handling", () => {expect(toast.message).not.toContain("private content");});+ it("tells the three states of a prompt typed into a pane apart", async () => {+ render(<Harness />);+ await Promise.resolve();+ const deliver = (submitted: boolean | null) =>+ MockWebSocket.last!.deliver(+ envelope("AgenticIdePromptSent", { terminal: "T11", submitted }),+ );++ deliver(true);+ deliver(false);+ deliver(null);++ const toasts = useEventStore.getState().toasts;+ expect(toasts.map((toast) => toast.kind)).toEqual(["success", "warning", "info"]);+ expect(toasts[0].message).toContain("T11");+ expect(toasts[1].message).toContain("input box");+ // Unconfirmed is NOT "not sent": the agent may well be answering already+ // (T11, 2026-08-27 — the pane had taken the prompt, the toast said no).+ expect(toasts[2].message).not.toContain("not sent");+ expect(toasts[2].message).toContain("never showed it arriving");+ });+it("routes native microphone levels outside React state and clears them after listening", async () => {render(<Harness />);await Promise.resolve();diff --git a/jarvis/ui/web/frontend/src/hooks/useWebSocket.ts b/jarvis/ui/web/frontend/src/hooks/useWebSocket.tsindex 83f73cc4fb..1b9d8ea503 100644--- a/jarvis/ui/web/frontend/src/hooks/useWebSocket.ts+++ b/jarvis/ui/web/frontend/src/hooks/useWebSocket.ts@@ -495,11 +495,24 @@ export function useWebSocket(): void {submitted?: boolean | null;};if (typeof p.terminal === "string" && p.terminal.length > 0) {+ // Three states, exactly as the backend reports them (see+ // `terminal_prompt` in agentic_ide_routes.py): true — the agent+ // took it; false — the text is provably still in its input box;+ // null — the pane never visibly showed it arriving and no claim+ // can be made either way. Null used to be read as false and told+ // the user "not sent" about a prompt the agent was already+ // answering (T11, 2026-08-27); it has its own, milder line now.+ const submitted = p.submitted === true;+ const unconfirmed = p.submitted !== true && p.submitted !== false;pushToast(- p.submitted === true ? "success" : "warning",- p.submitted === true+ submitted ? "success" : unconfirmed ? "info" : "warning",+ submitted? `${translate("use_web_socket.prompt_sent")} ${p.terminal}`- : `${p.terminal}: ${translate("use_web_socket.prompt_not_submitted")}`,+ : `${p.terminal}: ${translate(+ unconfirmed+ ? "use_web_socket.prompt_unconfirmed"+ : "use_web_socket.prompt_not_submitted",+ )}`,);window.dispatchEvent(new CustomEvent("jarvis:agentic-ide-prompt", { detail: p }),diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.jsonindex c7c3b59b01..81e3411595 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json@@ -3692,6 +3692,7 @@"jarvis_opened": "{name} öffnete","prompt_sent": "Prompt gesendet an","prompt_not_submitted": "der Prompt steht im Eingabefeld, abgeschickt wurde er nicht",+ "prompt_unconfirmed": "der Prompt wurde eingetippt, aber das Pane hat den Empfang nicht sichtbar gezeigt – bitte dort nachsehen","dictation_nowhere": "Es war kein Textfeld aktiv, deshalb wurde das Diktat nicht eingefügt. Es steht in der Diktat-Historie.","realtime_provider_issue": "Der Realtime-Anbieter meldet ein Problem."},diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.jsonindex 97ca748b55..2cf2affc92 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json@@ -3692,6 +3692,7 @@"jarvis_opened": "{name} opened","prompt_sent": "Prompt sent to","prompt_not_submitted": "the prompt is in its input box, not sent",+ "prompt_unconfirmed": "the prompt was typed in, but the pane never showed it arriving — check that pane","dictation_nowhere": "No text field had focus, so the dictation was not inserted. It is in the dictation history.","realtime_provider_issue": "The realtime provider reported a problem."},diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.jsonindex a3410ec0d3..49fa7648c5 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json@@ -3692,6 +3692,7 @@"jarvis_opened": "{name} abrió","prompt_sent": "Prompt enviado a","prompt_not_submitted": "el prompt está en su campo de entrada, no se envió",+ "prompt_unconfirmed": "el prompt se escribió, pero el panel no mostró que llegara: revisa ese panel","dictation_nowhere": "Ningún campo de texto tenía el foco, así que el dictado no se insertó. Está en el historial de dictados.","realtime_provider_issue": "El proveedor Realtime informó de un problema."},diff --git a/jarvis/ui/web/frontend/src/store/paneChat.test.ts b/jarvis/ui/web/frontend/src/store/paneChat.test.tsindex edade40894..77bf5695ff 100644--- a/jarvis/ui/web/frontend/src/store/paneChat.test.ts+++ b/jarvis/ui/web/frontend/src/store/paneChat.test.ts@@ -175,7 +175,12 @@ describe("createPaneChatStore", () => {permissionMode: "auto",cwd: "C:\\dev\\Personal Jarvis",});- expect(s.activeSessionId).toBe("t7@1");+ // The stage sees a session object named after the pane, but NO agent-chat+ // session id: the composer sends that id with every file attach, and the+ // chat's session store has never heard of a pane (404 "session not+ // found", 2026-08-27).+ expect(s.activeSessionId).toBeNull();+ expect(s.activeSession?.session_id).toBe("t7@1");expect(s.activeSession?.model).toBe("claude-opus-5");});diff --git a/jarvis/ui/web/frontend/src/store/paneChat.ts b/jarvis/ui/web/frontend/src/store/paneChat.tsindex 33c9584826..f07c1266d7 100644--- a/jarvis/ui/web/frontend/src/store/paneChat.ts+++ b/jarvis/ui/web/frontend/src/store/paneChat.ts@@ -122,7 +122,11 @@ function withProvider(timeline: Timeline, providerId: string): Timeline {export interface PaneChatStoreOptions {terminal: string;workspaceId: string;- /** The pane's lifetime id — the "session id" the chat components see. */+ /**+ * The pane's lifetime id — the id of the session OBJECT the chat components+ * see. Never handed out as `activeSessionId`: that is an agent-chat session+ * id, and a pane has none (see the store body).+ */historyId: string;agent: string;/** What the CLI is called — "Claude Code" — the session's title. */@@ -281,7 +285,14 @@ export function createPaneChatStore(options: PaneChatStoreOptions) {surface: "agent",...mirror(),sessions: [],- activeSessionId: options.historyId,+ // No agent-chat session stands behind a pane: the chat's session store+ // has never heard of a pane's history id, and handing it out as one+ // sent the composer's file attach to `/agent-chat/attachments` with a+ // `session_id` the backend could only answer with 404 "session not+ // found" (2026-08-27). Null means "attach by folder", which is where a+ // pane's files belong anyway; the session object beside it still names+ // the pane for the stage.+ activeSessionId: null,activeSession: session(),timeline: EMPTY_TIMELINE,socketState: "open",