GeezerVison is showing github.com — fix(usage): resolve account limit review findings by alexandros-lekkas · Pull Request #1 · derektrimm/t3code
Conversation
Problem
The account-limits stack still carried verified review findings that could leave Codex transcript recovery throttled after a backward clock step, decode an unread portion of a short file read, or leak a detached fiber when Claude's experimental usage request never settles. Its current service import fails the upstream Effect convention check.
Fix
- Treat a backward clock step as an expired Codex transcript-seed throttle, with regression coverage.
- Decode only the bytes returned by the Codex transcript tail read.
- Bound Claude's experimental account-usage request to three seconds, with virtual-clock coverage.
- Use the repository's namespace import convention at the AccountLimitsService boundary.
- Remove obsolete schema casts and make the newer Claude limits-array precedence explicit in its fixture.
This is stacked on pingdotgg#7133 so it can flow into Theo's pingdotgg#5739 without creating another feature implementation.
Validation
vp test run apps/server/src/usage/AccountLimitsService.test.ts apps/server/src/usage/accountLimitsNormalize.test.ts apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.test.ts apps/server/src/provider/Layers/ClaudeAdapter.test.ts apps/web/src/state/accountLimits.test.ts — 159 passing
vp run --filter t3 typecheck
- targeted
vp lint and vp fmt --check on all seven changed files
Built with GPT-5.6-Sol through the Codex harness in T3 Code.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
I also resolved the stack against current pingdotgg/main in aflekkas:merge/usage-limits-main (5af721b6f). The resolution keeps the new hourly Usage page and compact sidebar utility menu, reattaches the Limits section/hover card, refreshes usage and limits together, and adopts the current provider-presentation API. A focused regression now pins the combined refresh behavior.
Combined validation on current main: 177 focused tests pass; server, web, and contracts typechecks pass; targeted lint/format and git diff --check pass. A real browser pass shows Codex weekly plus Claude 5-hour/weekly limits on the Usage page and in the sidebar hover card. Once this review-fix PR lands, I can open the main-sync follow-up directly onto fix/limits-instance-attribution without duplicating these fixes.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Superseded by the pingdotgg#1732 direction upstream; the branch this resolved review threads for is closed.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
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.
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.