core-agent-ide/codex-rs/utils/pty/src
Ahmed Ibrahim 5d9db0f995
Stabilize PTY Python REPL test (#13883)
## What changed
- The PTY Python REPL test now starts Python with a startup marker
already embedded in argv.
- The test waits for that marker in PTY output before making assertions.

## Why this fixes the flake
- The old version tried to probe the live REPL almost immediately after
spawn.
- That races PTY initialization, Python startup, and prompt buffering,
all of which vary across platforms and CI load.
- By having the child process emit a known marker as part of its own
startup path, the test gets a deterministic synchronization point that
comes from the process under test rather than from guessed timing.

## Scope
- Test-only change.
2026-03-09 10:08:36 -07:00
..
win Fix inverted Windows PTY TerminateProcess handling (#13989) 2026-03-08 11:52:16 -06:00
lib.rs utils/pty: add streaming spawn and terminal sizing primitives (#13695) 2026-03-06 15:13:12 -08:00
pipe.rs utils/pty: add streaming spawn and terminal sizing primitives (#13695) 2026-03-06 15:13:12 -08:00
process.rs utils/pty: add streaming spawn and terminal sizing primitives (#13695) 2026-03-06 15:13:12 -08:00
process_group.rs Process-group cleanup for stdio MCP servers to prevent orphan process storms (#10710) 2026-02-06 21:26:36 -08:00
pty.rs utils/pty: add streaming spawn and terminal sizing primitives (#13695) 2026-03-06 15:13:12 -08:00
tests.rs Stabilize PTY Python REPL test (#13883) 2026-03-09 10:08:36 -07:00