Skip to content

test(pty): answer ConPTY queries in kill probes - #219

Merged
klNuno merged 1 commit into
masterfrom
fix/conpty-kill-probe
Aug 27, 2026
Merged

test(pty): answer ConPTY queries in kill probes#219
klNuno merged 1 commit into
masterfrom
fix/conpty-kill-probe

Conversation

@klNuno

@klNuno klNuno commented Aug 27, 2026

Copy link
Copy Markdown
Member

the kill tests panic on Windows CI when ConPTY's [6n is never answered. exit_hook_probe now drives the same DSR/DA set as TerminalQueries in src/lib/features/fastpick/install-output.ts, retries a failed try_send, waits 15s, and dumps the buffer on timeout. one ConPTY at a time, via a mutex rather than --test-threads=1, so the rest of the crate stays parallel.

verified locally: cargo test -p boite-core --lib -- a_background_kill a_foreground_kill a_cursor_report a_dsr_split a_second_query colour_is_not device_attributes the_wrapped_command -- --test-threads=8 (8 passed) and cargo clippy -p boite-core --all-targets -- -D warnings.

the probe used to mark a DSR answered then drop a failed try_send, so Windows CI panicked before the child printed ready. retry the write, answer DA too, one ConPTY at a time.
@klNuno
klNuno merged commit f1879e0 into master Aug 27, 2026
6 checks passed
@klNuno
klNuno deleted the fix/conpty-kill-probe branch August 27, 2026 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant