GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(usage): include archived Codex sessions by kvnloo · Pull Request #13973 · pingdotgg/t3code

Conversation

@kvnloo

@kvnloo kvnloo commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

Problem

Codex moves archived rollouts from sessions/ to archived_sessions/, but Usage scans only sessions/. Archived interactive work therefore disappears from token and estimated-cost totals.

Fix

Keep the existing Codex account/source identity rooted at sessions/, but scan both sessions/ and archived_sessions/ from the shared Codex home resolved by resolveCodexHomeLayout.

The two physical directories intentionally remain one logical Usage source:

  • buckets retain the existing source path;
  • source/session counts stay account-level instead of splitting into an "active" and "archived" account;
  • retained scan-cache records from either directory stay attached to that source after transcript cleanup.

A focused regression creates one active and one archived rollout and verifies both contribute to one Codex source with two sessions.

Fixes #7090.

Verification

Focused regression coverage is included in UsageService.test.ts. Local execution was not available from this GitHub-only session, so this is opened as a draft for CI verification.

Model: GPT-5.6 Sol. Harness: ChatGPT.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@kvnloo
fix(usage): include archived Codex sessions
689a868
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Sep 27, 2026
@juliusmarminge ChatGPT Codex Connector

juliusmarminge commented Oct 1, 2026

Copy link
Copy Markdown
Member

Note

This comment is posted by Julius' dot

The archived-session scan regression is added, but the description explicitly says it was not run, and the current checks do not exercise UsageService. The verification rule requires observed results for the changed behavior. Run the focused active-plus-archived source test and report its command and result, then request reconsideration.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge closed this Oct 1, 2026
@maria-rcks maria-rcks mentioned this pull request Oct 4, 2026
fix(usage): include archived Codex sessions in scans #15451
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:M 30-99 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Bug]: Usage page never scans Codex archived_sessions/, so archived sessions' usage silently disappears

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@kvnloo @juliusmarminge
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.