Files
orca/src
NeilandAnddy Sahir Agudelo 8b72336d7d fix: recover terminal WebGL atlas after corrupting text/URL pastes (#5960)
A single-line URL pasted into a TUI with bracketed-paste mode on (e.g.
Claude Code) plans to mode 'direct' with bracketed=false, so the existing
image-only WebGL atlas recovery never fired and the shared glyph atlas could
stay garbled until a manual repaint.

Recovery now keys off whether the paste reaches the TUI bracketed. The plan
carries a derived `bracketedToTerminal` flag (true when Orca brackets the
bytes, or when bracketed-paste mode wraps a direct paste), and the
menu/keyboard/context-menu/middle-click paste paths schedule recovery off it.
The image path keeps working because it is force-bracketed.

Supersedes community PR #6025, adopting its refactor and fixing the gate so it
fires for the reported repro.

Fixes #5960

Co-authored-by: Anddy Sahir Agudelo <andiagudelo@gmail.com>
2026-06-27 23:11:48 -07:00
..