Skip to content

Preserve structured clipboard line breaks - #14

Merged
CamaroW merged 1 commit into
mainfrom
codex/text-capture-fidelity
Jul 21, 2026
Merged

CamaroW merged 1 commit into
mainfrom
codex/text-capture-fidelity

Conversation

@CamaroW

@CamaroW CamaroW commented Jul 21, 2026

Copy link
Copy Markdown
Owner

What changed

  • Resolve explicit Clipboard Capture from bounded plain-text plus equivalent HTML/RTF representations.
  • Keep plain characters authoritative while restoring only safe paragraph and line boundaries.
  • Preserve Markdown and TeX delimiters and leave Accessibility Selection Capture unchanged.
  • Add regression coverage and document the D-036 decision.

Why

Some rich web applications expose flattened plain clipboard text but retain useful block structure in HTML or RTF. Recall previously read only the flat string, so multiline model responses could lose their line boundaries.

Validation

  • ./scripts/test-macos.sh: 176/176 passed in the system-permission environment.
  • Gemini structured clipboard fixture coverage includes inline/display TeX and mismatch fallback.

Status

Draft because real-app acceptance remains optional and the image-notes feature will proceed independently from main.

@CamaroW
CamaroW marked this pull request as ready for review July 21, 2026 19:05
@CamaroW
CamaroW merged commit 667b045 into main Jul 21, 2026
5 checks passed
@CamaroW
CamaroW deleted the codex/text-capture-fidelity branch July 21, 2026 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant