Center SOM's preview passed every rule in the build brief and its owner still
called it cramped and not beautiful: the text ran to the screen's edge and the
headline was a five-line search-engine title. The brief said what a preview
must get RIGHT and nothing about what makes it GOOD, and nothing ever looked
at the result.
- The brief now carries a design standard (page gutter and a readable measure,
type sizes and line height, short headlines, one spacing scale, one primary
button, real photos cropped to consistent shapes) and a last step: screenshot
every page at 390 and 1440 px with the box's headless Chromium, judge it as
the owner would, fix and look again.
- A screenshot sent in the Loki chat about a project now reaches its builder
as the image itself (staged like the session box's: the runner writes the
file, the prompt names its path). Before, the builder got only a vision
model's paraphrase, and "the text is cramped" did not survive it. The
description still serves the chat itself (choosing the project, the reply).
injectPrompt and the queue carry `attachments`; a prompt with images is
always queued for a runner (a live PTY would get unresolved placeholders),
and the hosted builder, which has no runner to write files, is told plainly
that the screenshot could not be delivered.
Claude-Session: https://claude.ai/code/session_01Y9KbVEpxKLC9nhKhpWncU1
Co-authored-by: Claude <noreply@anthropic.com>
* feat(terminal): screenshots reach the agent as images — the runner writes them, Claude opens them
From the operator: a screenshot attached in the Terminal's composer should
actually reach the agent working in it. It never did — it was "described"
by a free vision model first, and when those were rate-limited the agent got
"Could not analyze attached image(s): all vision models failed — HTTP 429"
(2026-10-05). Even when they answered, the agent read a paraphrase.
Claude Code reads an image file when the prompt names its path. So:
- lib/agent-attachments: an image gets a placeholder line in the prompt and
travels with the command (pending_commands payload `attachments`);
parseAgentImages is the runner's boundary check (uuid ids, png/jpeg/gif/
webp, size and count caps — refused whole).
- lib/agent-attachments-fs: where the agent runs (box runner, Fleet Runner,
or a local Loki), write each image to ~/.loki/attachments/<id>.<ext>
(0600, outside any checkout) and swap the placeholder for its absolute
path; a file that cannot be written becomes a sentence, never a token.
- tab-inject (Terminal composer): stageAttachmentsForAgent instead of the
vision fold; dispatch/inject carry the images.
- Runner (poller inject + dispatch, command-validator): accept and
materialize them before typing.
- Chat view: a message with a screenshot goes through the new
/api/control/chat-send (verbatim inject; the keystroke lane has no room for
a picture), replacing /api/control/fold-attachments.
Other dispatch paths (Control's orchestration run, /api/inject, feedback)
still describe images; they are not typed into a live terminal.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore(desktop): Fleet Runner 0.8.39 — screenshots reach the agent as image files
The runner now materializes attached screenshots (poller inject/dispatch),
so this change must reach machines, not only the box.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>