fix(trail): keep finding patches intact and strip escapes in plain output

main

Commit

peyton-alt6d ago

Three deliberate changes to the plain finding output agents read:

  • finding show no longer TrimSpaces a suggested patch, which dropped the leading space of a first context line and corrupted the patch.
  • Server text (bodies, titles, patches, locations, ids) is sanitized of terminal control sequences; a NO_COLOR terminal printed them raw. Clean text is unchanged.
  • finding show prints the finding's title when it has one.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com Claude-Session: https://claude.ai/code/session_01XJeHKftfKHD7hSi6ZxJww8 Entire-Checkpoint: 01M66X27WYPJJ1RJA6841DHPBA