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 299 --json
JSON
/christopher/abso-core/versions/299?format=json

abso news --follow (abso 690): a frame the read didn't cover still prints. On a server that counts a frame as heard, its item never comes back from the read, so when the read found other news the frame was dropped (Code Review on 291, Low). A catch-up frame naming several items counts as covered when it holds a printed item. Tests: client/test/news-stream.test.ts.

of shared·box-grants··Not checked

Version 298 · Files at version 299

2 files, 16 lines added, 2 removed.

--- a/client/src/news-stream.ts
+++ b/client/src/news-stream.ts
@@ -135,8 +135,10 @@
135135 } catch (err) {
136136 deps.note(`(abso news --follow: couldn't read the news: ${(err as Error).message}; showing the frames)`);
137137 }
138− if (items.length > 0) for (const line of items) show(line);
139− else for (const line of these) if (!shown.includes(line)) show(line);
138+ for (const line of items) show(line);
139+ // A frame the read didn't cover still shows: on a server that counts a frame as heard, its item never comes back
140+ // from the read. A catch-up frame names several items, so a frame holding a shown item counts as covered.
141+ for (const frame of these) if (!shown.some((line) => frame.includes(line) || line.includes(frame))) show(frame);
140142 } while (again);
141143 running = undefined;
142144 };
--- a/client/test/news-stream.test.ts
+++ b/client/test/news-stream.test.ts
@@ -155,6 +155,18 @@
155155 await follow(old.deps);
156156 assert.deepEqual(old.lines, ["fe told you: hello"]);
157157
158+ // On that server a read can find other news waiting: the frame's own item still shows (Code Review, 291).
159+ const mixed = world([{ frames: ["fe told you: hello"], close: { code: 1006 } }]);
160+ mixed.deps.take = async () => ["cloud: an older item"];
161+ await follow(mixed.deps);
162+ assert.deepEqual(mixed.lines, ["cloud: an older item", "fe told you: hello"]);
164+ // A catch-up frame names the first few waiting items and how many more: the read shows them all, the frame adds nothing.
165+ const catchUp = world([{ frames: ["fe told you: hello\ncloud: ship it?\nand 1 more"], close: { code: 1006 } }]);
166+ catchUp.deps.take = async () => ["fe told you: hello", "cloud: ship it?", "desk: a third"];
167+ await follow(catchUp.deps);
168+ assert.deepEqual(catchUp.lines, ["fe told you: hello", "cloud: ship it?", "desk: a third"]);
158170 // A read that fails shows the frames and says why.
159171 const down = world([{ frames: ["fe told you: hello"], close: { code: 1006 } }]);
160172 down.deps.take = async () => {