Don't use PTY in the display-only terminal (#39510)

This only affects `codex-acp` for now.

Not using the PTY in display-only terminals means they don't display the
login prompt (or spurious `%`s) at the end of terminal output
renderings.

Release Notes:

- N/A
This commit is contained in:
Richard Feldman
2025-10-04 04:49:33 +00:00
committed by GitHub
parent 6b980ecad3
commit 978951b79a
7 changed files with 127 additions and 51 deletions
@@ -1232,7 +1232,6 @@ impl RunningState {
terminal.read_with(cx, |terminal, _| {
terminal
.pty_info
.pid()
.map(|pid| pid.as_u32())
.context("Terminal was spawned but PID was not available")