fix: hide export row on very short replies; clarify no-scrub invariant

↗ view on GitHub · Claude · 2026-05-19 · 347a4240

- AssistantMessage: only render Copy Draft / Download Markdown /
  Download Word Draft when the assistant's prose is at least 200
  characters. Tiny conversational replies like "Done." or
  "I need more information." stay uncluttered.
- exportDraft: document explicitly that the wrapper preserves AI
  content verbatim and never scrubs or redacts. The invariant we
  guard is the inverse - nothing the wrapper adds should introduce
  credential-shaped tokens.
- exportDraft.test: add a positive test confirming that legitimate
  legal text discussing "API key" rotation or "Bearer token"
  authentication is preserved unchanged in the export.
Repository zgbrenner/gary
Author Claude <noreply@anthropic.com>
Authored
Parents b4345deb
Stats 3 files changed , +50 , -5
Part of Copy Draft / Markdown / Word export for AI outputs

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-347a4240.md from inside the repo you want the change in.

⬇ Download capture-commit-347a4240.md