test(terminal): assert bounded probe during stalled reveal

Add assertion to verify that a stalled reveal operation makes exactly one
`getMainBufferSnapshot` call, ensuring retry logic doesn't introduce
redundant probes that would extend the timeout window before relay fallback.
This commit is contained in:
Jinjing
2026-07-28 13:21:55 -07:00
parent 667f4748ff
commit 82bdec1373
@@ -19898,6 +19898,9 @@ describe('connectPanePty', () => {
await flushAsyncTicks(20)
expect(writes).toContain('relay-fallback-output')
// Why: a stalled reveal must cost exactly one bounded probe — a re-probe
// would buy a second timeout window before the relay paint.
expect(window.api.pty.getMainBufferSnapshot).toHaveBeenCalledTimes(1)
})
it('does not auto-reconnect after a user cancels deferred SSH passphrase auth', async () => {