Repository navigation
test(runtime): verify mobile geometry through desktop restores - #29323
Conversation
…audit-runtime-construction
…ntime-construction
…test-audit-runtime-title-startup
…test-audit-chat-render-startup
…test-audit-runtime-close-startup
…at-render-startup
…at-render-startup
…st-audit-runtime-close-startup
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to
|
ELI5
Prove that taking a terminal back from a phone restores the desktop’s measured size, rather than checking an internal cache. Remove the production getter that existed only for those tests.
What Changed
Replace five getter checks with actual terminal-size restoration or retain their already stronger restoration assertions. Use distinct physical and reported sizes so controller fallback cannot hide a lost measurement. The suppression case now first activates resize suppression, then proves a new measurement survives the next phone/desktop cycle. Remove the seven-line test getter.
Keep all 87 current owner cases. Three duplicate cases were removed by an earlier merged PR; this PR removes no further case and preserves the later real mobile-floor regression repair. Two test names now describe the observable behavior. Test changes are +37/-16 lines; production changes are -7 lines.
Why
Checking the restored terminal catches the regression where users experience it and removes a test-only production method. Reusing the existing runtime suites preserves the phone, desktop and remote ownership paths without a separate test layer or new injection hook.
Linked Issue
Maintainer-requested audit of tests running on every PR.
Visual Proof
N/A — test changes and removal of a test-only getter; terminal behavior is unchanged.
Testing
c2c3516e2d2e37c796c2499f6bc54fb049c350d3: full PR workflow 38882810127 and aggregatePR checks passedjob116916876542 pass, along with separate headless/persistence and LoC checks. All five full inventories reconcile: 12,340 unique files, zero unhandled errors or omitted failures; all 87 selected cases pass. Source-qualified recent baseline→candidate module phases 20.064→21.122 s (+5.27%); displayed test duration 365→369 ms. This unpaired observation shows no speedup. The actual checkout includes unrelated newer main code; geometry owners and reviewed candidate bytes are preserved.This is stronger geometry proof and removal of a production test seam. No CI speedup is claimed.
Review
Independent preservation review approved the exact three-path +37/-23 change at the earlier refreshed head. The final main merge changes none of those three files or the input-floor owner used in the mutation controls. Existing paste-floor, remote/windowless, suppression and invalid-geometry contracts remain intact. No platform condition, SSH ownership, folder-workspace assumption or wire change is introduced.
Agent skill upstream boundary
Checklist