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 occurs when rich tries to parse markup in an exception message that likely contains brackets. I'll inspect the agents list code and reproduce the failure.
- Assistant
The MarkupError is secondary — the real failure is whatever
exccontains. I'll dig into AgentManager and related code next. - Assistant
rg is not available, let me use grep.
- Assistant
The displayed MarkupError is from unescaped exception text; I still need the underlying failure that makes
list_agentsthrow. - Assistant
Let me search for how Error is printed across CLI and also look at what might fail in list_agents when the engine is down.
- Assistant
Inspecting manager schema handling and the list_agents path more carefully.
- Assistant
Checking how agent status is set during ask and what values may end up in the DB.
- Assistant
Let me look at the ask function and also specific error that could happen. Also notice line 134:
- Assistant
There's already a use of
from rich.markup import escapein init_cmd.py. Let me look at how they use it. - Assistant
Found
needs_attentionstatus is missing from the style map — that can mark up as[]needs_attention[/]. Verifying that path. - Assistant
Need to use the venv.
- Assistant
Confirmed: empty styles produce broken markup, and printing that error then triggers MarkupError. Checking which statuses aren't mapped:
- Assistant
Position 65 matches an empty style tag from
needs_attention/budget_exceeded. Checking how ask leaves agent status: - Assistant
Tracing when end_tick runs andoce which statuses remain afterward.
- Assistant
Searching for the same status styling pattern elsewhere so we can fix it comprehensively.
- Assistant
Let me specifically search for status_style and the agent status styling:
- Assistant
Checking how rich handles unknown styles and reviewing scheduler_cmd for the same pattern:
- Assistant
Fixing empty fallback styles (same pattern as scheduler) and escaping error markup. Checking tests next:
- Assistant
Reproducing the bug, then applying the fix.
- Assistant
Reproduced the exact error. Fixing status styling and escaping error output in
agent_cmd.py. - Assistant
Adding a status helper and safe error printing, then updating
list_agents. - Assistant
Updating
list_agentsand replacing error-print call sites. - Assistant
The last edit dropped the
_get_managerdefinition — restoring it and finishing the list_agents fix. - Assistant
Replacing remaining unescaped error prints in this file.
- Assistant
I can use sed or replace --all for this.
- Assistant
Re-running the reproduction script to confirm the fix.
- Assistant
All statuses list cleanly. Running existing tests next.
- Assistant
Verifying the file is clean and correct:
- Assistant
There's an unexpected
uv.lockchange — checking whether we should revert it. - Assistant
Reviewing the final diff before submitting.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.