Skip to content

fix: escape Rich markup in workflow error output (import of github/spec-kit#3837) - #126

Open
one-kash wants to merge 1 commit into
mainfrom
import/pr-3837
Open

fix: escape Rich markup in workflow error output (import of github/spec-kit#3837)#126
one-kash wants to merge 1 commit into
mainfrom
import/pr-3837

Conversation

@one-kash

Copy link
Copy Markdown

Imported from upstream PR github#3837
Original author: @Quratulain-bilal
Original head branch: fix/workflow-escape-markup


Summary

Escape exception text with _escape_markup() to prevent Rich from interpreting square brackets as markup tags.

Changes

  • _commands.py: Added _escape_markup(str(exc)) in ValueError and Exception handlers

Escape user-controlled exception text with _escape_markup() to prevent
Rich from interpreting square brackets as markup tags, which could
corrupt output or raise MarkupError. Matches the pattern used in
workflow_resume and all other err.print() calls in this file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants