fix(tui/clipboard): enable PNG encoder so raw image clipboard paste saves to temp .png

Clipboard reading uses arboard -> RGBA -> image::write_to(ImageFormat::Png), but the
 crate disabled default features on  and only enabled .
This meant encoding PNG failed at runtime and the paste path returned Err,
so pasting raw image data appeared to do nothing.

Enable the  feature on  for the TUI crate so we can encode the
clipboard image to PNG, insert the temp path, and flash the footer notice as intended.
This commit is contained in:
James Peter
2025-09-01 18:24:23 +10:00
parent 74427d4123
commit d4287d2fbc
+1 -1
View File
@@ -41,7 +41,7 @@ codex-protocol = { path = "../protocol" }
color-eyre = "0.6.3"
crossterm = { version = "0.28.1", features = ["bracketed-paste"] }
diffy = "0.4.2"
image = { version = "^0.25.6", default-features = false, features = ["jpeg"] }
image = { version = "^0.25.6", default-features = false, features = ["jpeg", "png"] }
lazy_static = "1"
libc = "0.2"
mcp-types = { path = "../mcp-types" }