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(agentic-ide): a pane's state says what it runs on, not just its command line

rubenluetke10-beep020c9dd50b40
diff --git a/jarvis/agentic_ide/session.py b/jarvis/agentic_ide/session.py
index cb727a89cb..3c51009815 100644
--- a/jarvis/agentic_ide/session.py
+++ b/jarvis/agentic_ide/session.py
@@ -1220,6 +1220,14 @@ class Terminal:
# the voice path both have to know, or they would offer a target
# that refuses every instruction sent to it.
"accepts_prompts": accepts_prompts(self.agent),
+ # What this pane was OPENED on. Empty means "the CLI's own
+ # default", which is every pane opened before these existed. Read
+ # by the surfaces that SAY what a session runs on — otherwise the
+ # picks would be visible only on the command line, and a list of
+ # panes could not tell an Opus session from a Sonnet one.
+ "model": self.model,
+ "effort": self.effort,
+ "permission_mode": self.permission_mode,
"index": self.index,
"column": self.column,
"slot": self.slot,
diff --git a/jarvis/ui/web/frontend/src/lib/agenticIdeApi.ts b/jarvis/ui/web/frontend/src/lib/agenticIdeApi.ts
index ca436066bd..dcd484f5bd 100644
--- a/jarvis/ui/web/frontend/src/lib/agenticIdeApi.ts
+++ b/jarvis/ui/web/frontend/src/lib/agenticIdeApi.ts
@@ -189,6 +189,15 @@ export interface TerminalState {
/** Coarse position within that column, top to bottom — same caveat. */
slot: number;
status: "pending" | "live" | "exited" | "error";
+ /**
+ * What this pane was OPENED on — the model, the effort level and the
+ * permission stance its CLI was started under
+ * (`jarvis/workspace/launch_picks.py`). "" means the CLI's own default,
+ * which is what every pane opened before these existed still reports.
+ */
+ model?: string;
+ effort?: string;
+ permission_mode?: string;
exit_code: number | null;
error: string;
started_at: number | null;
diff --git a/tests/unit/agentic_ide/test_pane_picks.py b/tests/unit/agentic_ide/test_pane_picks.py
index 38e4a1a90c..91ed681e35 100644
--- a/tests/unit/agentic_ide/test_pane_picks.py
+++ b/tests/unit/agentic_ide/test_pane_picks.py
@@ -140,6 +140,28 @@ async def test_the_picks_survive_a_restart(
assert restored.permission_mode == "plan"
+async def test_the_workspace_says_what_a_pane_runs_on(
+ registry: Registry, tmp_path: Path
+) -> None:
+ """A list of panes has to tell an Opus session from a Sonnet one.
+
+ Without this the picks would be visible only on a command line nobody can
+ read, and every surface that names what a session runs on would be back to
+ guessing — which is where the pill saying "Default" over an Opus pane came
+ from in the first place.
+ """
+ await registry.start(str(tmp_path), [{"agent": "claude"}])
+ pane = await registry.add_terminal(
+ agent="claude", model="claude-opus-5", effort="max", permission_mode="plan"
+ )
+ row = pane.to_dict()
+ assert row["model"] == "claude-opus-5"
+ assert row["effort"] == "max"
+ assert row["permission_mode"] == "plan"
+ # A pane nobody picked for reports the CLI's own default, as it always did.
+ assert registry.session.terminals[0].to_dict()["model"] == ""
+
+
async def test_an_older_snapshot_reopens_on_the_cli_default(tmp_path: Path) -> None:
"""A snapshot written before the picks existed still restores."""
from jarvis.agentic_ide.resume_store import SnapshotTerminal