Repository navigation
fix(ui): settle all catalog owners before picker measurements - #178735
Conversation
Establish ready provider inventories for both main and reviewer before the Settings picker test measures its suite-wide provider counter. Preserve every page, refresh, retry, and selection assertion. Independent cold-start coverage remains unchanged; historical excess acquisitions are not definitively owner-attributed.
|
🦞👀 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 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. |
|
Codex review: needs maintainer review before merge. What this changesThis PR publishes catalogs for both configured test agents before measuring provider requests caused by Settings picker actions. Example: The Settings test configures main and reviewer against one Ollama fixture.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it makes a focused, source-supported fixture repair without weakening assertions, and no introduced defect was found. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe browser E2E runs Settings against a real Gateway and synthetic HTTP provider, counting provider acquisitions to distinguish catalog reads from explicit Refresh and Retry actions. flowchart LR
A[Test setup] --> B[Publish main and reviewer]
B --> C[Gateway catalog owners]
C --> D[Synthetic Ollama provider]
D --> E[Shared acquisition counter]
F[Settings browser actions] --> C
E --> G[Acquisition assertions]
Technical reviewBest possible solution: Use the existing publication helper to establish both fixture owners before measurement while retaining every acquisition assertion and independent cold-start test. Do we have a high-confidence way to reproduce the issue? Source confirms two configured owners share one provider counter while only main is explicitly warmed; the historical overcount is documented, but its exact cause has not been reproduced or owner-attributed. Is this the best way to solve the issue? This is the smallest complete repair for the demonstrated fixture setup mismatch: reuse publication for each owner without changing production behavior, adding waits, or relaxing assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c4c695af703b. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +2. Total +2 across 1 file. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 October 20, 2026, 4:11 PM ET / 20:11 UTC. |
|
Merged via squash.
|
Includes the landed all-owner catalog publication fixture from #178735. Preserves the reviewed model-search diff and the prior conflict-resolution tests. Final controller guard passes; independent P0-P2 review is clean. Production Knip reports only the unchanged agentsapi DEFAULT_NATIVE_TOOLS export inherited from main.
Merge main c7387f7, including #178735, after the catalog acquisition-count failure on the prior combined head. The merge has no conflicts and leaves the question PR delta unchanged. Frozen dependency install, UI types, controller guard, 21 focused tests, and independent P0-P2 review pass. Production Knip reports the unused DEFAULT_NATIVE_TOOLS export outside this diff; base attribution is pending. Fresh current-head full CI and hosted performance proof remain required.
…claw#178735) Establish ready provider inventories for both main and reviewer before the Settings picker test measures its suite-wide provider counter. Preserve every page, refresh, retry, and selection assertion. Independent cold-start coverage remains unchanged; historical excess acquisitions are not definitively owner-attributed. Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
The Settings catalog E2E measures provider requests across two configured agents, but only establishes a published catalog for
mainbefore starting that measurement. A coldreviewercatalog can contribute unrelated discovery to the same counter.Related: #178613, #178644.
User Impact
No product behavior changes. The existing browser scenario continues to require zero acquisition from opening or reopening published pickers and exactly one acquisition from each Refresh or Retry.
Why This Change Was Made
Publish both configured agents through the existing
models.listhelper, requiring a ready Ollama outcome for each before capturinginitialAcquisitions. Later publication still defaults tomain; every existing counter and UI assertion stays intact. The diff adds two net test lines and no production code.The runtime intentionally refreshes committed configured owners after auth publication (
src/agents/prepared-model-runtime.ts,src/agents/prepared-model-runtime.refresh-scope.ts). Its changed-only catalog path treats missing inventory as a cold full acquisition (src/agents/prepared-model-runtime.catalog-access.ts). The fixture must therefore establish both owners before attributing its global provider counter to page actions. Independent cold-start coverage remains inmodels-list.native-lifecycle.integration.test.tsandprepared-model-runtime.scoped-refresh.test.ts.Evidence
CI runs 39475801766 and 39478166263 failed the unchanged Refresh assertion: expected three total acquisitions, observed four. Their wire diagnostics do not identify the extra request's runtime owner, so this change does not claim definitive attribution of either historical failure or proof that cold-start behavior is defect-free.
An exact-base browser attempt was stopped when Testbox capacity queued, before a build or test ran. Earlier source-Gateway probes started with both inventories warm and did not reproduce the overcount. The full-label CI run 39487705697 passed on head
a1451c76ba2c93ffc710d3b47ed2c27c40c3c008, including both real-Gateway shards. No local E2E or app build was run.Independent canonical P0–P2 review is scoped-clean. The affected UI E2E TypeScript graph, targeted file lint, formatting, and
git diff --checkpass. Local type/lint initially refused a shared dependency symlink; both passed using the checkout-owned frozen-lockfile install. Full PR CI completed successfully at 22:22:08 UTC on 2026-10-20 after runner-allocation waits; all 56 jobs completed with no failed jobs.