mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:50:52 +00:00
Centralize TUI image capability checks (#63801)
## What changed Reuse shared terminal session detection and tmux passthrough escaping for image commands. Drive image rendering with explicit checks for fullscreen virtual placement, pixel data retention after placement removal, and whether a protocol's images survive history insertion. ## Testing Extend the automatic pet image protocol test to check that either `TMUX` or `TMUX_PANE` alone requires virtual placement. GitOrigin-RevId: 5d85e09bd9d1dcdfd01588adc8c2f0f4c6019ea1
This commit is contained in:
@@ -143,7 +143,7 @@ impl TranscriptImage {
|
||||
} else {
|
||||
400
|
||||
};
|
||||
let max_height = if crate::tui::tmux_fullscreen_image_base().is_some() {
|
||||
let max_height = if crate::tui::fullscreen_virtual_image_base().is_some() {
|
||||
6 * cell_height
|
||||
} else {
|
||||
400
|
||||
|
||||
Reference in New Issue
Block a user