Skip to content

abso-core

Public

abso is version control for agents: the client, the engine and a server you can run on your own Cloudflare account.

Check passed
MCP
show on this site's /mcp
CLI
abso show 264 --json
JSON
/christopher/abso-core/versions/264?format=json

abso login says why it couldn't ask a person (abso 684): when the ask step fails (the server refuses, a limit, Issues unreachable), it prints 'Couldn't ask a person to approve this (<reason>), so here is the code.' and falls back to the code, instead of falling back silently. Found trying 684 on staging. Tests: client/test/box.test.ts, 16 pass.

of shared·approvals-page··Not checked

Version 263 · Files at version 264

2 files, 11 lines added, 2 removed.

--- a/client/src/box.ts
+++ b/client/src/box.ts
@@ -299,7 +299,15 @@
299299 if (typeof code !== "string" || typeof link !== "string" || typeof device !== "string")
300300 throw new UsageError(`${originOf(server)} didn't give a code to approve`);
301301 // The page opens with the code in it, so nobody copies a link by hand. The link and code are printed all the same.
302− const asked = io.ask ? await io.ask({ device, user: code }).catch(() => null) : null;
302+ // A failed ask falls back to the code, and says why, so a person can still approve it (abso 684).
303+ const asked = io.ask
304+ ? await io.ask({ device, user: code }).catch((e: unknown) => {
305+ io.say(
306+ `Couldn't ask a person to approve this (${e instanceof Error ? e.message : String(e)}), so here is the code.`,
307+ );
308+ return null;
309+ })
310+ : null;
303311 if (asked) {
304312 const askWord = asked.asks.length === 1 ? `ask ${asked.asks[0]}` : `asks ${asked.asks.join(", ")}`;
305313 io.say(`Asked ${asked.who} (${askWord} in ${asked.project}) to sign this box in, as at most ${asked.role}.`);
--- a/client/src/main.ts
+++ b/client/src/main.ts
@@ -1109,7 +1109,8 @@
11091109 request_url?: string;
11101110 role?: string;
11111111 };
1112− if (!asked.ok || !Array.isArray(body.people) || typeof body.request_url !== "string") return null;
1112+ if (!asked.ok || !Array.isArray(body.people) || typeof body.request_url !== "string")
1113+ throw new Error(body.error ?? `the server answered ${asked.status}`);
11131114 const expiresAt = Date.parse(body.expires_at ?? "");
11141115 const { api } = openIssues(env);
11151116 const when = new Intl.DateTimeFormat("en-US", { timeZone: "America/Chicago", hour: "numeric", minute: "2-digit" });