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 — chore(sync): merge upstream main through 61c3794c by yvesoddly · Pull Request #28 · issuelt/t3code Conversation
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
[High impact] The sync changes shared server workflows used by provider sessions, usage, cloud endpoints, and repository tasks. The PR appears safe to merge with non-blocking follow-ups for usage totals and the import guide. FindingsFix with agent prompt### Issue 1 apps/server/src/provider/Drivers/codexUsage.ts:94 If the first turn is interrupted after writing a `token_usage_record` but before its first `token_count`, the next turn can report a total covering both turns. With `previous === null`, `reconciled` accepts that total without checking the saved requests. This helper is skipped, so only the latest request is counted and usage totals stay too low. Handle a missing baseline when the saved requests explain the full total, while keeping the checks that prevent counting inherited history. ### Issue 2 apps/server/src/project/AgentSessionScanner.ts:1032 The record limit now applies to each conversation file, but `docs/user/welcome-wizard.md` still says an import attempt reads at most 100,000 input records per project. The new test deliberately imports more than that across several files, so users planning a large import get the wrong limit. Update the guide to say 100,000 records per file, alongside the unchanged batch limits. Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time! --- For each issue above, determine whether it is valid and should be fixed. If so, fix it directly. SummarySyncs upstream changes across provider sessions, usage totals, Git operations, previews, remote connections, and terminal controls.
Review used source and test inspection; no tests or browser captures were run. Reviews (1) · Last reviewed commit: "Merge upstream pingdotgg/t3code main int..." · Reviewed by Greptile |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| pending: readonly CodexUnreportedRequest[] | undefined, | ||
| ) { | ||
| if ( | ||
| previous === null || |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
First interrupted request goes uncounted
If the first turn is interrupted after writing a token_usage_record but before its first token_count, the next turn can report a total covering both turns. With previous === null, reconciled accepts that total without checking the saved requests. This helper is skipped, so only the latest request is counted and usage totals stay too low.
Handle a missing baseline when the saved requests explain the full total, while keeping the checks that prevent counting inherited history.
This is a comment left during a code review. Path: apps/server/src/provider/Drivers/codexUsage.ts Line: 94 Comment: **First interrupted request goes uncounted** If the first turn is interrupted after writing a `token_usage_record` but before its first `token_count`, the next turn can report a total covering both turns. With `previous === null`, `reconciled` accepts that total without checking the saved requests. This helper is skipped, so only the latest request is counted and usage totals stay too low. Handle a missing baseline when the saved requests explain the full total, while keeping the checks that prevent counting inherited history. --- For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Confirmed: with previous === null, reconciled only checks that the prefix is valid usage, so a pending token_usage_record from an interrupted first turn is never bridged and goes uncounted. This file is byte-identical to upstream main (pingdotgg#29415), and this is a sync PR, so the fix belongs upstream rather than as a fork divergence here. Not changing it in this PR.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| reader.write(decoder.decode()); | ||
| recordCount += 1; | ||
| if (recordCount > recordLimit) return false; | ||
| if (recordCount > MAX_IMPORT_RECORDS) return false; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Import guide gives wrong limit
The record limit now applies to each conversation file, but docs/user/welcome-wizard.md still says an import attempt reads at most 100,000 input records per project. The new test deliberately imports more than that across several files, so users planning a large import get the wrong limit.
Update the guide to say 100,000 records per file, alongside the unchanged batch limits.
This is a comment left during a code review. Path: apps/server/src/project/AgentSessionScanner.ts Line: 1032 Comment: **Import guide gives wrong limit** The record limit now applies to each conversation file, but `docs/user/welcome-wizard.md` still says an import attempt reads at most 100,000 input records per project. The new test deliberately imports more than that across several files, so users planning a large import get the wrong limit. Update the guide to say 100,000 records per file, alongside the unchanged batch limits. --- For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Confirmed: upstream pingdotgg#23192 made MAX_IMPORT_RECORDS per conversation file, but docs/user/welcome-wizard.md still says 100,000 input records per import attempt. Both files are identical to upstream main, and this is a sync PR, so the doc fix belongs upstream rather than as a fork divergence that would conflict on the next sync. Not changing it in this PR.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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.
There was an error while loading. Please reload this page.