Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ➖ Normal Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to
|
|
Thank you @abruption for the excellent report on #32198 and for this PR. Your diagnosis was exactly right: the settled reveal's atlas reset forced the current buffer onto the screen during a DEC 2026 synchronized update, which exposed Codex's half-built frame. We merged #32281, which builds on your approach of moving that reveal onto the sync-aware present. It also applies the same fix to the other recovery paths that forced a paint (resume, render-desync, image paste, screen-scale repair) and to the structural-replay unhide, so no reveal or recovery can publish an unfinished frame. Your commit-author credit is kept through a Co-authored-by trailer, and your CDP before/after captures are linked as the visual proof. Closing this in favour of #32281. Thanks again for the careful investigation. |
ELI5
Switching to a terminal should not briefly erase its contents while the running app is still drawing its next screen. Keep the last complete frame visible until that update is ready.
What Changed
The settled reveal callback still clears shared WebGL texture atlases, but now presents visible panes through the existing synchronized-output-aware path. Previously it forced the current buffer onto the screen, even inside a DEC 2026 synchronized update. If that buffer had been cleared but not yet repainted, the user briefly saw an empty terminal.
The registry retains its two-pass ordering (clear every eligible atlas, then present), visible-pane filtering, and disposal isolation. Other callers retain the existing forced recovery behavior. Legacy managers without a separate atlas-clear method use an ordinary refresh for this mode instead of a combined reset that would force a paint.
Why
Removing atlas invalidation could bring back stale glyphs after reveal; changing the general forced-present primitive could weaken explicit recovery. This change only makes ordinary settled reveal respect an update already in progress.
A controlled reproduction exercises the actual Orca PaneManager and renderer. It establishes this defect path, but does not prove that every flash in the original recording had the same cause: the original terminal byte stream was not retained.
Linked Issue
Fixes #32198
Visual Proof
Actual isolated Orca Electron development build, captured with Playwright CDP on macOS, WebGL enabled. Both images show the same point: the app has parsed a clear-screen inside an unfinished synchronized update and the production settled-reveal callback has run. Synthetic text only; no private user recording is uploaded.
Before — current main exposes the cleared intermediate frame:
After — the previous complete frame stays visible until the update ends:
Testing
22a95c4efewith the same E2E tests; 2/2 fail at the pixel preservation assertion. The WebGL changed-pixel ratio was approximately 8.18%.tc:web, Electron E2E build, changed-code quality, formatting, andgit diff --check: PASS.Reproduce rendered coverage with
ORCA_BACKGROUND_LAUNCH=1 pnpm exec playwright test --config tests/playwright.config.ts tests/e2e/terminal-reveal-synchronized-output.spec.ts --project electron-headless --workers 1.AI Disclosure
Codex assisted with source analysis, implementation, tests, and the issue/PR text. Human-provided observations and the private recording informed the investigation; all public screenshots use synthetic test content.
Review
Self-review and a separate agent design review checked preservation of forced recovery, shared-atlas ordering, and visibility filtering. No new platform-specific APIs, PTY input behavior, credentials, wire fields, or transport changes are introduced. Local, paired, and SSH terminal views use the shared renderer path; mixed client/server versions need no protocol negotiation. The behavior is agent-neutral and keeps the existing synchronized-output release/timeout machinery. There is no extra timer or polling loop. Git providers and integrations are unaffected. The main remaining validation limit is live remote and cross-platform coverage.
Agent skill upstream boundary
Notes
Only ordinary settled reveal opts in; explicit recovery paths continue to force presentation as before. Full repository lint/test/typecheck and cross-platform CI are not claimed as passing.
Author
X (Twitter): @abruptWave
Checklist