A file an agent shows is in the chat by its kind; an edit's diff is on its approval card
CI / check (push) Canceled after 0s

A tool call's `media` with `shown` is drawn where generated media is: a
picture with its name under it, audio and video with Play, a PDF with Open
(its pages over the chat, by node id), and a 3D model, an archive, a text
file, a binary and any kind the app does not know as a row with the name,
the kind in words and the size. Every card keeps Open in Files, Download,
Share and Open with. `audio` plays as `music` does.

An approval item's `diffs` are worked out on the phone line by line
(api/Diff.kt: shared head and tail, the longest shared run in between up to
a bounded size, three lines of context) and drawn as one plain monospaced
text per file in a sideways scroller of its own, folded past twelve lines
and laid out to four hundred. The diff stands where the call's arguments
did; Allow and Deny are unchanged.

A picture in a chat now waits at the gate before it is fetched. Parsed and
not drawn: a device's files, files_writable and files_that_run_code, and
the editor's two models.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
HomerandClaude Fable 5.2 committed 2026-11-24 13:31:30 +00:00
1 parent 660ff90b3a
commit 5e5e63353a
24 files changed
+1076 -63

No files matched your search

+12
View File
@@ -447,6 +447,18 @@ STRINGS: dict[str, str] = {
"media_video": "Video",
"media_music": "Music",
"media_model": "3D model",
# A file an agent showed: what it is, in words, for every kind
"media_audio": "Audio",
"media_pdf": "PDF",
"media_archive": "Archive",
"media_text": "Text file",
"media_binary": "File",
# An edit's diff on its approval card
"diff_deleted": "Deleted",
"diff_counts": "Lines added: %1$s, removed: %2$s",
"diff_show_all": "Show all %1$s lines",
"diff_show_less": "Show less",
"diff_more": "%1$s more lines are not shown here.",
"media_gone": "That file no longer exists.",
"job_queued": "Queued",
"job_running": "Running",