Files
hx/docs/adr/0031-selection-and-clipboard.md
T
johannesandClaude Sonnet 5.5 a94632ea3d chore: delete code comments, add ratchet lint and ADRs
Classify every comment as tautology, stale, excuse or decision record.
Tautology/stale/excuse comments are deleted (excuses filed as issues
#196-#236), decisions moved to docs/adr/0001-0034.

- scripts/lint-comments.sh + .comment-baseline: per-file comment count
  may only go down; wired into tests/all.sh
- .claude/skills/delete-comment: repeatable audit workflow
- cargo fmt applied to touched crates

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 13:37:32 +01:00

658 B

Mouse selection in content coordinates, capped OSC 52 copy

Status: accepted

Context

The chat scrolls and streams while the user selects. Copying goes through OSC 52, and some terminals drop payloads above a size limit.

Decision

Selection coordinates are (row, col) in the wrapped content, not on screen, so scrolling does not move a selection. The selected text is extracted from an off-screen render of the chat. OSC 52 payloads are cut to MAX_COPY bytes on a char boundary.

Consequences

Selections survive scrolling and streaming. Very large copies are silently truncated.

Code: crates/hx-tui/src/select.rs (module, MAX_COPY, truncate)