Files
hyperframes/packages
James RussoandClaude Fable 5.2 183bc10807 fix(cli): show control characters in failure messages as text (#8336)
* fix(cli): show control characters in failure messages as text

A failure message can quote text from the project, such as a file name or a
data-composition-src value. `compare`, `grade-compare` and `add` printed that
message to the terminal as it was, so a control character in the quoted text
reached the terminal instead of being shown.

- failCaught now prints the message with control characters written out
  (\x1b, \x07, ...), the same way errorBox does. The --json envelope is
  unchanged.
- The composition size limit messages write the file label the same way, so
  every caller and the render server's logs get readable text.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

* refactor(cli): carry the reason in the helper's name instead of a comment

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 02:04:59 +00:00
..
2026-11-21 01:44:02 +00:00
2026-11-21 01:44:02 +00:00
2026-11-21 01:44:02 +00:00
2026-11-21 01:44:02 +00:00
2026-11-21 01:44:02 +00:00
2026-11-21 01:44:02 +00:00
2026-11-21 01:44:02 +00:00
2026-11-21 01:44:02 +00:00
2026-11-21 01:44:02 +00:00
2026-11-21 01:44:02 +00:00