Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (5)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe change separates paginated v2 subagent usage from inherited fork accounting. It updates cache migration, clears stale fork dependencies, and changes unresolved-fork refresh handling. Tests cover identity parsing, cache rebuilds, usage totals, daily refreshes, and legacy fork recovery. ChangesCodex accounting
Priority: ➖ Normal Estimated code review effort: 4 (Complex) | ~45 minutes Change: Bug fix Suggested reviewers: Sequence Diagram(s)sequenceDiagram
participant CodexScanner
participant SessionMetadata
participant CostUsageCache
participant PendingRange
CodexScanner->>SessionMetadata: parse paginated v2 subagent metadata
SessionMetadata->>CodexScanner: return independent session identity
CodexScanner->>CostUsageCache: clear inherited fork dependency
CodexScanner->>PendingRange: evaluate unresolved pending paths
PendingRange->>CodexScanner: clear stale NoProgress pause
CodexScanner->>CostUsageCache: store usage and acknowledge scan range
Merge Risk: ⚪ Minimal · up to The updated Codex accounting and refresh behavior has no identified merge-blocking issue. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Thermo-nuclear review of the current head (
Merge verdict: not thermo-clean until the P1/P2 structure issues are addressed. Review was read-only. |
|
Superseded by the owned remediation PR #539, which completes the typed pending disposition, lineage, scan extraction, and focused test-module fixes. This original head is intentionally left unmerged. |
Problem
On Windows, Codex Desktop paginated v2 subagent rollouts carry their own cumulative token counters even when their session metadata describes conversation ancestry. The scanner treated that ancestry as a billable parent dependency. When the parent was unavailable, a bounded background pass retained the previous report and stopped scanning, so healthy sessions and new local days stopped reaching the daily history.
Changes
Validation
cargo test -p codexbar --lib -- --nocapture— 1852 passed, 0 failed, 1 ignored.cargo test -p codexbar-desktop-tauri --bin codexbar-desktop-tauri -- --nocapture— 432 passed, 0 failed.cargo clippy --workspace --all-targets -- -D warnings— passed.The patch is intentionally conservative for old fork formats whose inherited usage cannot be proven: those files remain incomplete instead of being double-counted, but they no longer block unrelated daily usage.
Summary by CodeRabbit