- MCP
- show on this site's /mcp
- CLI
- abso show 285 --json
- JSON
- /christopher/abso-core/versions/285?format=json
abso news --stream (abso 690): read the ticket's expiry as the ISO time the server sends (staging 1418) as well as milliseconds. It printed 'within NaN seconds', and the stream mark that stands the hooks mod's poll down came out NaN, so the poll kept running. Found in the staging proof. Tests: client/test/news-stream.test.ts.
of shared·box-grants··Not checked
Version 284 · Files at version 285
3 files, 17 lines added, 4 removed.
--- a/client/src/api.ts
+++ b/client/src/api.ts
@@ -1003,7 +1003,7 @@
10041004
10051005 /** A ticket that opens this agent's news stream once, within a minute (abso 690; news-stream.ts). */
1006− newsTicket(): Promise<{ url: string; protocols: string[]; expiresAt: number }> {
10091009
--- a/client/src/news-stream.ts
+++ b/client/src/news-stream.ts
@@ -15,9 +15,16 @@
18− readonly expiresAt: number;
2021
22+/** A ticket's expiry in milliseconds, whichever form the server sent; now when it can't be read. */
24+ const at = typeof ticket.expiresAt === "number" ? ticket.expiresAt : Date.parse(ticket.expiresAt);
27+
2330
@@ -36,7 +43,7 @@
3643
3845export function streamText(ticket: NewsTicket, project: string, agent: string, now = Date.now()): string {
39− const seconds = Math.max(0, Math.round((ticket.expiresAt - now) / 1000));
4148 `Open this with Monitor within ${seconds} seconds (the ticket opens ${agent}'s news stream once). When the Monitor ends or the socket closes, run abso news --stream again; the new socket sends what arrived in between.`,
@@ -48,7 +55,7 @@
4855
4956/** How long --stream's mark holds: the Monitor's 30 minutes, and the minute the ticket waits to be used. */
51− return Math.max(now, ticket.expiresAt) + MONITOR_TIMEOUT_MS;
5360
--- a/client/test/news-stream.test.ts
+++ b/client/test/news-stream.test.ts
@@ -3,6 +3,7 @@
@@ -41,6 +42,11 @@
45+ // The server sends the expiry as an ISO time (staging 1418); the countdown and the stream mark read it the same.
4551
4652test("a refusal close stops --follow; any other close opens again, waiting 1 s doubling to a minute", () => {