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): open as many panes as you want, with English call-signs

Ruben Lütke7a846291e0fc
diff --git a/jarvis/agentic_ide/names.py b/jarvis/agentic_ide/names.py
index e39c7948c8..cabd8696a3 100644
--- a/jarvis/agentic_ide/names.py
+++ b/jarvis/agentic_ide/names.py
@@ -8,11 +8,20 @@ distinct proper name survives an imperfect transcript far better, and a wrong
match is recoverable (the user hears the name back in the answer).
Selection criteria for the pool:
+- **plain English given names** (maintainer directive 2026-07-26), so anyone
+ can say them — the pool is what an international user base reads and speaks
+ aloud, and a name that is obvious in one language and a guess in the next
+ costs a mis-addressed agent,
- two syllables or fewer, no consonant clusters that ASR routinely drops,
-- pairwise phonetically distinct (no "Mika"/"Mica", no "Leo"/"Theo"),
-- neutral across the supported locales (de / en / es) — every name is
- pronounceable and gender-neutral-ish in all three,
-- no collision with the wake word or with provider names.
+- pairwise phonetically distinct — enforced, not eyeballed: at 70+ names no
+ human spots every confusable pair, so
+ ``tests/unit/agentic_ide/test_names.py`` runs the SHIPPING resolver over
+ every pair and fails on any that could steal each other's instructions,
+- no collision with the wake word or with the coding agents' own names.
+
+The pool is long on purpose. A workspace may hold as many panes as the machine
+can stand, and running out of names would fall back to "Alex-2" — a call-sign
+nobody can say naturally, which defeats the entire point of naming panes.
Name resolution is deliberately fuzzy (``resolve``): the caller is matching a
name a human just spoke through an imperfect transcript. This is NOT the wake
@@ -25,21 +34,31 @@ from __future__ import annotations
from difflib import SequenceMatcher
# Ordered: the Nth terminal of a session gets the Nth name, so the mapping is
-# reproducible across sessions and the user builds a habit ("Mika is always the
-# first pane").
+# reproducible across sessions and the user builds a habit ("Alex is always the
+# first pane"). The waves are a readability grouping only — the clearest,
+# most everyday names sit first because those are the panes people see most.
NAME_POOL: tuple[str, ...] = (
- "Mika",
- "Nova",
- "Aria",
- "Kai",
- "Luna",
- "Theo",
- "Iris",
- "Bruno",
- "Vega",
- "Juno",
- "Milo",
- "Zara",
+ # Wave 1 — the panes almost everyone will actually have.
+ "Alex", "Blake", "Casey", "Dana", "Ellis", "Finn", "Grace", "Hunter",
+ "Ivy", "Jasper", "Kate", "Logan", "Maya", "Noah", "Oscar", "Quinn",
+ "Ruby", "Sage", "Tessa", "Vera", "Wyatt", "Zoe",
+ # Wave 2 — still short, still plain English.
+ "Aaron", "Bailey", "Clara", "Drew", "Hazel", "Isaac", "Jade", "Jordan",
+ "Keira", "Lucas", "Mason", "Nina", "Olive", "Parker", "Reese", "Tyler",
+ "Violet", "Brooke", "Cole", "Grant", "Heidi", "Jules",
+ # Wave 3 — the long tail, for workspaces nobody will realistically fill.
+ "Aubrey", "Cody", "Emery", "Felix", "Gemma", "Harvey", "Ivan",
+ "Lila", "Marlow", "Owen", "Preston", "Rowan", "Sawyer", "Tobias",
+ "Vaughn", "Willow", "Yara", "Leah", "Naomi", "Otis", "Pearl",
+ "Simone", "Trent", "Hugo", "Nadia", "Rosa", "Theo", "Colby", "Marcus",
+)
+
+#: Names a pane may never carry: the fixed wake word and the coding agents
+#: themselves. Saying "Claude" to address a pane called Claude is a coin flip.
+#: The user's OWN wake word is configurable and cannot be checked here — the
+#: session layer keeps a call-sign from shadowing it at assignment time.
+RESERVED_NAMES: frozenset[str] = frozenset(
+ {"jarvis", "claude", "codex", "gemini", "copilot", "cursor"}
)
# Below this similarity a spoken word is NOT treated as a terminal name. Tuned
@@ -146,4 +165,11 @@ def resolve(spoken: str, candidates: list[str]) -> str | None:
return best[1] if best else None
-__all__ = ["NAME_POOL", "default_names", "normalize", "phonetic_key", "resolve"]
+__all__ = [
+ "NAME_POOL",
+ "RESERVED_NAMES",
+ "default_names",
+ "normalize",
+ "phonetic_key",
+ "resolve",
+]
diff --git a/tests/unit/agentic_ide/test_context.py b/tests/unit/agentic_ide/test_context.py
index 1de3d73e95..248b718a40 100644
--- a/tests/unit/agentic_ide/test_context.py
+++ b/tests/unit/agentic_ide/test_context.py
@@ -52,15 +52,15 @@ async def test_focus_mode_block_names_the_folder_and_terminals(
registry, fake = wired
await registry.start(str(tmp_path), [{"agent": "claude"}, {"agent": "codex"}])
registry.set_focus_mode(True)
- await registry.attach("Mika", 80, 24, _noop, _noop_exit)
+ await registry.attach("Alex", 80, 24, _noop, _noop_exit)
on_output = fake.spawns[-1]["on_output"]
await on_output("pty", "refactoring the router\r\n")
block = focus_context_block()
assert "AGENTIC IDE" in block
assert str(tmp_path) in block
- assert "Mika (Claude Code)" in block
- assert "Nova (Codex)" in block
+ assert "Alex (Claude Code)" in block
+ assert "Blake (Codex)" in block
assert "refactoring the router" in block
@@ -70,7 +70,7 @@ async def test_block_is_capped(
registry, fake = wired
await registry.start(str(tmp_path), [{"agent": "claude"}])
registry.set_focus_mode(True)
- await registry.attach("Mika", 80, 24, _noop, _noop_exit)
+ await registry.attach("Alex", 80, 24, _noop, _noop_exit)
on_output = fake.spawns[-1]["on_output"]
for i in range(500):
await on_output("pty", f"line number {i} with a fair amount of text\r\n")
diff --git a/tests/unit/agentic_ide/test_intent.py b/tests/unit/agentic_ide/test_intent.py
index 1b8bb0d908..c591986ed2 100644
--- a/tests/unit/agentic_ide/test_intent.py
+++ b/tests/unit/agentic_ide/test_intent.py
@@ -1,9 +1,9 @@
"""Guards for the Agentic-IDE turn detector.
The regression this file exists for (voice session 2026-07-25 15:47): the user
-said "Kannst du mal bitte schnell ein zu Kai ein Review schicken und zwar dass
+said "Kannst du mal bitte schnell ein zu Dana ein Review schicken und zwar dass # i18n-allow: German speech input under test
er ein Deep Dive machen soll ..." and Jarvis dispatched a background Codex
-worker into a fresh git worktree while the terminal called Kai sat idle. The
+worker into a fresh git worktree while the terminal called Dana sat idle. The
utterance carried the depth marker "Deep Dive", the router's force-spawn hoist
matched it, and the workspace never got a look in.
@@ -21,22 +21,22 @@ import pytest
from jarvis.agentic_ide import intent
-NAMES = ["Mika", "Nova", "Aria", "Kai"]
+NAMES = ["Alex", "Blake", "Casey", "Dana"]
# The verbatim transcript from the live failure, truncated the way the log
# recorded it.
LIVE_FAILURE = (
- "Kannst du mal bitte schnell ein zu Kai ein Review schicken und zwar dass "
+ "Kannst du mal bitte schnell ein zu Dana ein Review schicken und zwar dass " # i18n-allow: German speech input under test
"er ein Deep Dive machen soll und dann kompletten Deep Dive machen und "
"gucken ob irgendwo Fehler sind"
)
def test_live_failure_reaches_the_terminal_not_a_background_worker() -> None:
- """The exact 2026-07-25 utterance must belong to Kai."""
+ """The exact 2026-07-25 utterance must belong to Dana."""
found = intent.detect(LIVE_FAILURE, names=NAMES)
assert found is not None
- assert found.terminal == "Kai"
+ assert found.terminal == "Dana"
assert found.kind == intent.KIND_PROMPT
# And the router's guard must agree, or force-spawn wins again.
assert intent.owns_turn(LIVE_FAILURE, names=NAMES) is True
@@ -45,13 +45,13 @@ def test_live_failure_reaches_the_terminal_not_a_background_worker() -> None:
@pytest.mark.parametrize(
("utterance", "terminal"),
[
- ("Sag Mika, sie soll die Tests laufen lassen", "Mika"),
- ("Tell Nova to refactor the wake word provider", "Nova"),
- ("Nova should look at the vosk provider", "Nova"),
- ("Aria, mach mal einen Review vom Audio-Code", "Aria"),
- ("Schick das an Kai", "Kai"),
- ("Dile a Kai que revise el codigo", "Kai"),
- ("Lass Mika den Bug im Wake-Pfad untersuchen", "Mika"),
+ ("Sag Alex, sie soll die Tests laufen lassen", "Alex"), # i18n-allow: German speech input under test
+ ("Tell Blake to refactor the wake word provider", "Blake"),
+ ("Blake should look at the vosk provider", "Blake"),
+ ("Casey, mach mal einen Review vom Audio-Code", "Casey"), # i18n-allow: German speech input under test
+ ("Schick das an Dana", "Dana"),
+ ("Dile a Dana que revise el codigo", "Dana"),
+ ("Lass Alex den Bug im Wake-Pfad untersuchen", "Alex"),
],
)
def test_addressing_shapes_across_locales(utterance: str, terminal: str) -> None:
@@ -64,10 +64,10 @@ def test_addressing_shapes_across_locales(utterance: str, terminal: str) -> None
@pytest.mark.parametrize(
("utterance", "terminal"),
[
- ("Was macht Mika gerade?", "Mika"),
- ("What is Kai doing?", "Kai"),
- ("Ist Nova fertig?", "Nova"),
- ("Wie ist der Status von Aria?", "Aria"),
+ ("Was macht Alex gerade?", "Alex"),
+ ("What is Dana doing?", "Dana"),
+ ("Ist Blake fertig?", "Blake"), # i18n-allow: German speech input under test
+ ("Wie ist der Status von Casey?", "Casey"), # i18n-allow: German speech input under test
],
)
def test_questions_about_a_pane_are_reads_not_prompts(
@@ -83,9 +83,9 @@ def test_questions_about_a_pane_are_reads_not_prompts(
@pytest.mark.parametrize(
"utterance",
[
- "Spawne einen Subagenten der Kai hilft",
+ "Spawne einen Subagenten der Dana hilft", # i18n-allow: German speech input under test
"Start a background agent to review this",
- "Mach das im Hintergrund, Mika braucht das nicht",
+ "Mach das im Hintergrund, Alex braucht das nicht", # i18n-allow: German speech input under test
"Delegiere das an einen Worker",
],
)
@@ -99,7 +99,7 @@ def test_naming_the_spawn_vehicle_still_wins(utterance: str) -> None:
[
"Wie ist das Wetter heute?",
"Mach einen Deep Dive in meine Google Cloud Kosten",
- "Kai ist ein schoener Name fuer ein Kind",
+ "Dana ist ein schoener Name fuer ein Kind", # i18n-allow: German speech input under test
"Erklaer mir bitte wie Vosk funktioniert",
],
)
@@ -111,31 +111,31 @@ def test_unrelated_turns_are_left_alone(utterance: str) -> None:
def test_no_open_workspace_means_no_claim() -> None:
"""With no terminals running, nothing can be addressed."""
- assert intent.detect("Sag Mika, sie soll die Tests starten", names=[]) is None
+ assert intent.detect("Sag Alex, sie soll die Tests starten", names=[]) is None # i18n-allow: German speech input under test
def test_call_signs_are_read_from_the_session_not_a_fixed_list() -> None:
"""A workspace with custom names behaves exactly like one with defaults."""
- custom = ["Bruno", "Vega"]
- found = intent.detect("Sag Bruno, er soll die Tests starten", names=custom)
+ custom = ["Hunter", "Ivy"]
+ found = intent.detect("Sag Hunter, er soll die Tests starten", names=custom) # i18n-allow: German speech input under test
assert found is not None
- assert found.terminal == "Bruno"
+ assert found.terminal == "Hunter"
# A default-pool name that is NOT in this workspace must not match.
- assert intent.detect("Sag Mika, sie soll die Tests starten", names=custom) is None
+ assert intent.detect("Sag Alex, sie soll die Tests starten", names=custom) is None # i18n-allow: German speech input under test
def test_instruction_keeps_the_work_when_stripping_would_eat_it() -> None:
"""A short utterance falls back to the full text rather than a stub."""
- found = intent.detect("Schick das an Kai", names=NAMES)
+ found = intent.detect("Schick das an Dana", names=NAMES)
assert found is not None
# "das" alone would be useless to the composer; the whole sentence is honest.
- assert len(found.instruction) >= len("Schick das an Kai")
+ assert len(found.instruction) >= len("Schick das an Dana")
def test_instruction_drops_the_addressing_when_there_is_real_work_left() -> None:
found = intent.detect(
- "Sag Mika, sie soll die Wake-Word-Erkennung reparieren", names=NAMES
+ "Sag Alex, sie soll die Wake-Word-Erkennung reparieren", names=NAMES # i18n-allow: German speech input under test
)
assert found is not None
- assert "Mika" not in found.instruction
+ assert "Alex" not in found.instruction
assert "Wake-Word-Erkennung" in found.instruction
diff --git a/tests/unit/agentic_ide/test_names.py b/tests/unit/agentic_ide/test_names.py
index ce1a6ed9c7..e5b0ef7c1d 100644
--- a/tests/unit/agentic_ide/test_names.py
+++ b/tests/unit/agentic_ide/test_names.py
@@ -6,9 +6,19 @@ words — a spoken sentence must not silently address a random terminal.
"""
from __future__ import annotations
+from difflib import SequenceMatcher
+
import pytest
-from jarvis.agentic_ide.names import NAME_POOL, default_names, normalize, resolve
+from jarvis.agentic_ide.names import (
+ _MATCH_FLOOR,
+ NAME_POOL,
+ RESERVED_NAMES,
+ default_names,
+ normalize,
+ phonetic_key,
+ resolve,
+)
def test_default_names_are_stable_and_ordered() -> None:
@@ -22,6 +32,72 @@ def test_default_names_extend_past_the_pool_deterministically() -> None:
assert len(set(many)) == len(many), "extended names must stay unique"
+def test_the_pool_covers_a_full_workspace_without_numbered_fallbacks() -> None:
+ """Running out of names yields "Alex-2", which nobody can say naturally.
+
+ The pool must therefore cover a workspace of a realistic size on its own —
+ the numbered tail is a safety net, not something a normal user should meet.
+ """
+ from jarvis.agentic_ide.session import MAX_TERMINALS
+
+ realistic = min(24, MAX_TERMINALS)
+ assert len(NAME_POOL) >= realistic
+ assert all("-" not in name for name in default_names(realistic))
+
+
+class TestPoolIsUnconfusable:
+ """No two call-signs may be close enough to steal each other's instructions.
+
+ Checked with the SHIPPING resolver rather than a second opinion about
+ pronunciation: what matters is exactly what the live matcher does. At 70+
+ names this cannot be eyeballed — the first hand-written pool of this size
+ contained 15 confusable pairs (Casey/Chase, Molly/Holly, Skyler/Tyler …),
+ every one of which would have sent work to the wrong agent.
+ """
+
+ def test_every_name_resolves_to_itself(self) -> None:
+ for spoken in NAME_POOL:
+ assert resolve(spoken, list(NAME_POOL)) == spoken
+
+ def test_no_two_names_share_a_phonetic_key(self) -> None:
+ seen: dict[str, str] = {}
+ for name in NAME_POOL:
+ key = phonetic_key(name)
+ assert key not in seen, f"{seen.get(key)} and {name} sound identical"
+ seen[key] = name
+
+ def test_no_pair_sits_above_the_match_floor(self) -> None:
+ too_close: list[str] = []
+ for index, first in enumerate(NAME_POOL):
+ for second in NAME_POOL[index + 1 :]:
+ score = max(
+ SequenceMatcher(None, first.lower(), second.lower()).ratio(),
+ SequenceMatcher(
+ None, phonetic_key(first), phonetic_key(second)
+ ).ratio(),
+ )
+ if score >= _MATCH_FLOOR:
+ too_close.append(f"{first}/{second} ({score:.2f})")
+ assert not too_close, f"confusable call-signs: {', '.join(too_close)}"
+
+ def test_names_are_unique_and_plain_ascii(self) -> None:
+ """A call-sign is typed into URLs and spoken by TTS in three locales."""
+ assert len(set(NAME_POOL)) == len(NAME_POOL)
+ for name in NAME_POOL:
+ assert name.isascii() and name.isalpha(), name
+ assert name[0].isupper(), name
+ # Long names are awkward to say and to fit in a pane header.
+ assert 3 <= len(name) <= 8, name
+
+
+def test_no_call_sign_shadows_an_agent_or_the_wake_word() -> None:
+ """"Claude, run the tests" must not be a coin flip between agent and pane."""
+ for reserved in RESERVED_NAMES:
+ assert normalize(reserved) not in {normalize(n) for n in NAME_POOL}
+ hit = resolve(reserved, list(NAME_POOL))
+ assert hit is None, f"{reserved!r} resolves to the call-sign {hit!r}"
+
+
def test_exact_and_case_insensitive_match() -> None:
assert resolve("Mika", ["Mika", "Nova"]) == "Mika"
assert resolve("mika", ["Mika", "Nova"]) == "Mika"
diff --git a/tests/unit/agentic_ide/test_panes.py b/tests/unit/agentic_ide/test_panes.py
index 5f155cb8f5..fcc6a2a2b5 100644
--- a/tests/unit/agentic_ide/test_panes.py
+++ b/tests/unit/agentic_ide/test_panes.py
@@ -57,7 +57,7 @@ async def test_a_fresh_workspace_puts_every_pane_in_its_own_column(
) -> None:
"""The wizard's panes stand side by side: one column each, top slot."""
await _open(registry, tmp_path, 3)
- assert _layout(registry) == [("Mika", 0, 0), ("Nova", 1, 0), ("Aria", 2, 0)]
+ assert _layout(registry) == [("Alex", 0, 0), ("Blake", 1, 0), ("Casey", 2, 0)]
# ---------------------------------------------------------------- split right
@@ -65,10 +65,10 @@ async def test_split_right_opens_a_column_next_to_the_anchor(
registry: Registry, tmp_path: Path
) -> None:
await _open(registry, tmp_path, 2)
- term = await registry.add_terminal(anchor="Mika", direction="right")
+ term = await registry.add_terminal(anchor="Alex", direction="right")
# Immediately right of its anchor — not appended at the end — and everything
# further right shifts over rather than being overwritten.
- assert _layout(registry) == [("Mika", 0, 0), (term.name, 1, 0), ("Nova", 2, 0)]
+ assert _layout(registry) == [("Alex", 0, 0), (term.name, 1, 0), ("Blake", 2, 0)]
async def test_split_right_inherits_the_anchor_agent(
@@ -84,7 +84,7 @@ async def test_an_explicit_agent_wins_over_the_anchor(
registry: Registry, tmp_path: Path
) -> None:
await _open(registry, tmp_path, 1)
- term = await registry.add_terminal(anchor="Mika", direction="right", agent="codex")
+ term = await registry.add_terminal(anchor="Alex", direction="right", agent="codex")
assert term.agent == "codex"
@@ -93,11 +93,11 @@ async def test_split_down_stacks_inside_the_anchor_column(
registry: Registry, tmp_path: Path
) -> None:
"""The point of the column model: splitting one pane must not squash the
- others. Nova keeps its own full-height column."""
+ others. Blake keeps its own full-height column."""
await _open(registry, tmp_path, 2)
- term = await registry.add_terminal(anchor="Mika", direction="down")
+ term = await registry.add_terminal(anchor="Alex", direction="down")
assert (term.column, term.slot) == (0, 1)
- assert _layout(registry) == [("Mika", 0, 0), (term.name, 0, 1), ("Nova", 1, 0)]
+ assert _layout(registry) == [("Alex", 0, 0), (term.name, 0, 1), ("Blake", 1, 0)]
async def test_split_down_pushes_the_existing_stack_down(
@@ -105,10 +105,10 @@ async def test_split_down_pushes_the_existing_stack_down(
) -> None:
"""Inserting into the middle of a stack must not collide with what is there."""
await _open(registry, tmp_path, 1)
- bottom = await registry.add_terminal(anchor="Mika", direction="down")
- middle = await registry.add_terminal(anchor="Mika", direction="down")
+ bottom = await registry.add_terminal(anchor="Alex", direction="down")
+ middle = await registry.add_terminal(anchor="Alex", direction="down")
slots = {name: (column, slot) for name, column, slot in _layout(registry)}
- assert slots["Mika"] == (0, 0)
+ assert slots["Alex"] == (0, 0)
assert slots[middle.name] == (0, 1), "the newest pane sits under its anchor"
assert slots[bottom.name] == (0, 2), "the older pane moved down"
@@ -117,15 +117,15 @@ async def test_split_down_pushes_the_existing_stack_down(
async def test_new_panes_take_the_next_free_call_sign(
registry: Registry, tmp_path: Path
) -> None:
- await _open(registry, tmp_path, 2) # Mika, Nova
+ await _open(registry, tmp_path, 2) # Alex, Blake
term = await registry.add_terminal(direction="right")
- assert term.name == "Aria"
+ assert term.name == "Casey"
async def test_an_explicit_name_is_deduplicated(registry: Registry, tmp_path: Path) -> None:
await _open(registry, tmp_path, 1)
- term = await registry.add_terminal(name="Mika", direction="right")
- assert term.name == "Mika 2"
+ term = await registry.add_terminal(name="Alex", direction="right")
+ assert term.name == "Alex 2"
async def test_the_new_pane_starts_pending_and_addressable(
@@ -154,7 +154,7 @@ async def test_an_unknown_anchor_is_refused(registry: Registry, tmp_path: Path)
async def test_a_bad_direction_is_refused(registry: Registry, tmp_path: Path) -> None:
await _open(registry, tmp_path, 1)
with pytest.raises(SessionError, match="right.*down"):
- await registry.add_terminal(anchor="Mika", direction="sideways")
+ await registry.add_terminal(anchor="Alex", direction="sideways")
async def test_adding_without_a_workspace_is_refused(registry: Registry) -> None:
@@ -178,23 +178,23 @@ async def test_closing_a_pane_stops_its_agent(
registry: Registry, fake_pty: FakePtyManager, tmp_path: Path
) -> None:
await _open(registry, tmp_path, 2)
- await registry.attach("Mika", 80, 24, _noop, _noop_exit)
+ await registry.attach("Alex", 80, 24, _noop, _noop_exit)
pty_id = registry.session.terminals[0].pty_id
- closed = await registry.close_terminal("Mika")
- assert closed.name == "Mika"
+ closed = await registry.close_terminal("Alex")
+ assert closed.name == "Alex"
assert pty_id in fake_pty.closed
- assert [t.name for t in registry.session.terminals] == ["Nova"]
+ assert [t.name for t in registry.session.terminals] == ["Blake"]
async def test_closing_repacks_the_stack(registry: Registry, tmp_path: Path) -> None:
"""A gap in a stack would render as a blank cell, so slots are re-packed."""
await _open(registry, tmp_path, 1)
- middle = await registry.add_terminal(anchor="Mika", direction="down")
+ middle = await registry.add_terminal(anchor="Alex", direction="down")
bottom = await registry.add_terminal(anchor=middle.name, direction="down")
assert [slot for _n, _c, slot in _layout(registry)] == [0, 1, 2]
await registry.close_terminal(middle.name)
- assert _layout(registry) == [("Mika", 0, 0), (bottom.name, 0, 1)]
+ assert _layout(registry) == [("Alex", 0, 0), (bottom.name, 0, 1)]
async def test_closing_a_whole_column_repacks_the_columns(
@@ -202,8 +202,8 @@ async def test_closing_a_whole_column_repacks_the_columns(
) -> None:
"""An emptied column would render as a blank stripe."""
await _open(registry, tmp_path, 3)
- await registry.close_terminal("Nova")
- assert _layout(registry) == [("Mika", 0, 0), ("Aria", 1, 0)]
+ await registry.close_terminal("Blake")
+ assert _layout(registry) == [("Alex", 0, 0), ("Casey", 1, 0)]
async def test_closing_the_last_pane_leaves_an_empty_workspace(
@@ -211,7 +211,7 @@ async def test_closing_the_last_pane_leaves_an_empty_workspace(
) -> None:
"""Allowed on purpose: the grid then offers to open a fresh terminal."""
await _open(registry, tmp_path, 1)
- await registry.close_terminal("Mika")
+ await registry.close_terminal("Alex")
assert registry.session is not None
assert registry.session.terminals == []
@@ -220,7 +220,7 @@ async def test_closing_an_unknown_pane_names_the_real_ones(
registry: Registry, tmp_path: Path
) -> None:
await _open(registry, tmp_path, 1)
- with pytest.raises(SessionError, match="Mika"):
+ with pytest.raises(SessionError, match="Alex"):
await registry.close_terminal("Gandalf")
@@ -228,20 +228,20 @@ async def test_a_closed_pane_refuses_further_prompts(
registry: Registry, tmp_path: Path
) -> None:
await _open(registry, tmp_path, 2)
- await registry.attach("Mika", 80, 24, _noop, _noop_exit)
- await registry.close_terminal("Mika")
+ await registry.attach("Alex", 80, 24, _noop, _noop_exit)
+ await registry.close_terminal("Alex")
with pytest.raises(SessionError, match="No terminal called"):
- await registry.send_prompt("Mika", "still there?")
+ await registry.send_prompt("Alex", "still there?")
async def test_a_reopened_call_sign_is_a_fresh_pane(
registry: Registry, tmp_path: Path
) -> None:
- """Closing Mika and splitting again must not resurrect the old transcript."""
+ """Closing Alex and splitting again must not resurrect the old transcript."""
await _open(registry, tmp_path, 1)
- await registry.attach("Mika", 80, 24, _noop, _noop_exit)
+ await registry.attach("Alex", 80, 24, _noop, _noop_exit)
registry.session.terminals[0].transcript.feed("old work\r\n")
- await registry.close_terminal("Mika")
- fresh = await registry.add_terminal(name="Mika", direction="right")
+ await registry.close_terminal("Alex")
+ fresh = await registry.add_terminal(name="Alex", direction="right")
assert fresh.transcript.tail() == []
assert fresh.prompts_sent == 0
diff --git a/tests/unit/agentic_ide/test_prompt_blueprint.py b/tests/unit/agentic_ide/test_prompt_blueprint.py
index 95f1aaed40..44fbb0d543 100644
--- a/tests/unit/agentic_ide/test_prompt_blueprint.py
+++ b/tests/unit/agentic_ide/test_prompt_blueprint.py
@@ -132,9 +132,9 @@ def test_neutral_carries_only_the_universally_safe_steers():
def test_user_block_carries_the_skeletons_and_the_house_rules():
block = user_block(
- utterance="tell Mika to check the ranking",
+ utterance="tell Alex to check the ranking",
instruction="check the ranking",
- terminal_name="Mika",
+ terminal_name="Alex",
agent_display="Claude Code",
profile_lines=["Folder: /repo", "Git repository on branch main"],
candidates=["jarvis/rank.py"],
@@ -142,12 +142,12 @@ def test_user_block_carries_the_skeletons_and_the_house_rules():
house_rules="Tests: pytest tests/",
)
- assert "Mika" in block
+ assert "Alex" in block
assert "Claude Code" in block
assert "jarvis/rank.py" in block
assert "def fuse(a, b) -> list: ..." in block
assert "pytest tests/" in block
- assert "tell Mika to check the ranking" in block
+ assert "tell Alex to check the ranking" in block
def test_user_block_puts_the_request_after_the_longform_data():
@@ -155,7 +155,7 @@ def test_user_block_puts_the_request_after_the_longform_data():
block = user_block(
utterance="do the thing",
instruction="do the thing",
- terminal_name="Kai",
+ terminal_name="Dana",
agent_display="Codex",
profile_lines=["Folder: /repo"],
candidates=["a.py"],
@@ -171,7 +171,7 @@ def test_user_block_survives_having_nothing_to_offer():
block = user_block(
utterance="do the thing",
instruction="do the thing",
- terminal_name="Kai",
+ terminal_name="Dana",
agent_display="Codex",
profile_lines=[],
candidates=[],
@@ -180,7 +180,7 @@ def test_user_block_survives_having_nothing_to_offer():
)
assert "do the thing" in block
- assert "Kai" in block
+ assert "Dana" in block
def test_fallback_renders_markdown_with_a_task_heading():
diff --git a/tests/unit/agentic_ide/test_prompt_submit.py b/tests/unit/agentic_ide/test_prompt_submit.py
index 4f2df2a40e..4b05eed240 100644
--- a/tests/unit/agentic_ide/test_prompt_submit.py
+++ b/tests/unit/agentic_ide/test_prompt_submit.py
@@ -98,7 +98,7 @@ def registry(fake_pty: FakePtyManager, monkeypatch: pytest.MonkeyPatch) -> Regis
async def _open(registry: Registry, folder: Path):
- return await registry.start(str(folder), [{"agent": "claude", "name": "Mika"}])
+ return await registry.start(str(folder), [{"agent": "claude", "name": "Alex"}])
async def _noop(_text: str) -> None:
@@ -111,7 +111,7 @@ async def _noop_exit(_code: int) -> None:
async def _live(registry: Registry, tmp_path: Path):
await _open(registry, tmp_path)
- return await registry.attach("Mika", 100, 30, _noop, _noop_exit)
+ return await registry.attach("Alex", 100, 30, _noop, _noop_exit)
async def test_a_trailing_reference_gets_a_closing_space(
@@ -119,7 +119,7 @@ async def test_a_trailing_reference_gets_a_closing_space(
) -> None:
term = await _live(registry, tmp_path)
# Empty screen: the verification sees no pending input line -> submitted.
- await registry.send_prompt("Mika", "review this. @jarvis/x.py")
+ await registry.send_prompt("Alex", "review this. @jarvis/x.py")
assert fake_pty.typed[0] == "review this. @jarvis/x.py ", fake_pty.typed
assert fake_pty.typed[1] == "\r"
assert term.submitted is True
@@ -129,7 +129,7 @@ async def test_a_plain_prompt_is_typed_verbatim(
registry: Registry, fake_pty: FakePtyManager, tmp_path: Path
) -> None:
await _live(registry, tmp_path)
- await registry.send_prompt("Mika", "review the pipeline")
+ await registry.send_prompt("Alex", "review the pipeline")
assert fake_pty.typed[0] == "review the pipeline", fake_pty.typed
@@ -142,7 +142,7 @@ async def test_enter_is_pressed_again_while_the_prompt_sits_in_the_box(
on_output = fake_pty.spawns[-1]["on_output"]
await on_output("pty", "\x1b[2J\x1b[H❯ review the pipeline\r\n")
- await registry.send_prompt("Mika", "review the pipeline")
+ await registry.send_prompt("Alex", "review the pipeline")
enters = [d for d in fake_pty.typed if d == "\r"]
assert len(enters) == 2, f"one Enter plus a single retry, got {fake_pty.typed}"
@@ -158,7 +158,7 @@ async def test_a_prompt_that_lands_reports_submitted(
# the input line is empty again.
await on_output("pty", "\x1b[2J\x1b[Hreview the pipeline\r\n✽ Mulling…\r\n❯\r\n")
- await registry.send_prompt("Mika", "review the pipeline")
+ await registry.send_prompt("Alex", "review the pipeline")
assert term.submitted is True
assert [d for d in fake_pty.typed if d == "\r"] == ["\r"], "no needless retries"
@@ -167,7 +167,7 @@ async def test_the_submitted_flag_is_reported(
registry: Registry, tmp_path: Path
) -> None:
term = await _live(registry, tmp_path)
- await registry.send_prompt("Mika", "review the pipeline")
+ await registry.send_prompt("Alex", "review the pipeline")
assert term.to_dict()["submitted"] is True
@@ -184,7 +184,7 @@ async def test_a_dead_terminal_still_refuses_outright(
"""Verification never softens the hard refusal: no live agent, nothing typed."""
await _open(registry, tmp_path)
with pytest.raises(SessionError, match="not running"):
- await registry.send_prompt("Mika", "review the pipeline")
+ await registry.send_prompt("Alex", "review the pipeline")
# --------------------------------------------------- multi-line transport
@@ -229,7 +229,7 @@ async def test_a_multiline_prompt_is_sent_as_one_bracketed_paste(
) -> None:
term = await _live(registry, tmp_path)
- await registry.send_prompt("Mika", _MARKDOWN)
+ await registry.send_prompt("Alex", _MARKDOWN)
body = fake_pty.typed[0]
assert body.startswith(PASTE_START)
@@ -245,7 +245,7 @@ async def test_a_single_line_prompt_is_not_wrapped(
) -> None:
term = await _live(registry, tmp_path)
- await registry.send_prompt("Mika", "review the pipeline")
+ await registry.send_prompt("Alex", "review the pipeline")
assert PASTE_START not in fake_pty.typed[0]
assert term.sent_multiline is False
@@ -267,7 +267,7 @@ async def test_a_rejected_multiline_prompt_falls_back_to_one_line(
on_output = fake_pty.spawns[-1]["on_output"]
await on_output("pty", "\x1b[2J\x1b[H❯ [Pasted text #1 +4 lines]\r\n")
- await registry.send_prompt("Mika", _MARKDOWN)
+ await registry.send_prompt("Alex", _MARKDOWN)
assert any(d == _ONE_LINE for d in fake_pty.typed), fake_pty.typed
assert term.sent_multiline is False
diff --git a/tests/unit/agentic_ide/test_resume_routes.py b/tests/unit/agentic_ide/test_resume_routes.py
index 37b7dac139..03b5970660 100644
--- a/tests/unit/agentic_ide/test_resume_routes.py
+++ b/tests/unit/agentic_ide/test_resume_routes.py
@@ -49,8 +49,8 @@ def _store(folder: Path, *, with_conversation: bool = True) -> None:
saved_at=100.0,
terminals=[
resume_store.SnapshotTerminal(
- key="mika",
- name="Mika",
+ key="alex",
+ name="Alex",
agent="claude",
column=0,
slot=0,
@@ -64,7 +64,7 @@ def _store(folder: Path, *, with_conversation: bool = True) -> None:
prompts_sent=2,
),
resume_store.SnapshotTerminal(
- key="nova", name="Nova", agent="codex", column=1, slot=0
+ key="blake", name="Blake", agent="codex", column=1, slot=0
),
],
)
@@ -87,7 +87,7 @@ def test_the_offer_names_the_panes_and_where_they_sat(
assert body["available"] is True
assert body["folder"] == str(tmp_path)
assert body["folder_name"] == tmp_path.name
- assert [t["name"] for t in body["terminals"]] == ["Mika", "Nova"]
+ assert [t["name"] for t in body["terminals"]] == ["Alex", "Blake"]
assert [(t["column"], t["slot"]) for t in body["terminals"]] == [(0, 0), (1, 0)]
assert [t["display_name"] for t in body["terminals"]] == ["Claude Code", "Codex"]
@@ -99,8 +99,8 @@ def test_the_offer_says_which_conversations_come_back(
existing_conversation("u")
body = client.get("/api/agentic-ide/resume").json()
panes = {t["name"]: t for t in body["terminals"]}
- assert panes["Mika"]["resumable"] is True
- assert panes["Nova"]["resumable"] is False # never got a conversation id
+ assert panes["Alex"]["resumable"] is True
+ assert panes["Blake"]["resumable"] is False # never got a conversation id
assert body["resumable_count"] == 1
@@ -135,7 +135,7 @@ def test_a_broken_agent_probe_does_not_take_the_screen_down(
body = res.json()
# Honest rather than optimistic: nothing is promised that cannot be checked.
assert body["available"] is False
- assert [t["name"] for t in body["terminals"]] == ["Mika", "Nova"]
+ assert [t["name"] for t in body["terminals"]] == ["Alex", "Blake"]
# ------------------------------------------------------------------ resume
@@ -144,7 +144,7 @@ def test_resuming_reopens_the_workspace(client: TestClient, tmp_path: Path) -> N
res = client.post("/api/agentic-ide/resume")
assert res.status_code == 200
body = res.json()
- assert [t["name"] for t in body["session"]["terminals"]] == ["Mika", "Nova"]
+ assert [t["name"] for t in body["session"]["terminals"]] == ["Alex", "Blake"]
assert body["session"]["folder"] == str(tmp_path)
# The running state agrees, so a client may read either.
assert client.get("/api/agentic-ide/state").json()["active"] is True
@@ -220,7 +220,7 @@ def test_resuming_counts_conversations_not_handles(
offer screen exists to prevent — and the one that reached the user as
"12 conversations restored" for twelve panes that came back empty.
"""
- _store(tmp_path) # Mika's id is deliberately not backed by a conversation
+ _store(tmp_path) # Alex's id is deliberately not backed by a conversation
body = client.post("/api/agentic-ide/resume").json()
assert body["resumable_count"] == 0
assert body["started_fresh"] == 2
diff --git a/tests/unit/agentic_ide/test_resume_session.py b/tests/unit/agentic_ide/test_resume_session.py
index ff4963360f..f0f8ab01df 100644
--- a/tests/unit/agentic_ide/test_resume_session.py
+++ b/tests/unit/agentic_ide/test_resume_session.py
@@ -49,10 +49,10 @@ def _argv(fake_pty: FakePtyManager) -> tuple[str, ...]:
async def test_a_fresh_pane_is_launched_with_an_id_it_can_be_found_by(
registry: ide.Registry, fake_pty: FakePtyManager, tmp_path: Path
) -> None:
- await registry.start(str(tmp_path), [{"agent": "claude", "name": "Mika"}])
- await registry.attach("Mika", 80, 24, _noop, _noop_exit)
+ await registry.start(str(tmp_path), [{"agent": "claude", "name": "Alex"}])
+ await registry.attach("Alex", 80, 24, _noop, _noop_exit)
- term = registry.session.find("Mika")
+ term = registry.session.find("Alex")
assert term.resume is not None and term.resume.kind == "claude_session"
# The id went to the CLI, which is what makes the conversation findable.
argv = _argv(fake_pty)
@@ -67,16 +67,16 @@ async def test_a_pane_with_a_handle_continues_instead_of_starting_over(
tmp_path: Path,
existing_conversation,
) -> None:
- await registry.start(str(tmp_path), [{"agent": "claude", "name": "Mika"}])
- term = registry.session.find("Mika")
+ await registry.start(str(tmp_path), [{"agent": "claude", "name": "Alex"}])
+ term = registry.session.find("Alex")
term.resume = ResumeHandle(
kind="claude_session", id="known-id", captured_at=1.0
)
existing_conversation("known-id")
- await registry.attach("Mika", 80, 24, _noop, _noop_exit)
+ await registry.attach("Alex", 80, 24, _noop, _noop_exit)
assert _argv(fake_pty)[-2:] == ("--resume", "known-id")
- assert registry.session.find("Mika").resumed is True
+ assert registry.session.find("Alex").resumed is True
async def test_reopening_a_pane_keeps_the_same_conversation(
@@ -86,20 +86,20 @@ async def test_reopening_a_pane_keeps_the_same_conversation(
existing_conversation,
) -> None:
"""After the agent really died, the pane comes back with its conversation."""
- await registry.start(str(tmp_path), [{"agent": "claude", "name": "Mika"}])
- await registry.attach("Mika", 80, 24, _noop, _noop_exit)
- minted = registry.session.find("Mika").resume
+ await registry.start(str(tmp_path), [{"agent": "claude", "name": "Alex"}])
+ await registry.attach("Alex", 80, 24, _noop, _noop_exit)
+ minted = registry.session.find("Alex").resume
assert minted is not None
# The pane was used, so the CLI now has a conversation under that id.
existing_conversation(minted.id)
# The agent is gone — quit from inside, machine restarted, process killed.
# THAT is what makes the next attach a restart rather than a re-join.
- await fake_pty.die(registry.session.find("Mika").pty_id, 0)
- await registry.attach("Mika", 80, 24, _noop, _noop_exit)
+ await fake_pty.die(registry.session.find("Alex").pty_id, 0)
+ await registry.attach("Alex", 80, 24, _noop, _noop_exit)
assert _argv(fake_pty)[-2:] == ("--resume", minted.id)
- assert registry.session.find("Mika").resumed is True
+ assert registry.session.find("Alex").resumed is True
async def test_letting_go_of_a_pane_does_not_stop_its_agent(
@@ -111,29 +111,29 @@ async def test_letting_go_of_a_pane_does_not_stop_its_agent(
walking over to the chat view. An agent runs until its WORKSPACE is closed,
so none of those may cost the work in progress.
"""
- await registry.start(str(tmp_path), [{"agent": "claude", "name": "Mika"}])
- await registry.attach("Mika", 80, 24, _noop, _noop_exit)
- pty_id = registry.session.find("Mika").pty_id
+ await registry.start(str(tmp_path), [{"agent": "claude", "name": "Alex"}])
+ await registry.attach("Alex", 80, 24, _noop, _noop_exit)
+ pty_id = registry.session.find("Alex").pty_id
- registry.detach("Mika")
+ registry.detach("Alex")
assert pty_id not in fake_pty.closed, "the agent must still be running"
- assert registry.session.find("Mika").status == "live"
- assert registry.session.find("Mika").pty_id == pty_id
+ assert registry.session.find("Alex").status == "live"
+ assert registry.session.find("Alex").pty_id == pty_id
async def test_a_pane_running_a_cli_that_cannot_resume_just_starts(
registry: ide.Registry, fake_pty: FakePtyManager, tmp_path: Path
) -> None:
"""A coding CLI added later must degrade, never break the pane."""
- await registry.start(str(tmp_path), [{"agent": "claude", "name": "Mika"}])
- term = registry.session.find("Mika")
+ await registry.start(str(tmp_path), [{"agent": "claude", "name": "Alex"}])
+ term = registry.session.find("Alex")
term.agent = "some-future-cli"
- await registry.attach("Mika", 80, 24, _noop, _noop_exit)
+ await registry.attach("Alex", 80, 24, _noop, _noop_exit)
assert _argv(fake_pty) == ("/usr/bin/some-future-cli",)
- assert registry.session.find("Mika").resume is None
- assert registry.session.find("Mika").resumed is False
+ assert registry.session.find("Alex").resume is None
+ assert registry.session.find("Alex").resumed is False
async def test_a_handle_with_no_conversation_behind_it_starts_fresh(
@@ -149,19 +149,19 @@ async def test_a_handle_with_no_conversation_behind_it_starts_fresh(
The pointer has to be dereferenced before it is spent.
"""
- await registry.start(str(tmp_path), [{"agent": "claude", "name": "Mika"}])
- term = registry.session.find("Mika")
+ await registry.start(str(tmp_path), [{"agent": "claude", "name": "Alex"}])
+ term = registry.session.find("Alex")
term.resume = ResumeHandle(
kind="claude_session", id="never-written", captured_at=1.0
)
# Deliberately no conversation on disk.
- await registry.attach("Mika", 80, 24, _noop, _noop_exit)
+ await registry.attach("Alex", 80, 24, _noop, _noop_exit)
argv = _argv(fake_pty)
assert "--resume" not in argv, "an id pointing at nothing must not be spent"
assert "--session-id" in argv, "and the fresh start gets a usable id of its own"
- term = registry.session.find("Mika")
+ term = registry.session.find("Alex")
assert term.resumed is False
assert term.status == "live", "the pane must come up, not die"
assert term.resume is not None and term.resume.id != "never-written"
@@ -177,8 +177,8 @@ async def test_the_offer_does_not_promise_a_conversation_that_is_not_there(
saved_at=1.0,
terminals=[
resume_store.SnapshotTerminal(
- key="mika",
- name="Mika",
+ key="alex",
+ name="Alex",
agent="claude",
resume=ResumeHandle(
kind="claude_session", id="never-written", captured_at=1.0
@@ -200,8 +200,8 @@ async def test_a_dead_conversation_falls_back_to_a_fresh_agent(
existing_conversation,
) -> None:
"""The backstop: a conversation that looks present but the CLI rejects."""
- await registry.start(str(tmp_path), [{"agent": "claude", "name": "Mika"}])
- term = registry.session.find("Mika")
+ await registry.start(str(tmp_path), [{"agent": "claude", "name": "Alex"}])
+ term = registry.session.find("Alex")
term.resume = ResumeHandle(kind="claude_session", id="stale", captured_at=1.0)
existing_conversation("stale")
@@ -210,14 +210,14 @@ async def test_a_dead_conversation_falls_back_to_a_fresh_agent(
async def _record_exit(code: int) -> None:
exits.append(code)
- await registry.attach("Mika", 80, 24, _noop, _record_exit)
+ await registry.attach("Alex", 80, 24, _noop, _record_exit)
# The CLI printed "no such conversation" and died right away.
await fake_pty.spawns[-1]["on_closed"]("fake-pty-1", 1)
argv = _argv(fake_pty)
assert "--resume" not in argv, "a stale handle must not be spent twice"
- assert registry.session.find("Mika").resumed is False
- assert registry.session.find("Mika").status == "live"
+ assert registry.session.find("Alex").resumed is False
+ assert registry.session.find("Alex").status == "live"
# The viewer was never told the pane died — it did not, it restarted.
assert exits == []
@@ -229,8 +229,8 @@ async def test_a_clean_exit_after_a_resume_is_not_second_guessed(
existing_conversation,
) -> None:
"""Quitting an agent on purpose exits 0 — restarting it would be a bug."""
- await registry.start(str(tmp_path), [{"agent": "claude", "name": "Mika"}])
- term = registry.session.find("Mika")
+ await registry.start(str(tmp_path), [{"agent": "claude", "name": "Alex"}])
+ term = registry.session.find("Alex")
term.resume = ResumeHandle(kind="claude_session", id="fine", captured_at=1.0)
existing_conversation("fine")
@@ -239,11 +239,11 @@ async def test_a_clean_exit_after_a_resume_is_not_second_guessed(
async def _record_exit(code: int) -> None:
exits.append(code)
- await registry.attach("Mika", 80, 24, _noop, _record_exit)
+ await registry.attach("Alex", 80, 24, _noop, _record_exit)
await fake_pty.spawns[-1]["on_closed"]("fake-pty-1", 0)
assert exits == [0]
- assert registry.session.find("Mika").status == "exited"
+ assert registry.session.find("Alex").status == "exited"
async def test_closing_a_resumed_pane_does_not_resurrect_it(
@@ -260,22 +260,22 @@ async def test_closing_a_resumed_pane_does_not_resurrect_it(
and it would then run on with nobody watching, which is precisely what
closing it prevents.
"""
- await registry.start(str(tmp_path), [{"agent": "claude", "name": "Mika"}])
- registry.session.find("Mika").resume = ResumeHandle(
+ await registry.start(str(tmp_path), [{"agent": "claude", "name": "Alex"}])
+ registry.session.find("Alex").resume = ResumeHandle(
kind="claude_session", id="fine", captured_at=1.0
)
existing_conversation("fine")
- await registry.attach("Mika", 80, 24, _noop, _noop_exit)
- assert registry.session.find("Mika").resumed is True
+ await registry.attach("Alex", 80, 24, _noop, _noop_exit)
+ assert registry.session.find("Alex").resumed is True
spawns_before = len(fake_pty.spawns)
# The user closed the pane a second after it came back, and the kill is
# reported by the PTY as a failure exit.
- await registry.close_terminal("Mika")
+ await registry.close_terminal("Alex")
await fake_pty.spawns[-1]["on_closed"]("fake-pty-1", 1)
assert len(fake_pty.spawns) == spawns_before, "the agent must stay stopped"
- assert registry.session.find("Mika") is None, "and its pane must be gone"
+ assert registry.session.find("Alex") is None, "and its pane must be gone"
async def test_closing_the_workspace_does_not_resurrect_a_resumed_pane(
@@ -285,13 +285,13 @@ async def test_closing_the_workspace_does_not_resurrect_a_resumed_pane(
existing_conversation,
) -> None:
"""Same trap, reached by closing the whole workspace instead of one pane."""
- await registry.start(str(tmp_path), [{"agent": "claude", "name": "Mika"}])
- registry.session.find("Mika").resume = ResumeHandle(
+ await registry.start(str(tmp_path), [{"agent": "claude", "name": "Alex"}])
+ registry.session.find("Alex").resume = ResumeHandle(
kind="claude_session", id="fine", captured_at=1.0
)
existing_conversation("fine")
- await registry.attach("Mika", 80, 24, _noop, _noop_exit)
- term = registry.session.find("Mika")
+ await registry.attach("Alex", 80, 24, _noop, _noop_exit)
+ term = registry.session.find("Alex")
spawns_before = len(fake_pty.spawns)
await registry.end()
@@ -310,8 +310,8 @@ async def test_a_late_crash_is_reported_as_a_crash(
) -> None:
"""Past the window an exit is just an exit; a restart loop would be worse."""
monkeypatch.setattr(ide, "RESUME_FAILED_WINDOW_S", 0.0)
- await registry.start(str(tmp_path), [{"agent": "claude", "name": "Mika"}])
- registry.session.find("Mika").resume = ResumeHandle(
+ await registry.start(str(tmp_path), [{"agent": "claude", "name": "Alex"}])
+ registry.session.find("Alex").resume = ResumeHandle(
kind="claude_session", id="fine", captured_at=1.0
)
existing_conversation("fine")
@@ -321,11 +321,11 @@ async def test_a_late_crash_is_reported_as_a_crash(
async def _record_exit(code: int) -> None:
exits.append(code)
- await registry.attach("Mika", 80, 24, _noop, _record_exit)
+ await registry.attach("Alex", 80, 24, _noop, _record_exit)
await fake_pty.spawns[-1]["on_closed"]("fake-pty-1", 3)
assert exits == [3]
- assert registry.session.find("Mika").status == "exited"
+ assert registry.session.find("Alex").status == "exited"
# ------------------------------------------------------------------ restore
@@ -336,18 +336,18 @@ def _snapshot(folder: Path) -> resume_store.Snapshot:
saved_at=1.0,
terminals=[
resume_store.SnapshotTerminal(
- key="kai",
- name="Kai",
+ key="dana",
+ name="Dana",
agent="claude",
column=1,
slot=1,
resume=ResumeHandle(
- kind="claude_session", id="kai-conv", captured_at=1.0
+ kind="claude_session", id="dana-conv", captured_at=1.0
),
prompts_sent=2,
),
resume_store.SnapshotTerminal(
- key="mika", name="Mika", agent="claude", column=0, slot=0
+ key="alex", name="Alex", agent="claude", column=0, slot=0
),
],
)
@@ -359,12 +359,12 @@ async def test_restore_rebuilds_titles_agents_and_positions(
restored = await registry.restore(_snapshot(tmp_path))
# Reading order, not snapshot order: left to right, top to bottom.
- assert [t.name for t in restored.terminals] == ["Mika", "Kai"]
+ assert [t.name for t in restored.terminals] == ["Alex", "Dana"]
assert [(t.column, t.slot) for t in restored.terminals] == [(0, 0), (1, 0)]
assert [t.agent for t in restored.terminals] == ["claude", "claude"]
assert restored.folder == str(tmp_path)
- assert restored.find("Kai").resume.id == "kai-conv"
- assert restored.find("Kai").prompts_sent == 2
+ assert restored.find("Dana").resume.id == "dana-conv"
+ assert restored.find("Dana").prompts_sent == 2
async def test_restore_starts_nothing_by_itself(
@@ -382,15 +382,15 @@ async def test_a_restored_pane_continues_its_conversation_when_it_connects(
tmp_path: Path,
existing_conversation,
) -> None:
- existing_conversation("kai-conv")
+ existing_conversation("dana-conv")
await registry.restore(_snapshot(tmp_path))
- await registry.attach("Kai", 80, 24, _noop, _noop_exit)
- assert _argv(fake_pty)[-2:] == ("--resume", "kai-conv")
+ await registry.attach("Dana", 80, 24, _noop, _noop_exit)
+ assert _argv(fake_pty)[-2:] == ("--resume", "dana-conv")
- await registry.attach("Mika", 80, 24, _noop, _noop_exit)
- # Mika never had one, so it starts fresh — and says so.
+ await registry.attach("Alex", 80, 24, _noop, _noop_exit)
+ # Alex never had one, so it starts fresh — and says so.
assert "--resume" not in _argv(fake_pty)
- assert registry.session.find("Mika").resumed is False
+ assert registry.session.find("Alex").resumed is False
async def test_restore_refuses_a_folder_that_is_gone(
@@ -442,7 +442,7 @@ async def test_restoring_another_folder_opens_it_beside_the_running_one(
await registry.restore(_snapshot(other))
assert live not in fake_pty.closed, "the first workspace must keep running"
- assert [t.name for t in registry.session.terminals] == ["Mika", "Kai"]
+ assert [t.name for t in registry.session.terminals] == ["Alex", "Dana"]
assert len(registry.sessions) == 2
@@ -450,10 +450,10 @@ async def test_restoring_another_folder_opens_it_beside_the_running_one(
async def test_opening_a_workspace_makes_it_resumable(
registry: ide.Registry, tmp_path: Path
) -> None:
- await registry.start(str(tmp_path), [{"agent": "claude", "name": "Mika"}])
+ await registry.start(str(tmp_path), [{"agent": "claude", "name": "Alex"}])
saved = resume_store.load()
assert saved is not None
- assert [t.name for t in saved.terminals] == ["Mika"]
+ assert [t.name for t in saved.terminals] == ["Alex"]
assert saved.folder == str(tmp_path)
@@ -461,32 +461,32 @@ async def test_the_conversation_id_reaches_the_snapshot(
registry: ide.Registry, tmp_path: Path
) -> None:
"""Without this the layout would come back and the conversations would not."""
- await registry.start(str(tmp_path), [{"agent": "claude", "name": "Mika"}])
- await registry.attach("Mika", 80, 24, _noop, _noop_exit)
+ await registry.start(str(tmp_path), [{"agent": "claude", "name": "Alex"}])
+ await registry.attach("Alex", 80, 24, _noop, _noop_exit)
saved = resume_store.load()
assert saved is not None and saved.terminals[0].resume is not None
- assert saved.terminals[0].resume.id == registry.session.find("Mika").resume.id
+ assert saved.terminals[0].resume.id == registry.session.find("Alex").resume.id
async def test_splitting_and_closing_keep_the_offer_current(
registry: ide.Registry, tmp_path: Path
) -> None:
- await registry.start(str(tmp_path), [{"agent": "claude", "name": "Mika"}])
- await registry.add_terminal(anchor="Mika", direction="right", name="Nova")
+ await registry.start(str(tmp_path), [{"agent": "claude", "name": "Alex"}])
+ await registry.add_terminal(anchor="Alex", direction="right", name="Blake")
saved = resume_store.load()
- assert saved is not None and [t.name for t in saved.terminals] == ["Mika", "Nova"]
+ assert saved is not None and [t.name for t in saved.terminals] == ["Alex", "Blake"]
- await registry.close_terminal("Nova")
+ await registry.close_terminal("Blake")
saved = resume_store.load()
- assert saved is not None and [t.name for t in saved.terminals] == ["Mika"]
+ assert saved is not None and [t.name for t in saved.terminals] == ["Alex"]
async def test_closing_the_workspace_deliberately_withdraws_the_offer(
registry: ide.Registry, tmp_path: Path
) -> None:
"""An explicit close means "I am done" — re-offering it would be noise."""
- await registry.start(str(tmp_path), [{"agent": "claude", "name": "Mika"}])
+ await registry.start(str(tmp_path), [{"agent": "claude", "name": "Alex"}])
assert resume_store.load() is not None
await registry.end()
@@ -506,8 +506,8 @@ async def test_the_offer_follows_the_workspace_on_screen(
second = tmp_path / "second"
first.mkdir()
second.mkdir()
- one = await registry.start(str(first), [{"agent": "claude", "name": "Mika"}])
- await registry.start(str(second), [{"agent": "claude", "name": "Nova"}])
+ one = await registry.start(str(first), [{"agent": "claude", "name": "Alex"}])
+ await registry.start(str(second), [{"agent": "claude", "name": "Blake"}])
saved = resume_store.load()
assert saved is not None and saved.folder == str(second)
@@ -525,8 +525,8 @@ async def test_closing_one_of_two_leaves_the_survivor_resumable(
second = tmp_path / "second"
first.mkdir()
second.mkdir()
- one = await registry.start(str(first), [{"agent": "claude", "name": "Mika"}])
- two = await registry.start(str(second), [{"agent": "claude", "name": "Nova"}])
+ one = await registry.start(str(first), [{"agent": "claude", "name": "Alex"}])
+ two = await registry.start(str(second), [{"agent": "claude", "name": "Blake"}])
await registry.end(two.id)
@@ -543,9 +543,9 @@ async def test_a_broken_snapshot_write_never_breaks_the_workspace(
monkeypatch.setattr(resume_store, "save", _boom)
workspace = await registry.start(
- str(tmp_path), [{"agent": "claude", "name": "Mika"}]
+ str(tmp_path), [{"agent": "claude", "name": "Alex"}]
)
- assert [t.name for t in workspace.terminals] == ["Mika"]
+ assert [t.name for t in workspace.terminals] == ["Alex"]
# ------------------------------------------------------------------ lookups
diff --git a/tests/unit/agentic_ide/test_resume_store.py b/tests/unit/agentic_ide/test_resume_store.py
index 6637c3774e..78dc7e7b94 100644
--- a/tests/unit/agentic_ide/test_resume_store.py
+++ b/tests/unit/agentic_ide/test_resume_store.py
@@ -27,8 +27,8 @@ def _snapshot(folder: str) -> resume_store.Snapshot:
saved_at=100.0,
terminals=[
resume_store.SnapshotTerminal(
- key="mika",
- name="Mika",
+ key="alex",
+ name="Alex",
agent="claude",
column=0,
slot=0,
@@ -38,7 +38,7 @@ def _snapshot(folder: str) -> resume_store.Snapshot:
prompts_sent=3,
),
resume_store.SnapshotTerminal(
- key="nova", name="Nova", agent="codex", column=1, slot=0
+ key="blake", name="Blake", agent="codex", column=1, slot=0
),
],
)
@@ -49,7 +49,7 @@ def test_a_saved_snapshot_comes_back_intact(tmp_path: Path) -> None:
resume_store.save(_snapshot(str(tmp_path)))
loaded = resume_store.load()
assert loaded is not None
- assert [t.name for t in loaded.terminals] == ["Mika", "Nova"]
+ assert [t.name for t in loaded.terminals] == ["Alex", "Blake"]
assert [(t.column, t.slot) for t in loaded.terminals] == [(0, 0), (1, 0)]
assert [t.agent for t in loaded.terminals] == ["claude", "codex"]
assert loaded.terminals[0].resume is not None
@@ -84,11 +84,11 @@ def test_a_pane_without_a_name_is_dropped_not_fatal(tmp_path: Path) -> None:
resume_store.save(_snapshot(str(tmp_path)))
path = resume_store._store_path()
path.write_text(
- path.read_text(encoding="utf-8").replace('"name": "Nova"', '"name": ""'),
+ path.read_text(encoding="utf-8").replace('"name": "Blake"', '"name": ""'),
encoding="utf-8",
)
loaded = resume_store.load()
- assert loaded is not None and [t.name for t in loaded.terminals] == ["Mika"]
+ assert loaded is not None and [t.name for t in loaded.terminals] == ["Alex"]
def test_a_snapshot_without_terminals_is_not_an_offer(tmp_path: Path) -> None:
@@ -200,13 +200,13 @@ def test_the_offer_reports_what_will_actually_come_back(
assert view["folder_exists"] is True
assert view["folder_name"] == tmp_path.name
panes = {p["name"]: p for p in view["terminals"]}
- # Mika has a handle and its CLI is here -> the conversation comes back.
- assert panes["Mika"]["resumable"] is True
- assert panes["Mika"]["available"] is True
- # Nova never got a handle -> the pane returns, the conversation does not.
- assert panes["Nova"]["resumable"] is False
+ # Alex has a handle and its CLI is here -> the conversation comes back.
+ assert panes["Alex"]["resumable"] is True
+ assert panes["Alex"]["available"] is True
+ # Blake never got a handle -> the pane returns, the conversation does not.
+ assert panes["Blake"]["resumable"] is False
# ...and Codex is not installed here, which the user must see beforehand.
- assert panes["Nova"]["available"] is False
+ assert panes["Blake"]["available"] is False
assert view["resumable_count"] == 1
diff --git a/tests/unit/agentic_ide/test_session.py b/tests/unit/agentic_ide/test_session.py
index ab381b3c6f..aa8b6a9b91 100644
--- a/tests/unit/agentic_ide/test_session.py
+++ b/tests/unit/agentic_ide/test_session.py
@@ -95,7 +95,7 @@ async def test_start_creates_named_terminals(registry: Registry, tmp_path: Path)
session = await _open(
registry, tmp_path, [{"agent": "claude"}, {"agent": "codex"}]
)
- assert [t.name for t in session.terminals] == ["Mika", "Nova"]
+ assert [t.name for t in session.terminals] == ["Alex", "Blake"]
assert [t.agent for t in session.terminals] == ["claude", "codex"]
assert session.folder == str(tmp_path)
@@ -164,7 +164,7 @@ async def test_opening_the_same_folder_again_switches_to_it(
reopening must not stop them to start a second set.
"""
first = await _open(registry, tmp_path, [{"agent": "claude"}])
- await registry.attach("Mika", 80, 24, _noop_output, _noop_exit)
+ await registry.attach("Alex", 80, 24, _noop_output, _noop_exit)
live_id = registry.session.terminals[0].pty_id
again = await _open(registry, tmp_path, [{"agent": "codex"}])
@@ -181,7 +181,7 @@ async def test_a_second_folder_opens_beside_the_first(
other = tmp_path / "second"
other.mkdir()
first = await _open(registry, tmp_path, [{"agent": "claude"}])
- await registry.attach("Mika", 80, 24, _noop_output, _noop_exit)
+ await registry.attach("Alex", 80, 24, _noop_output, _noop_exit)
live_id = registry.session.terminals[0].pty_id
second = await _open(registry, other, [{"agent": "claude"}])
@@ -197,7 +197,7 @@ async def test_call_signs_do_not_repeat_across_workspaces(
) -> None:
"""A name addresses exactly one pane, however many workspaces are open.
- "Tell Mika to run the tests" has to be an instruction, not a question about
+ "Tell Alex to run the tests" has to be an instruction, not a question about
which tab was meant.
"""
other = tmp_path / "second"
@@ -304,7 +304,7 @@ async def test_attach_spawns_the_agent_in_the_chosen_folder(
registry: Registry, fake_pty: FakePtyManager, tmp_path: Path
) -> None:
await _open(registry, tmp_path, [{"agent": "claude"}])
- term = await registry.attach("Mika", 100, 30, _noop_output, _noop_exit)
+ term = await registry.attach("Alex", 100, 30, _noop_output, _noop_exit)
assert term.status == "live"
spawn = fake_pty.spawns[-1]
assert spawn["cwd"] == str(tmp_path)
@@ -315,16 +315,16 @@ async def test_attach_feeds_the_transcript(
registry: Registry, fake_pty: FakePtyManager, tmp_path: Path
) -> None:
await _open(registry, tmp_path, [{"agent": "claude"}])
- await registry.attach("Mika", 80, 24, _noop_output, _noop_exit)
+ await registry.attach("Alex", 80, 24, _noop_output, _noop_exit)
on_output = fake_pty.spawns[-1]["on_output"]
await on_output("pty-id", "\x1b[32mediting main.py\x1b[0m\r\n")
- assert registry.report("Mika")["transcript"] == ["editing main.py"]
+ assert registry.report("Alex")["transcript"] == ["editing main.py"]
async def test_attach_by_spoken_phrase(registry: Registry, tmp_path: Path) -> None:
await _open(registry, tmp_path, [{"agent": "claude"}])
- term = await registry.attach("mika", 80, 24, _noop_output, _noop_exit)
- assert term.name == "Mika"
+ term = await registry.attach("alex", 80, 24, _noop_output, _noop_exit)
+ assert term.name == "Alex"
# --------------------------------------------------------------------- prompt
@@ -334,8 +334,8 @@ async def test_prompt_types_text_then_enter_separately(
"""Text and Enter go as two writes: agent TUIs debounce a single burst as a
paste and insert a line break instead of submitting."""
await _open(registry, tmp_path, [{"agent": "claude"}])
- await registry.attach("Mika", 80, 24, _noop_output, _noop_exit)
- await registry.send_prompt("Mika", "run the tests")
+ await registry.attach("Alex", 80, 24, _noop_output, _noop_exit)
+ await registry.send_prompt("Alex", "run the tests")
assert fake_pty.typed == ["run the tests", "\r"]
@@ -343,8 +343,8 @@ async def test_prompt_counts_and_remembers_the_last_one(
registry: Registry, tmp_path: Path
) -> None:
await _open(registry, tmp_path, [{"agent": "claude"}])
- await registry.attach("Mika", 80, 24, _noop_output, _noop_exit)
- await registry.send_prompt("what is mika doing", "status please")
+ await registry.attach("Alex", 80, 24, _noop_output, _noop_exit)
+ await registry.send_prompt("what is alex doing", "status please")
term = registry.session.terminals[0]
assert term.prompts_sent == 1
assert term.last_prompt == "status please"
@@ -354,7 +354,7 @@ async def test_prompt_to_an_unknown_terminal_names_the_real_ones(
registry: Registry, tmp_path: Path
) -> None:
await _open(registry, tmp_path, [{"agent": "claude"}])
- with pytest.raises(SessionError, match="Mika"):
+ with pytest.raises(SessionError, match="Alex"):
await registry.send_prompt("Gandalf", "hello")
@@ -365,21 +365,21 @@ async def test_prompt_is_refused_when_the_agent_is_not_running(
refused rather than typed into something else."""
await _open(registry, tmp_path, [{"agent": "claude"}])
with pytest.raises(SessionError, match="not running"):
- await registry.send_prompt("Mika", "run the tests")
+ await registry.send_prompt("Alex", "run the tests")
async def test_prompt_that_sanitizes_to_nothing_is_refused(
registry: Registry, tmp_path: Path
) -> None:
await _open(registry, tmp_path, [{"agent": "claude"}])
- await registry.attach("Mika", 80, 24, _noop_output, _noop_exit)
+ await registry.attach("Alex", 80, 24, _noop_output, _noop_exit)
with pytest.raises(SessionError, match="empty"):
- await registry.send_prompt("Mika", "\x03\x1b")
+ await registry.send_prompt("Alex", "\x03\x1b")
async def test_prompt_without_a_session_is_refused(registry: Registry) -> None:
with pytest.raises(SessionError, match="No Agentic-IDE session"):
- await registry.send_prompt("Mika", "hello")
+ await registry.send_prompt("Alex", "hello")
# ----------------------------------------------------------------- focus mode
@@ -403,8 +403,8 @@ async def test_end_closes_every_pty(
registry: Registry, fake_pty: FakePtyManager, tmp_path: Path
) -> None:
await _open(registry, tmp_path, [{"agent": "claude"}, {"agent": "codex"}])
- await registry.attach("Mika", 80, 24, _noop_output, _noop_exit)
- await registry.attach("Nova", 80, 24, _noop_output, _noop_exit)
+ await registry.attach("Alex", 80, 24, _noop_output, _noop_exit)
+ await registry.attach("Blake", 80, 24, _noop_output, _noop_exit)
assert await registry.end() is True
assert len(fake_pty.closed) == 2
assert registry.session is None
@@ -416,7 +416,7 @@ async def test_report_includes_status_and_folder(
registry: Registry, tmp_path: Path
) -> None:
await _open(registry, tmp_path, [{"agent": "claude"}])
- data = registry.report("Mika")
- assert data["name"] == "Mika"
+ data = registry.report("Alex")
+ assert data["name"] == "Alex"
assert data["folder"] == str(tmp_path)
assert data["status"] == "pending"
diff --git a/tests/unit/agentic_ide/test_spawn_intent.py b/tests/unit/agentic_ide/test_spawn_intent.py
index 9dc2c08cec..10694eaa1a 100644
--- a/tests/unit/agentic_ide/test_spawn_intent.py
+++ b/tests/unit/agentic_ide/test_spawn_intent.py
@@ -24,7 +24,7 @@ import pytest
from jarvis.agentic_ide import intent
from jarvis.agentic_ide.session import MAX_TERMINALS
-NAMES = ["Mika", "Nova", "Aria", "Kai"]
+NAMES = ["Alex", "Blake", "Casey", "Dana"]
@pytest.mark.parametrize(
@@ -61,17 +61,32 @@ def test_spoken_terminal_requests(utterance: str, count: int, agent: str | None)
def test_a_number_above_the_cap_is_clamped_not_refused() -> None:
- """Asking for 50 is a real request for "as many as fit", not an error.
+ """An absurd count is a mis-heard number, not an error to refuse.
The registry enforces the true cap against the panes already open; the
detector only keeps the number in a sane range so nothing downstream has to
- defend against a spoken "spawne tausend Terminals".
+ defend against a spoken "spawne tausend Terminals". Phrased against the cap
+ rather than a literal, because the cap is a runaway guard whose value moves.
"""
- found = intent.detect_spawn("Spawne 50 Terminals") # i18n-allow: spoken input under test
+ # Deliberately three digits: the detector reads at most three on purpose, so
+ # a year mentioned in passing is never taken as a pane count. A four-digit
+ # number is therefore no count at all, rather than a huge one.
+ found = intent.detect_spawn("Spawne 999 Terminals") # i18n-allow: spoken input under test
assert found is not None
assert found.count == MAX_TERMINALS
+def test_an_ordinary_large_count_is_taken_at_face_value() -> None:
+ """"as many as you want" is the point — 20 panes must not be trimmed to 12.
+
+ Guards the 2026-07-26 directive: the old cap of 12 silently rewrote what the
+ user asked for, which is worse than refusing it.
+ """
+ found = intent.detect_spawn("Spawne 20 Terminals") # i18n-allow: spoken input under test
+ assert found is not None
+ assert found.count == 20
+
+
@pytest.mark.parametrize(
"utterance",
[
@@ -84,10 +99,10 @@ def test_a_number_above_the_cap_is_clamped_not_refused() -> None:
# Questions are not commands.
"Wie viele Terminals kann ich öffnen?", # i18n-allow: spoken input under test
"How many terminals can I open?",
- "Was macht Kai im Terminal?", # i18n-allow: spoken input under test
+ "Was macht Dana im Terminal?", # i18n-allow: spoken input under test
# Talk ABOUT terminals, no request to open one.
"Die Terminals sind zu klein", # i18n-allow: spoken input under test
- "Das Terminal von Mika hängt", # i18n-allow: spoken input under test
+ "Das Terminal von Alex hängt", # i18n-allow: spoken input under test
# Too short to be anything.
"Terminal",
"",
@@ -124,8 +139,8 @@ def test_an_addressed_terminal_still_wins_over_the_spawn_grammar() -> None:
into that pane is what they asked for. Addressing is therefore checked
first, and this test is what keeps that order.
"""
- utterance = "Sag Mika, sie soll ein Terminal öffnen" # i18n-allow: spoken input under test
+ utterance = "Sag Alex, sie soll ein Terminal öffnen" # i18n-allow: spoken input under test
found = intent.detect(utterance, names=NAMES)
assert found is not None
- assert found.terminal == "Mika"
+ assert found.terminal == "Alex"
assert intent.detect_spawn(utterance, names=NAMES) is None
diff --git a/tests/unit/agentic_ide/test_transcript.py b/tests/unit/agentic_ide/test_transcript.py
index 7ec6ef9bba..0af73a367b 100644
--- a/tests/unit/agentic_ide/test_transcript.py
+++ b/tests/unit/agentic_ide/test_transcript.py
@@ -2,7 +2,7 @@
The transcript replays the stream onto a terminal screen and reads the rows off
it. Each test pins one property the Agentic IDE depends on — without them, "what
-is Mika doing?" gets answered from control codes and repainted frames.
+is Alex doing?" gets answered from control codes and repainted frames.
"""
from __future__ import annotations
diff --git a/tests/unit/brain/test_agentic_ide_spawn_fast_path.py b/tests/unit/brain/test_agentic_ide_spawn_fast_path.py
index c0b48b27f4..bdd158b709 100644
--- a/tests/unit/brain/test_agentic_ide_spawn_fast_path.py
+++ b/tests/unit/brain/test_agentic_ide_spawn_fast_path.py
@@ -230,8 +230,8 @@ async def test_no_workspace_and_no_recents_is_an_honest_refusal(
[
"Spawn a subagent that reviews the wake path",
"How many terminals can I open?",
- "What is Mika doing?",
- "Tell Mika to run the tests",
+ "What is Alex doing?",
+ "Tell Alex to run the tests",
],
)
async def test_turns_that_are_not_pane_requests_fall_through(