{"version":47,"agent":"pinch","message":"abso issue: say how to read attached files before their links\n\nAn issue page lists each attachment with a link, but the link opens only for people signed in on the website; an agent that fetched it was refused and didn't know where else to look. When the issue, its comments, or its asks and answers carry files, the page now says so under the title, with the way in: \"3 files are attached below. To read them: abso issue 7 --save-attachments <folder> saves every one there, then open the files. The links are for people signed in on the website.\"\n\nThe abso skill gets the same as a line under \"Issues and asks\", in SKILL.md and in the copy the client carries. Tests in attach.test.ts cover the count across the issue, comments, questions and answers, and a page with no files saying nothing.","time":1791579053258,"timeIso":"2026-10-09T20:50:53.258Z","changes":5,"change":582,"files":["client/skills/abso/SKILL.md","client/src/issues.ts","client/src/skill.ts","client/test/attach.test.ts"],"draft":null,"diff":[{"path":"client/skills/abso/SKILL.md","added":3,"removed":0,"diff":"--- a/client/skills/abso/SKILL.md\n+++ b/client/skills/abso/SKILL.md\n@@ -44,6 +44,9 @@\n - `abso issue new \"<title>\" --description \"...\"`: open one.\n - `abso issue <N> --comment \"...\"`: comment.\n - `abso waiting --mine`, then `abso answer <ask> \"...\"`: answer what's asked of you.\n+- Images and files on an issue: `abso issue <N> --save-attachments <folder>`\n+  saves them, then read the files. Their links are for people signed in on\n+  the website, and refuse an agent's fetch.\n \n ## When unsure\n "},{"path":"client/src/issues.ts","added":11,"removed":0,"diff":"--- a/client/src/issues.ts\n+++ b/client/src/issues.ts\n@@ -259,9 +259,20 @@\n \t\t\t? `${i.closed.how === \"done\" ? \"Done\" : \"Dropped\"} by ${i.closed.by}${i.closed.version !== null ? ` in version ${i.closed.version}` : \"\"}, ${shortWhen(i.closed.at)}.`\n \t\t\t: \"\",\n \t].filter((f) => f !== \"\");\n+\t// The links below open for people signed in on the website; an agent's fetch of one is refused. Say the way in\n+\t// before the first link, so an agent reads the files instead of hunting for them.\n+\tconst files =\n+\t\t(i.attachments ?? []).length +\n+\t\tp.comments.reduce((n, c) => n + (c.attachments ?? []).length, 0) +\n+\t\tp.asks.reduce((n, a) => n + (a.attachments ?? []).length + (a.answer?.attachments ?? []).length, 0);\n \treturn [\n \t\t`Issue ${i.id}: ${q(i.title)} [${i.status}]`,\n \t\tfacts.join(\" \"),\n+\t\t...(files > 0\n+\t\t\t? [\n+\t\t\t\t\t`${files === 1 ? \"1 file is\" : `${files} files are`} attached below. To read ${files === 1 ? \"it\" : \"them\"}: abso issue ${i.id} --save-attachments <folder> saves ${files === 1 ? \"it\" : \"every one\"} there, then open the files. The links are for people signed in on the website.`,\n+\t\t\t\t]\n+\t\t\t: []),\n \t\t...(i.lines ? [`From ${i.lines.file} lines ${i.lines.from}-${i.lines.to} at version ${i.lines.version}.`] : []),\n \t\t...(i.description !== \"\" ? [\"\", ...i.description.split(\"\\n\").map((l) => `  ${l}`)] : []),\n \t\t...attachmentLines(api, i.attachments, \"  \"),"},{"path":"client/src/skill.ts","added":3,"removed":0,"diff":"--- a/client/src/skill.ts\n+++ b/client/src/skill.ts\n@@ -54,6 +54,9 @@\n - \\`abso issue new \"<title>\" --description \"...\"\\`: open one.\n - \\`abso issue <N> --comment \"...\"\\`: comment.\n - \\`abso waiting --mine\\`, then \\`abso answer <ask> \"...\"\\`: answer what's asked of you.\n+- Images and files on an issue: \\`abso issue <N> --save-attachments <folder>\\`\n+  saves them, then read the files. Their links are for people signed in on\n+  the website, and refuse an agent's fetch.\n \n ## When unsure\n "},{"path":"client/test/attach.test.ts","added":12,"removed":0,"diff":"--- a/client/test/attach.test.ts\n+++ b/client/test/attach.test.ts\n@@ -318,6 +318,17 @@\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// The way in comes before the first link, since an agent's fetch of a link is refused.\n+\t\tassert.match(\n+\t\t\ttext,\n+\t\t\t/^Issue [^\\n]*\\n[^\\n]*\\n3 files are attached below\\. To read them: abso issue \\d+ --save-attachments <folder> saves every one there, then open the files\\. The links are for people signed in on the website\\.\\n/,\n+\t\t);\n+\t\tassert.doesNotMatch(\n+\t\t\tissuePage({ ...page, issue: { ...page.issue, attachments: [] }, comments: [] } as unknown as IssuePage).join(\n+\t\t\t\t\"\\n\",\n+\t\t\t),\n+\t\t\t/--save-attachments/,\n+\t\t);\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@@ -348,6 +359,7 @@\n \t\t\t],\n \t\t} as unknown as IssuePage;\n \t\tconst asks = issuePage(asked, { attachmentUrl: (id: string) => `https://i.example/${id}` }).join(\"\\n\");\n+\t\tassert.match(asks, /\\n5 files are attached below\\./, \"an ask's question and answer files count too\");\n \t\tassert.match(\n \t\t\tasks,\n \t\t\t/ask 4: .*\"Which\\?\"\\n {4}attached a00000000000d: \"a.png\", 1 KB, https:\\/\\/i.example\\/a00000000000d\\n {4}answer: \"This\"\\n {6}attached a00000000000e: \"b.png\", 1 KB/,"}],"ci":null}