Repository navigation
refactor(agents): remove unused catalog runtime export - #166077
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed October 6, 2026, 6:46 AM ET / 10:46 UTC (Revision 2). ClawSweeper reviewWhat this changesThe branch removes an unused model-catalog runtime re-export and its obsolete test spy, and makes a voice-call greeting constant private. Merge readiness✅ Ready for maintainer review The remaining catalog cleanup is still useful and has no actionable correctness findings. The merged voice-call cleanup covers only the overlapping constant change; this member-authored PR should remain open. Priority: P3 Review scores
Verification
How this fits togetherThe model catalog combines plugin metadata and configured models for agent model selection. Reply handling consumes lifecycle-prepared catalog helpers, while manifest-catalog consumers access the implementation directly. flowchart LR
A[Plugin model metadata] --> C[Manifest catalog builder]
B[Configured models] --> C
C --> D[Prepared model catalog]
D --> E[Runtime catalog helpers]
E --> F[Reply model selection]
C --> G[Direct catalog consumers]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -1, Tests -1. Total -2 across 3 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep catalog access on its existing owners and remove the unused internal alias without changing public SDK behavior. Do we have a high-confidence way to reproduce the issue? Not applicable: this is dead-export cleanup, and source inspection confirms the remaining alias is unused by production consumers. Is this the best way to solve the issue? Yes: removing the internal re-export and its unused spy preserves the implementation, direct consumers, and behavioral assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8dc04b001e10. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
Remove the unused catalog runtime re-export and its obsolete test spy. Keep the catalog implementation, direct consumers, prepared-catalog mocks, and behavioral assertions unchanged.
Remove the unused catalog runtime re-export and its obsolete test spy. Keep the catalog implementation, direct consumers, prepared-catalog mocks, and behavioral assertions unchanged. (cherry picked from commit ece9d9c)
What Problem This Solves
The unused-export gate exposed an unused voice-call constant export and an unused model-catalog runtime alias. The exact voice-call cleanup has since landed in #166037; the catalog alias and its obsolete test spy remain.
User Impact
No intended runtime or public API change.
Why This Change Was Made
loadManifestModelCatalogre-export from the runtime barrel, while retaining its implementation and direct consumers.The tested branch also contains the voice constant cleanup already present on main. It is not a new voice-call change in this landing.
Evidence
pnpm buildpassed, including public SDK declaration validation. Non-blocking toolchain and bundle warnings remain recorded.The original one-file aggregate failure remains part of the investigation; it is not reported as a passing run. Exact-head hosted CI is still required before landing. No live voice-call behavior is claimed from the fixture suites.