{"version":36,"agent":"pinch","message":"waiting --mine lists your publishes still in the merge queue: where each stands (being checked, or how many wait ahead of it), whether the queue is paused, and that the outcome comes as news; --json carries them as queued. A server without a queue, or one that can't be read, leaves them out rather than failing the asks.","time":1791545326646,"timeIso":"2026-10-09T11:28:46.646Z","changes":6,"change":423,"files":["client/src/issues.ts","client/src/main.ts","client/src/queue.ts","client/test/client.test.ts","client/test/queue-waiting.test.ts"],"draft":null,"diff":[{"path":"client/src/issues.ts","added":21,"removed":6,"diff":"--- a/client/src/issues.ts\n+++ b/client/src/issues.ts\n@@ -27,6 +27,7 @@\n import { fromEnv } from \"./env-names.ts\";\n import { ignoredHere } from \"./fetch.ts\";\n import { loadIgnore, relativeTo } from \"./folder.ts\";\n+import { queuedLines, standing } from \"./queue.ts\";\n import { seenText, shortWhen } from \"./times.ts\";\n \n const q = (s: string): string => JSON.stringify(s);\n@@ -698,17 +699,31 @@\n \tconst { api, config } = openIssues(env);\n \tconst mine = bool(args, \"mine\") || str(args, \"of\") === config.agent;\n \tconst of = mine ? config.agent : str(args, \"of\");\n-\tconst { asks } = mine ? await api.waitingMine() : await api.waiting(of);\n+\t// With --mine, your own publishes still in the merge queue are open work too. A server without a queue,\n+\t// or one that can't be read now, leaves them out rather than failing the asks.\n+\tconst [{ asks }, queue] = await Promise.all([\n+\t\tmine ? api.waitingMine() : api.waiting(of),\n+\t\tmine ? api.queueState().catch(() => undefined) : undefined,\n+\t]);\n+\tconst queued = queuedLines(queue, config.agent);\n+\tconst yours = (queue?.items ?? []).filter((q) => q.agent === config.agent);\n \treturn {\n-\t\ttext:\n-\t\t\tasks.length === 0\n-\t\t\t\t? `Nothing is waiting${of ? ` on ${of}` : \"\"}.`\n+\t\ttext: [\n+\t\t\t...queued,\n+\t\t\t...(asks.length === 0\n+\t\t\t\t? [queued.length > 0 ? `No open asks of ${of}.` : `Nothing is waiting${of ? ` on ${of}` : \"\"}.`]\n \t\t\t\t: [\n \t\t\t\t\t\t`${plural(asks.length, \"open ask\")}${of ? ` of ${of}` : \"\"}, soonest due first:`,\n \t\t\t\t\t\t...asks.map((a) => askLine(a, api)),\n \t\t\t\t\t\t'abso answer <ask> \"...\" answers one asked of you.',\n-\t\t\t\t\t].join(\"\\n\"),\n-\t\tjson: { asks },\n+\t\t\t\t\t]),\n+\t\t].join(\"\\n\"),\n+\t\tjson: {\n+\t\t\tasks,\n+\t\t\t...(yours.length > 0\n+\t\t\t\t? { queued: yours.map((q) => ({ id: q.id, message: q.message, standing: standing(queue!.items, q.id) })) }\n+\t\t\t\t: {}),\n+\t\t},\n \t};\n }\n "},{"path":"client/src/main.ts","added":2,"removed":1,"diff":"--- a/client/src/main.ts\n+++ b/client/src/main.ts\n@@ -455,7 +455,8 @@\n \twaiting: {\n \t\tflags: { of: \"string\", mine: \"boolean\" },\n \t\tusage: \"abso waiting [--of <agent or person:id>] [--mine]\",\n-\t\tabout: \"The open asks, soonest due first: every one, those of someone (--of), or those of you (--mine).\",\n+\t\tabout:\n+\t\t\t\"The open asks, soonest due first: every one, those of someone (--of), or those of you (--mine). --mine also lists your publishes still in the merge queue and where each stands; the outcome comes as news.\",\n \t\trun: runWaiting,\n \t},\n \tanswer: {"},{"path":"client/src/queue.ts","added":17,"removed":0,"diff":"--- a/client/src/queue.ts\n+++ b/client/src/queue.ts\n@@ -138,6 +138,23 @@\n \treturn lines;\n }\n \n+/**\n+ * What abso waiting --mine says about this agent's own publishes in the merge queue: where each stands, whether\n+ * the queue is paused, and how the outcome comes. Nothing when none of theirs waits.\n+ */\n+export function queuedLines(queue: QueueState | null | undefined, me: string): string[] {\n+\tconst items = queue?.items ?? [];\n+\tconst mine = items.filter((q) => q.agent === me);\n+\tif (mine.length === 0) return [];\n+\treturn [\n+\t\t...mine.map(\n+\t\t\t(q) => `Your publish ${q.id} (${JSON.stringify(q.message)}) is in the merge queue: ${standing(items, q.id)}.`,\n+\t\t),\n+\t\t...(queue?.paused ? [`The merge queue is paused: ${queue.paused.reason}.`] : []),\n+\t\t`${mine.length === 1 ? \"It lands or is pulled\" : \"Each lands or is pulled\"} once the project's check runs on it; the outcome comes as news, and abso unqueue takes ${mine.length === 1 ? \"it\" : \"them\"} back.`,\n+\t];\n+}\n+\n /** abso unqueue: take this agent's queued publishes back; their changes stay in the draft. */\n export async function runUnqueue(args: Parsed, env: Env): Promise<Output> {\n \tif (args.positionals.length > 0)"},{"path":"client/test/client.test.ts","added":20,"removed":0,"diff":"--- a/client/test/client.test.ts\n+++ b/client/test/client.test.ts\n@@ -2204,6 +2204,26 @@\n \t\t\t\t(await main([\"status\", \"--short\"], { cwd: folders.alice!, env: QENV, write: () => {} })).stdout,\n \t\t\t\t\"0+unpublished+queued\\n\",\n \t\t\t);\n+\t\t\t// waiting --mine lists it beside the asks (an Issues stand-in with none open).\n+\t\t\tconst stub = createHttpServer((_req, res) =>\n+\t\t\t\tres.writeHead(200, { \"content-type\": \"application/json\" }).end('{\"asks\":[]}'),\n+\t\t\t);\n+\t\t\tawait new Promise<void>((ok) => stub.listen(0, \"127.0.0.1\", ok));\n+\t\t\ttry {\n+\t\t\t\tconst issuesUrl = `http://127.0.0.1:${(stub.address() as AddressInfo).port}`;\n+\t\t\t\tconst waiting = await main([\"waiting\", \"--mine\"], {\n+\t\t\t\t\tcwd: folders.alice!,\n+\t\t\t\t\tenv: { ...QENV, AVCS_ISSUES_SERVER: issuesUrl },\n+\t\t\t\t\twrite: () => {},\n+\t\t\t\t});\n+\t\t\t\tassert.equal(waiting.exit, 0, waiting.stdout + waiting.stderr);\n+\t\t\t\tassert.match(\n+\t\t\t\t\twaiting.stdout,\n+\t\t\t\t\t/^Your publish 1 \\(\"two\"\\) is in the merge queue: [^\\n]+\\.\\nIt lands or is pulled once the project's check runs on it; the outcome comes as news, and abso unqueue takes it back\\.\\nNo open asks of alice\\.\\n$/,\n+\t\t\t\t);\n+\t\t\t} finally {\n+\t\t\t\tawait new Promise((ok) => stub.close(ok));\n+\t\t\t}\n \n \t\t\t// bob changes the same line: refused at once, naming the queued publish, not a version.\n \t\t\twrite(folders.bob!, { \"other.txt\": \"two, by bob\\n\" });"},{"path":"client/test/queue-waiting.test.ts","added":50,"removed":0,"diff":"--- /dev/null\n+++ b/client/test/queue-waiting.test.ts\n@@ -0,0 +1,50 @@\n+// What abso waiting --mine says about your own publishes in the merge queue: where each stands, a pause, and how\n+// the outcome comes. Nothing when none of yours waits.\n+\n+import assert from \"node:assert/strict\";\n+import { describe, it } from \"node:test\";\n+import type { QueueItem, QueueState } from \"../src/api.ts\";\n+import { queuedLines } from \"../src/queue.ts\";\n+\n+const item = (id: number, agent: string, checking = false): QueueItem => ({\n+\tid,\n+\tagent,\n+\tmessage: `publish ${id}`,\n+\ttime: 0,\n+\tchanges: 1,\n+\tchecking,\n+});\n+const state = (items: QueueItem[], paused: QueueState[\"paused\"] = null): QueueState =>\n+\t({ items, paused }) as unknown as QueueState;\n+\n+describe(\"waiting: your publishes in the merge queue\", () => {\n+\tit(\"says nothing when none of yours waits, or there's no queue to read\", () => {\n+\t\tassert.deepEqual(queuedLines(undefined, \"ann\"), []);\n+\t\tassert.deepEqual(queuedLines(state([]), \"ann\"), []);\n+\t\tassert.deepEqual(queuedLines(state([item(1, \"bob\")]), \"ann\"), []);\n+\t});\n+\n+\tit(\"says where yours stands, and how the outcome comes\", () => {\n+\t\tassert.deepEqual(queuedLines(state([item(1, \"bob\", true), item(2, \"ann\")]), \"ann\"), [\n+\t\t\t'Your publish 2 (\"publish 2\") is in the merge queue: waiting, 1 publish ahead of it.',\n+\t\t\t\"It lands or is pulled once the project's check runs on it; the outcome comes as news, and abso unqueue takes it back.\",\n+\t\t]);\n+\t\tassert.deepEqual(queuedLines(state([item(3, \"ann\", true), item(4, \"bob\", true), item(5, \"ann\")]), \"ann\"), [\n+\t\t\t'Your publish 3 (\"publish 3\") is in the merge queue: being checked in a batch of 2.',\n+\t\t\t'Your publish 5 (\"publish 5\") is in the merge queue: waiting, 2 publishes ahead of it.',\n+\t\t\t\"Each lands or is pulled once the project's check runs on it; the outcome comes as news, and abso unqueue takes them back.\",\n+\t\t]);\n+\t});\n+\n+\tit(\"says when the queue is paused\", () => {\n+\t\tconst paused = {\n+\t\t\treason: \"the box failed twice\",\n+\t\t\tsince: \"2026-01-01T00:00:00.000Z\",\n+\t\t\tnextTry: \"2026-01-01T00:05:00.000Z\",\n+\t\t};\n+\t\tassert.equal(\n+\t\t\tqueuedLines(state([item(1, \"ann\")], paused), \"ann\")[1],\n+\t\t\t\"The merge queue is paused: the box failed twice.\",\n+\t\t);\n+\t});\n+});"}],"ci":null}