mirror of
https://github.com/openai/codex.git
synced 2026-11-25 23:30:49 +00:00
## Why Rapid mouse motion can queue more drag reports than the TUI needs to resize a pane. Rebuilding sidebar document layouts at each preview width also adds work while the divider moves. ## What changed - Share drag handling between the Command Center and sidebar dividers. Let users grab either column of the Command Center gutter, keep the grab offset, and highlight the divider on hover and during a drag. - Use the release position for the final width. If focus loss interrupts a valid drag, keep the last width. When the terminal holds image pixels, show a guide and defer pane reflow until the drag ends. - Batch consecutive mouse motion reports during divider drags while preserving input order at batch boundaries. Rewrap cached sidebar document content during live previews and rebuild its layout at the final width. ## Testing Cover gutter hit testing, grab offsets, release and focus-loss behavior, drag batching at input boundaries, and document layout reuse during preview followed by a rebuild. GitOrigin-RevId: 949a805a42d269f4bac1a86ac7e4b7f8c2a4cacf