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
I’ll inspect the agent CLI and its tests, reproduce the Rich markup failure with an exception containing markup-like characters, then make the smallest robust output fix. I’ll run the relevant test suite and review the final diff before submitting.
- Assistant
The traceback is caused by interpolating the exception into a Rich markup string: an exception message such as a database/HTTP error can contain
[/red]or other bracket markup, causing Rich to parse the error message as formatting and fail while reporting the original error. I’ll use arich.text.Textrenderable with a red style, which treats the exception text as literal content. I’ll apply this consistently to the agent command’s exception handlers so the same secondary failure cannot affect the otherjarvis agentssubcommands. - Assistant
The change now renders error text as a styled
Textobject rather than markup. This preserves the red error appearance while making all exception contents literal, including unmatched tags, brackets, and user/database-provided text. I’ll verify the reported command path with a temporary in-memory invocation and run the existing agent CLI tests. - Assistant
The reproduction succeeds: the command exits normally and prints the literal malformed markup instead of raising
MarkupError. The existing 17 agent CLI tests pass. The test invocation unexpectedly rewroteuv.lockdue to the environment’s dependency tooling, so I’ll restore that unrelated lockfile change, perform final syntax/diff checks, and submit only the source fix.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.