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
The traceback points to Rich markup breaking when printing the real error — I'll trace
agents listand how exceptions are rendered. - Assistant
Reproducing the Rich markup issue with an empty
status_style: - Assistant
Identified the bug: unknown agent statuses produce invalid Rich markup (
[]status[/]), and the error handler then crashes when printing that MarkupError. Implementing the fix. - Assistant
The tests pass functionally; I'll tighten assertions for Rich's column truncation and verify the config path is picked up correctly.
- Assistant
This was a real bug with two layers — the traceback you saw was masking the original failure.
Root cause
jarvis agents liststyles the status column with Rich markup. For statuses not in the hardcoded style map (idle,running,paused,error,archived), it generated invalid markup like:[]needs_attention[/]That raises a
rich.errors.MarkupError.After
jarvis agents ask, the agent status can change to values likeneeds_attentionorbudget_exceeded(e.g. on escalation or budget limits). Those weren’t in the style map, so the thirdagents listcrashed.Secondary bug
The error handler made it worse:
console.print(f"[red]Error: {exc}[/red]")When the caught exception message contained Rich-like brackets (e.g. ), printing it triggered — which is the traceback you reported.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.