mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-10-03 17:15:19 -07:00
Two CodeRabbit findings on #1058. condenseError trimmed the input before storing it in `full`, which is documented as the untouched original and is what the Copy action hands over. The trim now applies only to the working copy used for measuring and cutting, so `full` is byte-for-byte what the server sent while `display` and `omitted` still ignore surrounding blank space. The Copy handler called navigator.clipboard.writeText with no guard. Outside a secure context the property access itself throws, and writeText rejects when permission is denied; neither was handled, so a click could become an unhandled rejection with no sign that nothing was copied. Both paths are now caught and reported, pointing at Settings -> Logs as the fallback. Not taken: aligning MIN_TO_CONDENSE with the 400-char budget. The gap is deliberate -- cutting a 450-char error to 400 saves 50 characters in a description that already scrolls, and no Copy action is needed there because `display` holds the whole message. Documented in place. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>