mirror of
https://github.com/stablyai/orca.git
synced 2026-10-17 00:03:08 +00:00
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>