- MCP
- show on this site's /mcp
- CLI
- abso show 89 --json
- JSON
- /christopher/abso-core/versions/89?format=json
abso reply N, abso ask N and abso asked name a server without ask threads instead of answering its bare 404.
of shared·pinch··Not checked
Version 88 · Files at version 89
2 files, 29 lines added, 3 removed.
--- a/client/src/api.ts
+++ b/client/src/api.ts
@@ -439,6 +439,17 @@
441441
442+ /** An ask-thread call, with a server from before ask threads named as that rather than a bare 404. */
452+
444455 q: { status?: string; agent?: string; parent?: number; open?: boolean; labels?: readonly string[] } = {},
@@ -468,12 +479,12 @@
468479
469480 /** The asks this agent sent: the open ones, then the latest answered, each with its thread. */
471− return this.#issues("GET", this.agentPath("asked"));
473484
476− return this.#issues("GET", `/ask/${id}`);
478489
479490 /** Open asks of someone (an agent, or person:<id>), soonest due first; every open ask without `of`. */
@@ -658,7 +669,7 @@
658669
659670 /** Adds to an ask's thread, as its asker or the one asked; the other side hears it, and the ask stays as it is. */
660671 reply(id: number, body: { text: string; question?: boolean }): Promise<{ ask: Ask; news?: IssueNews }> {
661− return this.#issues("POST", this.agentPath(`reply/${id}`), body);
663674
--- a/client/test/issues.test.ts
+++ b/client/test/issues.test.ts
@@ -97,6 +97,8 @@
9898 ask: { id: Number(ack[2]), by: "desk", of: ack[1], answer: null, ack: { at: Date.now(), note: "" } },
101+ if (/\/(ask|reply)\/404$/.test(req.url ?? "")) return send(404, { error: "no such issues route" });
@@ -290,6 +292,19 @@
290292 assert.equal((await main(["reply", "7"], { cwd: fay, env: ENV(), write: () => {} })).exit, 1);
292294
307+
293308 it("ask <N> reads one ask with its whole thread, oldest first, and whose turn it is", async () => {