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
Let me look at the failing code path — both the rich markup crash and what actually raises during
agents list. - Assistant
No crash there, but the
[pending]text is silently swallowed — also worth fixing. Now the edits: - Assistant
Now add an explanatory comment at the
listcommand's handler (the one from the traceback), and escape the user-controlled agent name in the table: - Assistant
Now escape the remaining user/model-controlled interpolations in markup contexts throughout the file:
- Assistant
The crash is fixed. Also verify the happy path still renders — including an agent name containing bracket text:
- Assistant
Both paths work. Now run the existing test suite for this area plus lint:
- Assistant
There is a
tests/cli/test_agent_cmd.py— let me see its style and add a regression test: - Assistant
Done. All 20 tests in pass, lint and format are clean, and the full + suites show only the failures that already exist on clean (verified via a baseline worktree). The large diff predates this session and I left it untouched.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.