From dbf7fb17e8eb14ed08213c359f718f20fb9f1e43 Mon Sep 17 00:00:00 2001 From: Olivier Date: Tue, 24 Nov 2026 08:37:33 -0600 Subject: [PATCH] 0.5.3: the one-time send of token counts leaves out a thread in an ignored folder Co-Authored-By: Claude Fable 5.2 --- AGENTS.md | 4 +++- plugins/past/.codex-plugin/plugin.json | 2 +- plugins/past/bin/past-hook.mjs | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 146bace..e205d3e 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -183,7 +183,9 @@ Use `updateState` for every change. Keep transcript hashes and pending sessions under another one, and under another project's key it would be a new paid data point; the route keeps counts for the data points the project holds and ignores every other id. `SessionStart` detaches it while the state's `counts` holds no `doneAt`. It asks with no items - first, and where the deployment has no such route it tries again a day later. + first, and where the deployment has no such route it tries again a day later. A thread + started in a folder `deny` names is left out, one sent before the folder was added included + (0.5.3; 0.5.0 to 0.5.2 sent its ids and counts). - `cut` and `status` say what travels beside the text, since that is where a person reads what leaves. `WAITER_VERSION` went to 8 with it. diff --git a/plugins/past/.codex-plugin/plugin.json b/plugins/past/.codex-plugin/plugin.json index c94f952..82bda14 100644 --- a/plugins/past/.codex-plugin/plugin.json +++ b/plugins/past/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "past", - "version": "0.5.2", + "version": "0.5.3", "description": "One memory for every teammate and every agent on a project. Your Codex sessions go in, and each prompt gets what was decided before, with dated sources.", "author": { "name": "past.dev", "url": "https://past.dev" }, "homepage": "https://github.com/pastdotdev/codex-plugin", diff --git a/plugins/past/bin/past-hook.mjs b/plugins/past/bin/past-hook.mjs index c0de174..fe0ab09 100755 --- a/plugins/past/bin/past-hook.mjs +++ b/plugins/past/bin/past-hook.mjs @@ -45,7 +45,7 @@ const MIN_SITTING_KILOBYTES = 10; const COMPACTION_RESEND_MS = 60 * 60000; const DEFAULT_API_URL = 'https://api.past.dev'; const MARKER = '=== past ยท recalled from memory ==='; -const VERSION = '0.5.2'; +const VERSION = '0.5.3'; // ---------------------------------------------------------------------------------------- Codex @@ -1576,6 +1576,8 @@ async function modeCounts(config) { for (const found of listTranscripts(true, '')) { const before = sessions[found.sessionId]; if (!before) continue; + // An ignored folder is ignored here too, for a thread sent before the folder was named in deny. + if (denied(config, found.dir)) continue; const parsed = readTranscript(found.path); if (!parsed) continue; // Cut as it was sent: a session sent whole is one data point, the others keep their pinned cut.