Skip to content

fix(ui): settle all catalog owners before picker measurements - #178735

Merged
steipete merged 1 commit into
mainfrom
fix/catalog-picker-fixture-publication
Oct 20, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/catalog-picker-fixture-publication

Conversation

@steipete

@steipete steipete commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The Settings catalog E2E measures provider requests across two configured agents, but only establishes a published catalog for main before starting that measurement. A cold reviewer catalog 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.list helper, requiring a ready Ollama outcome for each before capturing initialAcquisitions. Later publication still defaults to main; 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 in models-list.native-lifecycle.integration.test.ts and prepared-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 --check pass. 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.

Proof / metric Result
UI E2E test types Pass
Targeted lint, format, diff Pass
Canonical independent review P0–P2 scoped-clean
Browser scenario Pass: full-label CI 39487705697, including the changed Settings catalog scenario; no result claimed from the queued remote attempt
Production LOC 0 changed
Test file LOC 757 → 759 (+2)
Startup bytes / screenshots Test setup only; production and styling unchanged

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.
@clawsweeper

clawsweeper Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review October 20, 2026 19:52
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-20T20:08:03.761272Z a1451c7 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 20, 2026
@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Oct 20, 2026
@steipete
steipete marked this pull request as draft October 20, 2026 19:56
@steipete
steipete marked this pull request as ready for review October 20, 2026 19:56
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 20, 2026
@clawsweeper

clawsweeper Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: Only main is explicitly published before the shared acquisition counter is sampled.
  • After: Both agents must report a ready Ollama outcome before sampling begins.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The narrow fixture change is coherent and preserves coverage, while its effectiveness awaits the actual browser scenario.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored test-only PR is outside the ordinary contributor proof gate; its browser validation remains pending, and the inspected linked picker screenshots do not demonstrate acquisition settlement.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Unrelated catalog discovery can contaminate the Settings E2E's shared provider counter and obscure whether picker actions acquire unnecessarily.
Reason: The maintainer-directed fixture repair aligns setup with the two configured owners and preserves the existing behavioral contract.

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
Reviewed head: a1451c76ba2c93ffc710d3b47ed2c27c40c3c008

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The exact-head real-Gateway browser scenario remains queued, and a matching base-failure/head-pass reproduction has not been demonstrated.
Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Settings publication helper and acquisition baseline keeps the original intent (8128b41: fix(ui): avoid repeated model discovery when reopening Settings pickers #142384 introduced independent acquisition accounting to distinguish publication, picker reopening, refresh, and recovery.)
  • Publication diagnostics keeps the original intent (95f3324: Record bounded acquisition diagnostics without relaxing assertions or claiming visibility into private runtime-owner generations.)

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 8128b41 adds ui/src/e2e/command-palette-catalog.real-gateway.e2e.test.ts:116 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 8128b418f050; files: ui/src/e2e/command-palette-catalog.real-gateway.e2e.test.ts)
  • Ayaan Zaidi: Raw commit 3d7d211 adds ui/src/e2e/command-palette-catalog.real-gateway.e2e.test.ts:111 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 3d7d21166f09; files: ui/src/e2e/command-palette-catalog.real-gateway.e2e.test.ts)

PR surface

Tests +2. Total +2 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 9 7 +2
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 9 7 +2

Labels

Label changes:

  • add P3: This repairs test setup and acquisition attribution without changing shipped product behavior.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This repairs test setup and acquisition attribution without changing shipped product behavior.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Confirm the queued exact-head real-Gateway scenario passes with the existing acquisition assertions.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 20, 2026, 4:11 PM ET / 20:11 UTC.

@steipete
steipete merged commit c7387f7 into main Oct 20, 2026
211 of 243 checks passed
@steipete
steipete deleted the fix/catalog-picker-fixture-publication branch October 20, 2026 22:33
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Oct 20, 2026
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.
steipete added a commit that referenced this pull request Oct 20, 2026
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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 21, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui ci:full Keep ordinary native-locale CI selection on the next PR run. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant