ISSUE DESCRIPTION jarvis agents list Traceback Description Learning OpenJarvis on a…
- User
ISSUE DESCRIPTION
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 error is a Rich markup parsing failure when printing an exception that likely contains brackets. I'll inspect the agents list code and reproduce the failure path.
- Assistant
The print path is clear; next I’ll find the underlying exception and where similar unsafe markup formatting is used.
- Assistant
I’ll check AgentManager and any tests related to this list path for the real failing exception.
- Assistant
I'll look at how error printing is handled elsewhere and what the underlying list failure might be.
- Assistant
Let me look at the test_agent_cmd.py and also try to reproduce the MarkupError.
- Assistant
I'll inspect the list path more carefully and test which exception messages trigger Rich markup errors.
- Assistant
Need to use the venv
- Assistant
Empty status styles look like a prime suspect — I'll check that path and whether
needs_attentionis involved. - Assistant
Exact MarkupError reproduced — empty status styles for
needs_attentionare the cause. Checking how other UIs style those statuses next. - Assistant
I'll check other status-style maps and frontend colors so the fix stays consistent.
- Assistant
Verifying Rich multi-word style closing tags, then applying the fix.
- Assistant
I'll fix missing status styles and escape exception text so Rich markup doesn't crash.
- Assistant
Applying the status-style fix and escaping exception messages in the error printer.
- Assistant
Now update the list_agents function to use _STATUS_STYLES and escape exceptions.
- Assistant
Reproducing the reported failure and verifying the fix with a temporary script.
- Assistant
Original bug matches the traceback exactly. Fixing the CLI test mock next.
- Assistant
mix_stderr might not exist in this click version. Let me simplify.
- Assistant
List works with all statuses (table truncation caused the assertion false-negative). Running existing agent CLI tests next.
- Assistant
All tests passed. Doing a final review of the diff, then submitting.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.