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(server): canonicalize usage transcript sources by yashranaway · Pull Request #10317 · pingdotgg/t3code

Conversation

@yashranaway

@yashranaway yashranaway commented Sep 6, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

What Changed

Resolve existing Claude, Codex, and Grok transcript directories to their real paths before scanning and building source fingerprints. Missing or inaccessible directories keep their configured paths and existing handling.

Why

Two environments configured through different paths to the same transcript directory produce different fingerprints. A symlinked provider home makes the usage page count the same tokens and sessions twice even though the filesystem identity matches.

Testing

  • UsageService.test.ts passes, 7/7.
  • A real directory alias scanned through two service instances reproduces 10 output tokens instead of 5 before the fix; afterward the transcript and session count once.
  • Server typecheck, targeted lint, and formatting pass.

Checklist

  • One focused change
  • Explained what changed and why
  • Added regression coverage for the changed behavior
  • No UI layout or animation changes

Model: GPT-6 Astra
Harness: T3 code

Note

Canonicalize transcript directory paths via real-path resolution in UsageService.collectDirs

UsageService.collectDirs now resolves each configured transcript directory through fs.realpath before scanning, so a direct path and a directory alias (e.g. a junction) yield the same source fingerprint for usage merging. When real-path resolution fails, it falls back to the original configured path. A live test confirms that merging summaries from direct and aliased Claude transcript homes produces no duplicate token or session counts.

Macroscope summarized 6f17728.

Sorry, something went wrong.

Uh oh!

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

All reactions
@yashranaway
fix(server): canonicalize usage transcript sources
6f17728
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Sep 6, 2026
@macroscopeapp

macroscopeapp Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 6f17728

Macroscope's review found this PR approvable — This is a narrowly scoped usage-accounting bug fix that canonicalizes existing transcript directories so aliases are merged instead of double-counted. The behavior is covered by a regression test, preserves fallback handling for unavailable paths, and introduces no schema, configuration, deployment, or sensitive-area changes.

You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

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

macroscopeapp[bot]
macroscopeapp Bot approved these changes Sep 6, 2026
View reviewed changes
@yashranaway

yashranaway commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

Closing because #8470 already canonicalizes transcript directories before building usage fingerprints, covering this fix.

All reactions

Sorry, something went wrong.

Uh oh!

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

@yashranaway yashranaway closed this Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

Uh oh!

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

Assignees

No one assigned

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

1 participant

@yashranaway
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.