Skip to content

Fix CLI JSON output escaping - #5

Merged
GuoMonth merged 1 commit into
mainfrom
fix/cli-json-escape-investigation
Apr 14, 2026
Merged

GuoMonth merged 1 commit into
mainfrom
fix/cli-json-escape-investigation

Conversation

@GuoMonth

Copy link
Copy Markdown
Owner

Summary

  • disable HTML escaping in the shared CLI JSON encoder
  • add regression tests for angle brackets and Unicode user content
  • keep system help examples English-only

Why

Terminal JSON output should preserve placeholders like <id> and user-provided non-English text without \u003c escaping, while system-generated prompts remain English by default.

Disable HTML escaping in the shared CLI JSON encoder so angle brackets and user-provided Unicode render unchanged in terminal JSON output. Also keep system help text English-only and add regression tests for both behaviors.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@GuoMonth
GuoMonth merged commit b9991f6 into main Apr 14, 2026
2 checks passed
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.

1 participant