Repository navigation
fix(ci): remove unused catalog and agent exports - #201320
vincentkoc wants to merge 2 commits into
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 changes before merge. What this changesThis PR makes the Codex fallback constant private, replaces test imports with explicit fixtures, and removes an unused UI re-export. Example: ChatGPT catalog discovery runs while npm is unavailable.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this maintainer-authored cleanup is useful, but four replacement mocks introduce a source-check failure that blocks merge. Priority: P2 Before merge
Findings
Agent review detailsHow this fits togetherThe OpenAI plugin resolves the client version used for subscription model discovery, while the UI agent module exposes roster operations; this cleanup narrows internal exports and adjusts their tests. flowchart LR
A[Catalog discovery] --> B[Client version resolver]
B --> C[npm registry]
B --> D[Private bundled floor]
E[Sessions controller] --> F[Selected agent watcher]
G[Source checks] --> H[Exports and test mocks]
Technical reviewBest possible solution: Keep the narrow export cleanup and place a recognized isolation annotation immediately above each of the four replacement mocks. Do we have a high-confidence way to reproduce the issue? Source inspection establishes why the four closed mocks fail the guard, and exact-head CI independently reports mock-exports failed; no target code was executed during this review. Is this the best way to solve the issue? The existing resolver and watcher remain the correct owners, and explicit test fixtures remove unnecessary exports without adding machinery. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 62f44bc09d97. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource -1, Tests -15. Total -16 across 8 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 18, 2026, 11:21 AM ET / 16:21 UTC. |
|
Superseded by c9f03ee. That commit makes the same OpenAI fallback floor private, removes the same unused agent-watcher export, and updates the existing pin contract. It uses the canonical bundled-package pin in its test fixtures. Closing this duplicate instead of replacing the landed fixture approach. This branch’s corrected checks passed, and its earlier auto-merge request was retired before the correction; no merge is requested here. |
What Problem This Solves
The full validation dependency check fails on an internal OpenAI version constant and an unused UI re-export.
User Impact
No user-visible behavior changes. This restores the intended private module boundaries so the dependency check can pass.
Why This Change Was Made
Keep the Codex fallback floor private and give catalog tests explicit fixture versions instead of importing that implementation value. The existing contract still checks the fallback against the bundled Codex pin. Remove only the unused agent-watcher barrel export; the production helper and its direct caller remain unchanged. Keep each existing mock-isolation rationale immediately above its mock so the repository ratchet recognizes the intentional npm-lookup isolation.
Evidence
0aafe669..f948120cfound no correctness or security issues (confidence 0.93).