Repository navigation
fix(python-cli): escape user-controlled IDs in success messages - #17343
Merged
kodjima33 merged 2 commits intoSep 23, 2026
Merged
Conversation
kodjima33
approved these changes
Sep 23, 2026
kodjima33
left a comment
Collaborator
There was a problem hiding this comment.
Confidence 5/5: scoped Rich-markup escaping fix for user-controlled resource IDs (action_item/conversation/goal/memory), dedicated regression tests, clean diff. Merging.
This was referenced Sep 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Resource IDs come straight from
typer.Argument(argv), but 10 update/delete/complete/progress success messages interpolate them raw into Rich[bold]...[/bold]markup. A markup-like ID crashes the command:``nomi memory delete 'bad[/bold]id' --yes
MarkupError: closing tag '[/bold]' ... doesn't match any open tag (exit 1)
``n
Same bug class as #15976 (screenshot path), extended to every ID-taking command in
memory, `conversation`, `goal` and `action-item`. Fix wraps all 10 argv-sourced IDs with `rich.markup.escape` (the same helper already used for profile names in `auth.py`/`config.py`/`local.py`). Server-returned IDs are untouched.Verification
tests/test_markup_id_escape.py: 10 tests (delete + update/complete/progress x 4 resources) with markup-like IDs - all 10 fail before the fix, all 10 pass after.black --checkclean on all touched files.Proposing the standard $25 bug-fix bounty via Algora.