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 error-display code masking the real exception via Rich markup. I'll tracelist_agentsand fix both issues. - Assistant
Identified the root cause: unknown agent statuses (
needs_attention,budget_exceeded) produce invalid Rich markup like[]needs_attention[/], which triggers a MarkupError; the error handler then fails because the exception text contains[/red]. Implementing the fix. - Assistant
This was a Rich markup bug, not an Ollama or agent-lifecycle failure.
Root cause
After
jarvis agents ask, the agent status can change to values likeneeds_attentionorbudget_exceeded(for example on escalation or budget limits).jarvis agents liststyled status with:pythonf"[{status_style}]{a['status']}[/{status_style}]"For unknown statuses,
status_stylewas"", which produced markup like[]needs_attention[/]. Rich treated that as invalid markup and raisedMarkupError.The
exceptblock then tried to print:pythonconsole.print(f"[red]Error: {exc}[/red]")The exception message itself contained
[/red], which triggered a secondMarkupError— that’s the traceback you saw.Fix
In :
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.