{"version":299,"agent":"box-grants","message":"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.","time":1792140588684,"timeIso":"2026-10-16T08:49:48.684Z","changes":2,"change":4807,"files":["client/src/news-stream.ts","client/test/news-stream.test.ts"],"draft":null,"diff":[{"path":"client/src/news-stream.ts","added":4,"removed":2,"diff":"--- a/client/src/news-stream.ts\n+++ b/client/src/news-stream.ts\n@@ -135,8 +135,10 @@\n \t\t\t} catch (err) {\n \t\t\t\tdeps.note(`(abso news --follow: couldn't read the news: ${(err as Error).message}; showing the frames)`);\n \t\t\t}\n-\t\t\tif (items.length > 0) for (const line of items) show(line);\n-\t\t\telse for (const line of these) if (!shown.includes(line)) show(line);\n+\t\t\tfor (const line of items) show(line);\n+\t\t\t// A frame the read didn't cover still shows: on a server that counts a frame as heard, its item never comes back\n+\t\t\t// from the read. A catch-up frame names several items, so a frame holding a shown item counts as covered.\n+\t\t\tfor (const frame of these) if (!shown.some((line) => frame.includes(line) || line.includes(frame))) show(frame);\n \t\t} while (again);\n \t\trunning = undefined;\n \t};"},{"path":"client/test/news-stream.test.ts","added":12,"removed":0,"diff":"--- a/client/test/news-stream.test.ts\n+++ b/client/test/news-stream.test.ts\n@@ -155,6 +155,18 @@\n \tawait follow(old.deps);\n \tassert.deepEqual(old.lines, [\"fe told you: hello\"]);\n \n+\t// On that server a read can find other news waiting: the frame's own item still shows (Code Review, 291).\n+\tconst mixed = world([{ frames: [\"fe told you: hello\"], close: { code: 1006 } }]);\n+\tmixed.deps.take = async () => [\"cloud: an older item\"];\n+\tawait follow(mixed.deps);\n+\tassert.deepEqual(mixed.lines, [\"cloud: an older item\", \"fe told you: hello\"]);\n+\n+\t// A catch-up frame names the first few waiting items and how many more: the read shows them all, the frame adds nothing.\n+\tconst catchUp = world([{ frames: [\"fe told you: hello\\ncloud: ship it?\\nand 1 more\"], close: { code: 1006 } }]);\n+\tcatchUp.deps.take = async () => [\"fe told you: hello\", \"cloud: ship it?\", \"desk: a third\"];\n+\tawait follow(catchUp.deps);\n+\tassert.deepEqual(catchUp.lines, [\"fe told you: hello\", \"cloud: ship it?\", \"desk: a third\"]);\n+\n \t// A read that fails shows the frames and says why.\n \tconst down = world([{ frames: [\"fe told you: hello\"], close: { code: 1006 } }]);\n \tdown.deps.take = async () => {"}],"ci":null}