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): spoken filler in front of an enumeration is not the task

rubenluetke10-beep081a63361ee5
diff --git a/jarvis/agentic_ide/intent.py b/jarvis/agentic_ide/intent.py
index 789e86ec49..8fb0786cac 100644
--- a/jarvis/agentic_ide/intent.py
+++ b/jarvis/agentic_ide/intent.py
@@ -2265,7 +2265,12 @@ _TASK_AFTER_BRIEF_RE = re.compile(
r"(?:(?:sie|er|es|they|it|them(?:\s+all)?|those|" # i18n-allow: input vocab
r"each(?:\s+one|\s+of\s+them)?|all(?:\s+of\s+them)?|everyone|"
r"beiden?|allen?|cada\s+uno|todos|todas|ellos|ellas)" # i18n-allow: input vocab
- r"[\s,:]+)?",
+ r"[\s,:]+)?"
+ # Spoken filler introducing the task itself: "prompt them LIKE one fixes
+ # …", "prompte sie SO, DASS einer …". Part of the address, and the word
+ # in front of the enumerator is exactly what kept the distributive
+ # detector from seeing a clause-initial "one".
+ r"(?:(?:like|so)\b[\s,:]*(?:(?:dass|damit|that|to|que)\b\s*)?)?", # i18n-allow: input vocab
re.IGNORECASE,
)
diff --git a/tests/unit/agentic_ide/test_spawn_intent.py b/tests/unit/agentic_ide/test_spawn_intent.py
index f928804025..3d8e63a85b 100644
--- a/tests/unit/agentic_ide/test_spawn_intent.py
+++ b/tests/unit/agentic_ide/test_spawn_intent.py
@@ -944,3 +944,25 @@ def test_prompt_them_does_not_leak_the_pronoun_into_the_task() -> None:
assert instruction == "one fixes a bug on macOS and one fixes a bug on Linux"
assert intent.distributes_tasks(instruction) is True
+
+
+def test_spoken_filler_in_front_of_the_enumeration_is_not_the_task() -> None:
+ """"prompt them LIKE one fixes …" — the filler must not hide the division.
+
+ The maintainer's own phrasing (2026-08-12). "like" in front of the first
+ enumerator kept it from opening its clause, so the distributive detector
+ saw an ordinary sentence and both panes got the whole enumeration.
+ """
+ english = (
+ "spawn two new terminals and prompt them like one fixes a bug on "
+ "macOS and one fixes a bug on Linux"
+ )
+ german = (
+ "Öffne zwei Terminals und prompte sie so, dass einer den Bug auf "
+ "macOS fixt und einer den auf Linux"
+ ) # i18n-allow: spoken input under test
+
+ for utterance in (english, german):
+ instruction = intent.spawn_instruction(utterance)
+ assert not instruction.casefold().startswith(("like", "so"))
+ assert intent.distributes_tasks(instruction) is True