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:
Eric Traut
2026-11-25 01:59:00 +00:00
committed by copyberry
parent bede3b5df8
commit 21fdf0f834
10 changed files with 96 additions and 79 deletions
+1 -1
View File
@@ -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