cli: drop attach output the snapshot already covers

The server registers a viewer before taking the attach snapshot, so a
chunk streamed meanwhile arrives after the response although the
snapshot already contains it. The GUI trims by `output_offset`; the CLI
wrote it twice. Trim the covered prefix the same way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5f869eae61Simone committed on 10/10/2026, 3:33:42 PMparent8b90b38

Checks

5 successful
All checks passed
1 file changedLine totals unavailable