{"version":24,"agent":"pinch","message":"abso issue N lists an SVG attachment's own file. A server that takes SVG attachments draws each one as a PNG, and keeps the SVG only as a download. The issue page now shows that download under the image: 'drawn from \"logo.svg\", 512 B, <link>/source'. The --attach help says svg is taken, up to 1 MB, on servers that take it.","time":1791530831111,"timeIso":"2026-10-09T07:27:11.111Z","changes":4,"change":263,"files":["client/src/issues-wire.ts","client/src/issues.ts","client/src/main.ts","client/test/attach.test.ts"],"draft":null,"diff":[{"path":"client/src/issues-wire.ts","added":2,"removed":0,"diff":"--- a/client/src/issues-wire.ts\n+++ b/client/src/issues-wire.ts\n@@ -56,6 +56,8 @@\n \tname: string;\n \ttype: string;\n \tsize: number;\n+\t/** The SVG an image was drawn from, when it was one: the server serves the image as a PNG, and this only as a download at attachments/<id>/source. */\n+\tsource?: { name: string; size: number };\n }\n \n export interface Ask {"},{"path":"client/src/issues.ts","added":9,"removed":3,"diff":"--- a/client/src/issues.ts\n+++ b/client/src/issues.ts\n@@ -160,9 +160,15 @@\n \tfiles: readonly Attachment[] | undefined,\n \tindent: string,\n ): string[] {\n-\treturn (files ?? []).map(\n-\t\t(a) => `${indent}attached ${a.id}: ${q(a.name)}, ${sizeText(a.size)}${api ? `, ${api.attachmentUrl(a.id)}` : \"\"}`,\n-\t);\n+\treturn (files ?? []).flatMap((a) => [\n+\t\t`${indent}attached ${a.id}: ${q(a.name)}, ${sizeText(a.size)}${api ? `, ${api.attachmentUrl(a.id)}` : \"\"}`,\n+\t\t// An SVG is shown as the PNG drawn from it; its own file is a download beside it.\n+\t\t...(a.source\n+\t\t\t? [\n+\t\t\t\t\t`${indent}  drawn from ${q(a.source.name)}, ${sizeText(a.source.size)}${api ? `, ${api.attachmentUrl(a.id)}/source` : \"\"}`,\n+\t\t\t\t]\n+\t\t\t: []),\n+\t]);\n }\n \n /** An issue's page, as text. */"},{"path":"client/src/main.ts","added":1,"removed":1,"diff":"--- a/client/src/main.ts\n+++ b/client/src/main.ts\n@@ -394,7 +394,7 @@\n \t\tusage:\n \t\t\t'abso issue <N> --copy-to <project> [--clean <file>] [--dry-run] | abso issue <N> [--comment \"...\" [--attach <file,file>] | --object \"...\" | --drop | --reopen | --done [--done-by <version>]] | abso issue <N> [--title \"...\"] [--description \"...\"] [--parent <N|none>] [--agent <agent|none>] [--blocked-by <N,N|none>] [--label <l,l>] [--unlabel <l,l>] [--notify <who,who> | --quiet] | abso issue new \"<title>\" [--description \"...\"] [--parent <N>] [--lines <file>:<from>-<to>@<version>] [--agent <agent>] [--blocked-by <N,N>] [--notify <who,who>] [--label <l,l>] [--attach <file,file>]',\n \t\tabout:\n-\t\t\t\"One issue: its description, Agent, Blocked by, labels, asks, comments, edits, sub-issues and watchers. --comment comments on it and --object objects; its agents hear either. --drop drops it. --reopen opens a dropped issue again. --done marks it done by hand, and --done-by <version> names the published version that did it. publish --done still marks it done too. --title, --description, --parent, --agent and --blocked-by edit it, and the edit tells its watchers (who opened it, its Agent and agents, its Reviewer, whoever was named in Notify, and whoever commented); --notify tells more people, --quiet tells nobody. --label adds labels and --unlabel takes them off (friction, area:client: lower-case letters, digits and - _ . :); a label-only edit tells nobody unless --notify names people. An issue is Blocked until each issue it's blocked by is Done. abso issue new opens one; --lines ties it to lines at a version of shared, --agent says who it's for, --notify tells people now, and --label labels it. --attach shot.png,after.png puts images on a new issue or a comment (png, jpeg, gif or webp, 10 MB each; the server checks the type by the bytes and takes out metadata such as where a photo was taken), and prints each one's id for the text to point at; the issue's page lists them with a link. --copy-to <project> copies the issue into another project, with its comments, answered asks and labels, each keeping its author and time; --dry-run shows what would go and writes nothing, and --clean <file> gives cleaned texts by source id as JSON ({title, description, comments: [{id, text}], asks: [{id, question, answer}]}; a comment left out of a given list isn't copied). Copying out of a project on a live server takes an owner of that project. abso issue draft \\\"<title>\\\" [the same fields] saves a draft instead: yours alone, with no number and no news; abso issue draft <D> [fields] changes it, --open opens it as an issue, --delete deletes it.\",\n+\t\t\t\"One issue: its description, Agent, Blocked by, labels, asks, comments, edits, sub-issues and watchers. --comment comments on it and --object objects; its agents hear either. --drop drops it. --reopen opens a dropped issue again. --done marks it done by hand, and --done-by <version> names the published version that did it. publish --done still marks it done too. --title, --description, --parent, --agent and --blocked-by edit it, and the edit tells its watchers (who opened it, its Agent and agents, its Reviewer, whoever was named in Notify, and whoever commented); --notify tells more people, --quiet tells nobody. --label adds labels and --unlabel takes them off (friction, area:client: lower-case letters, digits and - _ . :); a label-only edit tells nobody unless --notify names people. An issue is Blocked until each issue it's blocked by is Done. abso issue new opens one; --lines ties it to lines at a version of shared, --agent says who it's for, --notify tells people now, and --label labels it. --attach shot.png,after.png puts images on a new issue or a comment (png, jpeg, gif or webp, 10 MB each; the server checks the type by the bytes and takes out metadata such as where a photo was taken. An svg, up to 1 MB, is drawn as a png, and its own file is kept as a download, on servers that take svg), and prints each one's id for the text to point at; the issue's page lists them with a link. --copy-to <project> copies the issue into another project, with its comments, answered asks and labels, each keeping its author and time; --dry-run shows what would go and writes nothing, and --clean <file> gives cleaned texts by source id as JSON ({title, description, comments: [{id, text}], asks: [{id, question, answer}]}; a comment left out of a given list isn't copied). Copying out of a project on a live server takes an owner of that project. abso issue draft \\\"<title>\\\" [the same fields] saves a draft instead: yours alone, with no number and no news; abso issue draft <D> [fields] changes it, --open opens it as an issue, --delete deletes it.\",\n \t\trun: runIssue,\n \t},\n \task: {"},{"path":"client/test/attach.test.ts","added":15,"removed":1,"diff":"--- a/client/test/attach.test.ts\n+++ b/client/test/attach.test.ts\n@@ -171,7 +171,16 @@\n \t\t\t\t\tkind: \"comment\",\n \t\t\t\t\ttext: \"same here\",\n \t\t\t\t\tat: 0,\n-\t\t\t\t\tattachments: [{ id: \"a00000000000f\", name: \"mine.png\", type: \"image/png\", size: 3 * 1024 * 1024 }],\n+\t\t\t\t\tattachments: [\n+\t\t\t\t\t\t{ id: \"a00000000000f\", name: \"mine.png\", type: \"image/png\", size: 3 * 1024 * 1024 },\n+\t\t\t\t\t\t{\n+\t\t\t\t\t\t\tid: \"a0000000000aa\",\n+\t\t\t\t\t\t\tname: \"logo.png\",\n+\t\t\t\t\t\t\ttype: \"image/png\",\n+\t\t\t\t\t\t\tsize: 4096,\n+\t\t\t\t\t\t\tsource: { name: \"logo.svg\", size: 512 },\n+\t\t\t\t\t\t},\n+\t\t\t\t\t],\n \t\t\t\t},\n \t\t\t],\n \t\t\tedits: [],\n@@ -187,5 +196,10 @@\n \t\t\t/attached a0123456789ab: \"shot.png\", 2 KB, https:\\/\\/issues.example\\/p\\/x\\/attachments\\/a0123456789ab/,\n \t\t);\n \t\tassert.match(text, /\\n {4}attached a00000000000f: \"mine.png\", 3.0 MB/);\n+\t\t// An SVG is listed as its PNG, with its own file as a download beside it.\n+\t\tassert.match(\n+\t\t\ttext,\n+\t\t\t/\\n {4}attached a0000000000aa: \"logo.png\", 4 KB, \\S+\\/a0000000000aa\\n {6}drawn from \"logo.svg\", 512 B, https:\\/\\/issues.example\\/p\\/x\\/attachments\\/a0000000000aa\\/source/,\n+\t\t);\n \t});\n });"}],"ci":null}