Conversation
None of these files is imported anywhere in the repo (verified by whole-repo reference search incl. scripts' dynamic dist imports, package.json export subpaths, vendor/, and the plugin manifest): - lib/codex-manager/forecast-report-commands.ts (625 LOC): superseded by commands/forecast.ts + commands/report.ts, which the dispatcher imports. The dead copy was still being patched in parallel (#502, #506) - exactly the drift hazard an orphaned duplicate creates. - lib/codex-manager/statusline-order.ts: duplicate of reorderStatuslineField in settings-panels.ts (the live, tested one). - lib/runtime/account-health-check.ts: clampRuntimeActiveIndices is never wired into account-check.ts's injected deps by any caller. - lib/runtime/oauth-browser-flow.ts: superseded by browser-oauth-flow.ts / manual-oauth-flow.ts. - lib/runtime/session-affinity.ts: ensureRuntimeSessionAffinity has no callers; rotation code constructs SessionAffinityStore directly. Also drops the stale runtime/session-affinity.ts row from the lib/AGENTS.md structure tree. https://claude.ai/code/session_01XNtnkLbBiXZxfQQYLMpucB
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Warning Review limit reached
More reviews will be available in 19 minutes and 39 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (6)
✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
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 |
|
Closing as a duplicate: an open-PR sweep showed #554 ( The one thing this PR had that #554 lacked — dropping the stale Generated by Claude Code |
Summary
What Changed
Each file was verified dead by a whole-repo reference search covering static imports, the scripts' dynamic
dist/lib/...imports, the rootindex.tsplugin-host entry,package.jsonexportssubpaths andfiles,vendor/, the plugin manifest, and tests — zero references to any of them (the only mentions anywhere are rows in the historicaldocs/audits/evidence/inventory.txtsnapshot, which is preserved untouched per audit policy).lib/codex-manager/forecast-report-commands.tscommands/forecast.ts+commands/report.ts, whichcodex-manager.tsactually imports. The dead copy was still being patched in parallel with the live one (#502, #506) — exactly the drift hazard an orphaned duplicate creates.lib/codex-manager/statusline-order.tsreorderStatuslineFieldinsettings-panels.ts(the live, tested copy used bysettings-hub/index.ts).lib/runtime/account-health-check.tsclampRuntimeActiveIndicesis declared as an injected dependency type inaccount-check.ts, but the real wiring inindex.ts:3126injectsclampActiveIndicesfrom elsewhere; this copy is never used.lib/runtime/oauth-browser-flow.tsruntime/browser-oauth-flow.ts/runtime/manual-oauth-flow.ts(the pairindex.tsandlib/AGENTS.mdactually use).lib/runtime/session-affinity.tsensureRuntimeSessionAffinityhas no callers; rotation code constructsSessionAffinityStorefromlib/session-affinity.tsdirectly.Also drops the now-stale
runtime/session-affinity.tsrow from thelib/AGENTS.mdstructure tree (none of the other four appears in any doc).The candidates came from a local
kniprun, but each was then hand-verified independently — knip's default config here has known false positives (it flagslib/index.ts, the package main, as unused), so nothing else from its list was acted on. Wiring knip into CI remains tracked in #558 as a maintainer decision; this PR only deletes the hand-confirmed subset.Validation
npm run typecheckclean after deletion (also covers the rootindex.tsplugin-host entry, which is how the live oauth-flow/account-check modules are reached)npm test -- test/documentation.test.ts test/settings-panels.test.ts test/runtime-account-check.test.ts— the only failure is the pre-existing beta.2 docs-portal drift onmainthat fix: sync plugin manifest and docs portal to v2.3.0-beta.2 #577 fixes; it fails identically before this changenpm run lint/npm run buildfull passes deferred to CI; no source file was modified, only deletedDocs and Governance Checklist
lib/AGENTS.mdstructure tree updated (only doc that referenced a deleted file)Risk and Rollback
git revertthe single commit restores all five files verbatim.Additional Notes
scripts/install-codex-auth.jsand the remaining knip "unused" entries were deliberately left alone: the installer has dedicated tests and atsconfig.scripts.jsonentry (maintainer call), and the rest are entry-point false positives.https://claude.ai/code/session_01XNtnkLbBiXZxfQQYLMpucB