fix(coding-agent): convert clipboard BMP images to PNG on paste

WSL2/WSLg often provides clipboard images as image/bmp only.
Previously this resulted in invalid PNG files being written.

Now readClipboardImage() converts unsupported formats to PNG
via Photon before returning.

Closes #1109

Based on #1112 by @lightningRalf
This commit is contained in:
Mario Zechner 2026-01-31 23:24:10 +01:00
parent 6f2d066342
commit 38ed9e86f8
3 changed files with 148 additions and 10 deletions

View file

@ -6,6 +6,10 @@
- Added `newSession`, `tree`, and `fork` keybinding actions for `/new`, `/tree`, and `/fork` commands. All unbound by default. ([#1114](https://github.com/badlogic/pi-mono/pull/1114) by [@juanibiapina](https://github.com/juanibiapina))
### Fixed
- Fixed clipboard image paste on WSL2/WSLg writing invalid PNG files when clipboard provides `image/bmp` format. BMP images are now converted to PNG before saving. ([#1112](https://github.com/badlogic/pi-mono/pull/1112) by [@lightningRalf](https://github.com/lightningRalf))
## [0.50.7] - 2026-01-31
### Fixed