Files
Adrià Arrufat be4feb3488 agent: draw a REPL /screenshot in terminals that speak kitty graphics
A /screenshot without a path had nowhere to go in the REPL: the image
went to the model when one was attached and was refused otherwise.
Probe the terminal once (graphics query followed by Device Attributes,
which every terminal answers and so bounds the reply) and, when it
speaks the kitty protocol, transmit the PNG it already produces, scaled
by the terminal into the window's width and a screenful of rows. The
tool is only asked for an image when the terminal or a model can take
it, so an unsupported terminal keeps the tool's own refusal; when the
model alone took it, the outcome line says so. The PNG is rendered once
and shared between the terminal and the conversation.

The raw-mode and window-size helpers the picker and spinner carried
move to tty.zig so the probe doesn't grow a third copy.
2026-08-28 07:35:28 +08:00
..
2026-08-25 17:02:56 +08:00
2026-08-19 21:49:02 +08:00
2026-08-22 07:04:58 +08:00
2026-08-19 21:49:02 +08:00
2026-07-30 13:02:13 +08:00
2026-07-22 13:26:03 +08:00
2026-07-28 09:39:02 +08:00
2026-07-22 13:26:03 +08:00
2026-07-30 13:02:13 +08:00
2026-08-27 17:25:42 +08:00
2026-07-22 13:26:03 +08:00
2026-07-22 13:26:03 +08:00
2026-08-20 16:03:42 +08:00
2026-07-22 13:26:03 +08:00
2026-07-22 13:26:03 +08:00
2026-08-22 07:04:58 +08:00