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 error. I'll trace that path and find the underlying exception. - Assistant
Reproducing the bug: unknown agent statuses produce invalid Rich markup (
[]{status}[/]), which triggers a MarkupError that the error handler then fails to print. - Assistant
Fixing invalid Rich markup for agent statuses like
needs_attention(empty style produced[]{status}[/]) and making error printing safe when exception messages contain brackets. - Assistant
The fix works; the test only failed because Rich truncates long status values in the table column. Updating the test assertions.
- Assistant
Root cause
The traceback was a secondary failure. The real bug was in
jarvis agents listwhen an agent had a status not in the CLI’s style map.After
jarvis agents ask, a tick can leave the agent inneeds_attention,budget_exceeded, orstalled(not justidle). For unknown statuses, the code used an empty style:status_style = { "idle": "dim", ... }.get(a["status"], "") # was "" ... f"[{status_style}]{a['status']}[/{status_style}]",With
status_style="", that becomes[]{needs_attention}[/]— invalid Rich markup. Rich raisedMarkupError, and the error handler then tried to print:console.print(f"[red]Error: {exc}[/red]")The
[/]inside the exception message broke the wrapper, which produced the confusing traceback you saw.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.