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
Now let me review the diff for correctness — especially import placement in files where rich imports might be inside functions:
- Assistant
11 lines are now too long. I'll wrap each:
- Assistant
Some failures touch
ask.py, which I modified. Let me check if they pre-exist: - Assistant
All changes are restored. Now let me add a regression test to the existing agent_cmd test file:
- Assistant
Final verification — full CLI suite to confirm no new failures beyond the 14 pre-existing ones:
- Assistant
Done. Same 14 pre-existing failures (memory/telemetry/doctor — missing optional deps, verified identical on the unmodified tree), 405 passing including the 2 new regression tests.
Summary
Root cause: Every CLI error handler did
console.print(f"[red]Error: {exc}[/red]"), interpolating the raw exception message into a Rich markup string. When the underlying exception's text contains square brackets — e.g.[Errno 111] Connection refusedfrom the unreachable Ollama runner in your repro — Rich's markup parser raisesMarkupError: closing tag '[/red]' ... doesn't match any open tag, replacing the real (and often transient) error with the traceback you saw.Fix: wrap the exception text in before styling:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.