jarvis agents list Traceback Description Learning OpenJarvis on a Windows machine with…
- User
jarvis agents list Traceback
Description
Learning OpenJarvis on a Windows machine with WSL2. I was wondering what would happen on a clean reboot and listed the agents. This worked the first two times and listed the "... My Assistant │ deep_research ...". I even used the ID to ask it questions which worked (jarvis agents ask b0e6dece007b "How can I contribute to the OpenJarvis Project"). I had not loaded the model (Gemma 4 31b) into Ollama (this was direct from an open WSL Ubuntu window). My alias for jarvis is jarvis() { cd "@" }
- Assistant
Investigating the
jarvis agents listfailure: the traceback points to Rich markup breaking when printing an exception. I'll trace the list command and the underlying error. - Assistant
Reproducing the Rich markup issue to confirm the root cause.
- Assistant
Identified the bug: unknown agent statuses like
needs_attentionandbudget_exceededproduce invalid Rich markup ([]status[/]), and the error handler then fails when printing that MarkupError. Fixing both issues. - Assistant
Fixed. This was a two-layer bug in
jarvis agents list.Root cause
After
jarvis agents ask, the agent can end up in statuses likeneeds_attentionorbudget_exceeded(e.g. after escalation or budget limits). The list command only styled a subset of statuses (idle,running,paused,error,archived). For anything else it built invalid Rich markup:[]needs_attention[/]That raises a
MarkupErrorwhen rendering the table.Why you saw a confusing traceback
The exception handler tried to print that error with:
console.print(f"[red]Error: {exc}[/red]")The exception message itself contained
[/], which broke Rich markup again — producing the exact error you saw:MarkupError: closing tag '[/red]' at position 65 doesn't match any open tag
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.