Files
hermes-agent/tests/hermes_cli
Teknium c905fad241 test(pty): pin the 1:1 marker discard when the disconnect cancels mid-close
2c76125128 moved the legacy PTY path's marker discard into a finally so a
handler cancelled while `bridge.close` is still running in a worker thread
drops it. It shipped without a regression test; the existing disconnect
test only hit that timing intermittently on CI.

The new test makes `bridge.close` slow, waits until it has started, then
leaves the client context (which cancels the handler there) and checks the
marker goes. It fails on the pre-2c76125128f handler and passes on main.
2026-10-06 21:43:55 -07:00
..