GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(server): include archived Codex sessions in usage by juliusmarminge · Pull Request #22774 · pingdotgg/t3code Conversation
|
| Row | Synthetic fixture | Before (tokens / sessions) | After (tokens / sessions) |
|---|---|---|---|
| A | active only | 120 / 1 | 120 / 1 |
| B | active + archived | 120 / 1 (archived dropped) | 480 / 2 |
| C | archived only | 0 / 0 | 360 / 1 |
| D1 | B + archived record with inconsistent totals | 120 / 1 | 480 / 2, archived source partial (1 malformed record skipped) |
| D2 | B + archived file holding truncated JSON | 120 / 1 | 480 / 2, archived source ok (1 file skipped) |
| D3 | B + unreadable archived file (chmod 000) |
120 / 1 | 480 / 2, archived source partial ("1 transcript path(s) could not be read") |
| D4 | B + unreadable archived subdirectory (chmod 000) |
120 / 1 | 480 / 2, archived source partial (same message) |
No call returned an error, and the server stayed up after every call on both sides.
Environment: fs-17, Linux 6.1.102 x64, Node v24.22.1, server started via node apps/server/src/bin.ts start (desktop bootstrap), Codex instance disabled and pointed at the fixture, HOME set to a scratch directory.
What else changed:
archived_sessions, in every row; Before reports only sessions.missing ("No transcript directory on this environment."), and totals are unchanged.partial warning on the archived source. D2 stays ok because invalid JSON lines are dropped without being counted as malformed (existing parser behavior). The locked 999-token rollout in D3 and D4 is excluded from totals.sessions source is identical on both sides in every row.GET / returns 503 because no web bundle was built.Proof audit pass 1 (Claude Opus 5.5): derived the matrix above, rows A–D4.
Evidence capture (Claude Opus 5.5): captured all 14 Before/After runs, and every one matched the expected values.
Proof audit pass 2 (Claude Opus 5.5): SUFFICIENT.
0ce8d72485..74be12a8e6 touches only the evidence scripts, and the only non-test change against main is the codexUsage.ts hunk.Main was merged in with a merge commit (0ce8d72485), with no rebase and no force-push.
Tests on the merged head: vp test run src/usage/UsageService.test.ts passed 40/40, and src/provider/Drivers/codexUsage.test.ts passed 17/17.
CI: on the previous head, Lint and Check failed. Locally, knip:check flagged the new evidence driver as an unused file. 1f7e43b7aa registers it as a knip entry; knip:check and scoped fmt/lint now pass locally. CI on 1f7e43b is pending.
Unverified rows: none from the matrix. The optional warm-scan-cache row was not captured; the PR's reproduction transcript covers it. Desktop, mobile and remote clients were not exercised; this is a server-only change with no wire changes.
Model/harness: Claude Opus 5.5 through Claude Code in T3 Code (evidence lead, auditors and capturer).
Independent review round 1 on 1f7e43b7aa (read-only, diff excluding evidence scripts and knip.jsonc):
codexUsage.ts change to be the smallest correct fix.sessions/ to archived_sessions/ is counted once (sharedSessionsAcrossFiles plus the global aggregator dedupe).archived_sessions folder reports as missing and nothing visible changes.partial handling.archived_sessions folder is resolved with realPath and deduped.apps/server/scripts/evidence/codex-archived-usage/) and its knip entry. AGENTS.md says not to commit PR-only assets. Fix: drop both and keep the uploaded evidence links.sessions/ to archived_sessions/ between two scans. Every Codex instance now reports one extra source, missing when the folder is absent.node_modules, and installing was out of scope.Fixes #7090
GitCafe: https://git.cafe/pingdotgg/t3code/issues/7090
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Synthetic fixture builder and RPC driver that boot a fresh server per row against an isolated T3 home and call server.getUsageSummary, so the same script compares archived_sessions coverage before and after the fix. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Note 🤖 GPT-6.1 Terra [1m] responding on behalf of Theo Closing in favor of the archive-accounting stack, which scans active and archived rollouts together and counts a moved cached rollout once. #21666 #21664 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[Bug]: Usage page never scans Codex archived_sessions/, so archived sessions' usage silently disappears
There was an error while loading. Please reload this page.