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

Versions 271 to 272

Compare

+17 −3 in 3 places
Lines 89–103 at 272 (were 89–96 at 271)
8989let draining = false;
9090const TICK_MS = 150;
9191const roots = new Map<string, { root: string | undefined; at: number }>();
92−/** How often to ask for news without an edit (announcements reach an agent that isn't editing). */
93−const NEWS_POLL_MS = 30_000;
92+/**
93+ * How often to ask for news without an edit (announcements reach an agent that isn't editing). Every 5 minutes, and
94+ * not at all in a chat that has made no tool call for IDLE_MS: prod abso's object reset under the load of every chat
95+ * asking every 30 seconds (2026-10-15). abso news --stream (abso 690) wakes a chat without asking.
96+ */
97+const NEWS_POLL_MS = 5 * 60_000;
98+const IDLE_MS = 10 * 60_000;
99+/** When this chat last made a tool call (or started). */
100+let activeAt = 0;
94101/** The abso folder this chat works in: the session's folder, or the first edited file's. */
95102let newsRoot: string | undefined;
96103let polling = false;
Lines 115–124 at 272 (were 108–115 at 271)
108115 });
109116 // Outside an abso folder each tick only reads a variable.
110117 newsRoot = await findRoot($, `${slash(await $.session.cwd())}/.`).catch(() => undefined);
111− $.clock.every(NEWS_POLL_MS, () => {
118+ activeAt = await $.clock.now();
119+ $.clock.every(NEWS_POLL_MS, async () => {
112120 if (polling || newsRoot === undefined) return;
121+ if ((await $.clock.now()) - activeAt >= IDLE_MS) return;
113122 polling = true;
114123 void pollNews($, newsRoot).finally(() => {
115124 polling = false;
Lines 127–137 at 272 (were 118–123 at 271)
118127 return next(e);
119128 });
120129
130+ on("tool.call", async ($, e, next) => {
131+ activeAt = await $.clock.now();
132+ return next(e);
133+ });
121135 on("tool.call", { tool: TOOLS }, async ($, e, next) => {
122136 const ran = await next(e);
123137 try {
MCP
compare on this site's /mcp
CLI
abso diff 271 272 client/hooks/register.ts --json
JSON
/christopher/abso-core/compare/271..272?file=client%2Fhooks%2Fregister.ts&format=json