Skip to content

Conversation

@joshka-oai
Copy link
Collaborator

@joshka-oai joshka-oai commented Jan 21, 2026

Summary

  • Retire the experimental TUI2 implementation and its feature flag.
  • Remove TUI2-only config/schema/docs so the CLI stays on the terminal-native path.
  • Keep docs aligned with the legacy TUI while we focus on redraw-based improvements.

Customer impact

  • Retires the TUI2 experiment and keeps Codex on the proven terminal-native UI while we invest in redraw-based improvements to the existing experience.

Migration / compatibility

  • If you previously set tui2-related options in config.toml, they are now ignored and Codex continues using the existing terminal-native TUI (no action required).

Context

  • What worked: a transcript-owned viewport delivered excellent resize rewrap and high-fidelity copy (especially for code).
  • Why stop: making that experience feel fully native across the environment matrix (terminal emulator, OS, input modality, multiplexer, font/theme, alt-screen behavior) creates a combinatorial explosion of edge cases.
  • What next: we are focusing on redraw-based improvements to the existing terminal-native TUI so scrolling, selection, and copy remain native while resize/redraw correctness improves.

Testing

  • just write-config-schema
  • just fmt
  • cargo clippy --fix --all-features --tests --allow-dirty --allow-no-vcs -p codex-core
  • cargo clippy --fix --all-features --tests --allow-dirty --allow-no-vcs -p codex-cli
  • cargo check
  • cargo test -p codex-core
  • cargo test -p codex-cli

@joshka-oai joshka-oai force-pushed the joshka/retire-tui2-experiment branch 2 times, most recently from 0569d3e to 6caed6d Compare January 22, 2026 00:09
@joshka-oai joshka-oai force-pushed the joshka/retire-tui2-experiment branch 2 times, most recently from 6c2ae53 to 3e78532 Compare January 22, 2026 00:35
@joshka-oai joshka-oai enabled auto-merge (squash) January 22, 2026 00:35
TUI2 was an experiment to explore a transcript-owned viewport.
That approach delivered strong resize rewrap behavior and enabled
high-fidelity copy (especially for code).

Making an alt-screen UI feel truly native across the full
environment matrix (terminal emulators, OSes, tmux, input devices,
keyboard layouts/IME, fonts, and overlays) creates a long-tail,
combinatorial compatibility chase.

This change removes the tui2 crate, feature flag, and related docs.
The CLI stays on the proven terminal-native TUI while we focus on
redraw-based improvements and selectively backport the wins.
Drop now-unused dependencies flagged by cargo-shear after removing
tui2 (ratatui-core, tui-scrollbar, codex-utils-absolute-path).

No functional change.
@joshka-oai joshka-oai force-pushed the joshka/retire-tui2-experiment branch from 3e78532 to 270572a Compare January 22, 2026 00:52
@joshka-oai joshka-oai merged commit a489b64 into main Jan 22, 2026
30 of 32 checks passed
@joshka-oai joshka-oai deleted the joshka/retire-tui2-experiment branch January 22, 2026 01:02
@github-actions github-actions bot locked and limited conversation to collaborators Jan 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants