Repository navigation
test: wait for remote terminal grid convergence after reveal - #23738
Conversation
|
| paneGrid, | ||
| ptyGrid: readPtyGridFromContent(sink), | ||
| ptyGrid, |
There was a problem hiding this comment.
The poll stops at the first matching pane and host sizes, and these returned values are the same ones checked by the final assertion. If the pane resizes again after that sample—including during the later tab flip—the test can pass while the pane and host end at different sizes. Re-read both sizes for the final check.
Knowledge Base Used: Terminal runtime and interaction
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe end-to-end interactivity probe stores and logs the initial pane and PTY grids. After the live-paint and optional tab-flip checks, it polls for positive pane dimensions and matching pane and PTY rows and columns until Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to This only changes a test probe to wait for terminal grid sizes to match. It does not affect application behavior and carries no identified merge risk. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
ℹ️ No critical issues — one minor observation on a now-redundant assertion.
Reviewed changes
- Bounded grid-convergence poll in
probeInteractivity: replaces the one-shot pane-vs-PTY geometry comparison with anexpect.pollthat waits (within the existing 20s reveal budget) for the revealed client pane grid and the host fixture's lastREADY|SIZE:grid to match, requiring both to be non-null and the pane grid positive. ptyGridnow taken from the converged tick: the returnedScenarioResult.ptyGridno longer re-reads the sink after the optional flip workaround;hostReceivedInputstill readssinkdirectly, and all paint/restore assertions are unchanged.
ℹ️ Nitpicks
- The per-scenario assertion at lines 519-522 compares
result.ptyGridagainstresult.paneGrid, and both now come from the poll's successful tick, so it can no longer fail — the convergence guarantee has moved entirely into the poll. If you want the end-of-run assertion to remain an independent guard, re-read both grids after the poll; otherwise it can be dropped to avoid implying a check that is no longer load-bearing.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
Comments Outside DiffThese findings could not be posted inline.
|
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
What changed since the prior pullfrog review (2c69c7d), all in probeInteractivity:
- Diagnostics moved ahead of the poll: the pane diagnostics read, screenshot capture, and
test.info().attachnow run immediately after the initial grid sample, so they land even when convergence fails. - Tab-flip workaround moved ahead of the poll: the
if (!paintedLive)flip/re-reveal now runs before the bounded poll, so the geometry check reflects the post-workaround visible state. - Poll made soft:
expect.configure({ soft: true }).poll(...)records a mismatch instead of throwing, so the scenario report still returns and[paired-reveal]still logs; the unchanged per-scenario hard assertion keeps failing the test on a genuine mismatch.
The soft poll cleanly resolves Greptile's "timeout skips failure diagnostics" concern while keeping a real failure path, and the previously noted tautological final assertion is now moot on the failure path.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

ELI5
The remote-terminal test sometimes checked terminal dimensions while the revealed pane was still resizing. It now waits for the pane and host process to report the same positive size.
What Changed
Replace the one-shot geometry comparison with a bounded poll of the actual pane grid and the host process's latest READY/SIZE record. Keep immediate keyboard input, host receipt, live echo, hidden-resize suppression, and final exact grid assertions.
Why
Full Linux run 36497243185 restored and echoed input in all three scenarios, but sampled the cold-parked pane at 75×60 while the host reported 37×46. The test claimed to check convergence without waiting for it. This uses the existing 20-second reveal budget and observes both endpoints instead of adding a sleep or increasing timeouts.
Linked Issue
CI failure in https://github.com/stablyai/orca/actions/runs/36497243185
Visual Proof
N/A — test synchronization only; no application behavior changes.
Testing
terminal-geometry.visible-convergence; gate:runtime.streaming-subscription-close-delivery(experimental).Review
Exact identity, live input, and paint assertions retained. Persistent geometry mismatches still fail.
Agent skill upstream boundary
Checklist