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.

fix(agentic-ide): expose stable chat pane identity

Ruben Lütke77607a3c3639
diff --git a/jarvis/agentic_ide/session.py b/jarvis/agentic_ide/session.py
index 4622f33862..f6685d390a 100644
--- a/jarvis/agentic_ide/session.py
+++ b/jarvis/agentic_ide/session.py
@@ -1067,6 +1067,10 @@ class Terminal:
reading = self.reading()
return {
"key": self.key,
+ # The call-sign key is reusable after a pane closes. The chat rail
+ # needs the pane lifetime to keep arrival order honest across a
+ # workspace remount and to put a replacement T1 at the bottom.
+ "history_id": self.history_id,
"name": self.name,
"agent": self.agent,
"display_name": self.display_name,
diff --git a/tests/unit/agentic_ide/test_prompt_receipt.py b/tests/unit/agentic_ide/test_prompt_receipt.py
index 15cda09923..6021c6f791 100644
--- a/tests/unit/agentic_ide/test_prompt_receipt.py
+++ b/tests/unit/agentic_ide/test_prompt_receipt.py
@@ -38,8 +38,10 @@ def test_a_pane_that_was_never_prompted_says_so() -> None:
term = pane()
assert term.last_prompt_at is None
- assert term.to_dict()["last_prompt_at"] is None
- assert term.to_dict()["last_prompt_chars"] == 0
+ state = term.to_dict()
+ assert state["last_prompt_at"] is None
+ assert state["last_prompt_chars"] == 0
+ assert state["history_id"] == term.history_id
def test_the_state_carries_when_a_prompt_arrived_and_how_long_it_was() -> None: