Files
loki/scripts/test
CatoandClaude 48dbead196 feat(previews): built to a design standard, looked at before done; chat screenshots reach the builder as images (#1309)
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>
2026-10-18 17:48:22 +02:00
..
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00
2026-08-31 09:23:30 +00:00