Skip to content

fix/agents-primary-model-selection-and-catalog-loading-41344 - #54724

Closed
thegoldenflow wants to merge 4 commits into
openclaw:mainfrom
thegoldenflow:fix/41344-verify-main
Closed

thegoldenflow wants to merge 4 commits into
openclaw:mainfrom
thegoldenflow:fix/41344-verify-main

Conversation

@thegoldenflow

Copy link
Copy Markdown
Contributor

Summary

  • Fixes incorrect Primary Model selection when switching between agents in Agents > Overview.
  • Fixes partial / blank Primary Model dropdowns after refresh or first load by ensuring the model catalog is available on Agents Overview paths.
  • Adds targeted tests for both selection stability and catalog hydration behavior.
  • Keeps the fix scoped to the Agents Overview model-selection path.

Change Type (select all)

  • Bug fix
  • Feature
  • Refactor required for the fix
  • Docs
  • Security hardening
  • Chore/infra

Scope (select all touched areas)

  • Gateway / orchestration
  • Skills / tool execution
  • Auth / tokens
  • Memory / storage
  • Integrations
  • API / contracts
  • UI / DX
  • CI/CD / infra

Linked Issue/PR

Root Cause / Regression History (if applicable)

For bug fixes or regressions, explain why this happened, not just what changed. Otherwise write N/A. If the cause is unclear, write Unknown.

  • Root cause:
    1. The agent details subtree could reuse stale DOM/select state when switching agents, which caused the Primary Model select to drift toward the previously viewed agent's state.
    2. Agents Overview depended on a shared model catalog that was not guaranteed to be loaded on refresh / first-load / overview-only paths, so the select could render before the catalog was ready and degrade into a partial or blank-looking list.
  • Missing detection / guardrail:
    • Existing coverage covered some selected-value behavior, but it did not cover model-catalog hydration timing or the refresh/overview path where the catalog starts empty and arrives later.
  • Prior context (git blame, prior PR, issue, or refactor if known):
  • Why this regressed now:
    • The Overview UI depends on model-catalog data, but not all entry paths guaranteed that the catalog was loaded before rendering.
  • If unknown, what was ruled out:
    • Ruled out a pure selected-state-only explanation. The partial/blank dropdown after refresh was caused by catalog availability/lifecycle, not just DOM selection drift.

Regression Test Plan (if applicable)

For bug fixes or regressions, name the smallest reliable test coverage that should have caught this. Otherwise write N/A.

  • Coverage level that should have caught this:
    • Unit test
    • Seam / integration test
    • End-to-end test
    • Existing coverage already sufficient
  • Target test or file:
    • ui/src/ui/views/agents.browser.test.ts
    • ui/src/ui/views/agents.test.ts
    • ui/src/ui/controllers/models.test.ts
  • Scenario the test should lock in:
    • Switching between agents keeps the correct explicit Primary Model selected.
    • The inherit-default option text does not go blank.
    • When the model catalog is initially empty, Agents Overview shows a loading state instead of a misleading partial list.
    • When the catalog hydrates later, the full list appears without losing the selected value.
  • Why this is the smallest reliable guardrail:
    • The bug spans both UI render behavior and shared model-catalog lifecycle, so a combination of focused controller/unit tests plus browser-level select behavior tests is the smallest reliable coverage.
  • Existing test that already covers this (if any):
    • Existing browser coverage covered some selection behavior, but not the catalog hydration path.
  • If no new test is added, why not:
    • N/A

User-visible / Behavior Changes

List user-visible changes (including defaults/config).
If none, write None.

  • Switching between agents no longer causes the Primary Model select to show the wrong agent's value.
  • On refresh / first entry to Agents Overview, the Primary Model select no longer degrades into a misleading partial list.
  • While the model catalog is still loading, the UI now shows a loading state instead of pretending only a small subset of options exists.
  • Once the catalog loads, the full option list appears without losing the current selection.

Security Impact (required)

  • New permissions/capabilities? (Yes/No) No
  • Secrets/tokens handling changed? (Yes/No) No
  • New/changed network calls? (Yes/No) No
  • Command/tool execution surface changed? (Yes/No) No
  • Data access scope changed? (Yes/No) No
  • If any Yes, explain risk + mitigation:
    • N/A

Repro + Verification

Environment

  • OS: Windows 10
  • Runtime/container: local dev environment
  • Model/provider: local UI validation only
  • Integration/channel (if any): N/A
  • Relevant config (redacted): standard Agents UI configuration with default and non-default agents

Steps

  1. Open Agents > Overview > Model Selection > Primary Model.
  2. Switch between a default agent and a non-default agent.
  3. Refresh the page and reopen the Primary Model select immediately.
  4. Optionally wait for model-catalog hydration or switch away/back to Overview.

Expected

  • The select reflects the correct explicit value for the current agent.
  • The inherit-default option text is stable.
  • Refresh / first-load does not show a misleading partial catalog.
  • Once the catalog is available, the full model list appears without losing the selected value.

Actual

  • Before this fix, switching agents could retain stale select state from another agent.
  • Before this fix, refresh / first-load could show only fallback options (for example inherit/current) or appear blank until the catalog became available later.

Evidence

Attach at least one:

  • Failing test/log before + passing after
  • Trace/log snippets
  • Screenshot/recording
  • Perf numbers (if relevant)

UI Evidence

Before

After refresh / first load, the Primary Model dropdown could show only fallback entries or appear blank.

Before: partial Primary Model options after refresh

After

After the fix, the Primary Model dropdown restores the full option list correctly after refresh / first load, without losing the selected value.

After: full Primary Model options restored after refresh

Human Verification (required)

What you personally verified (not just CI), and how:

  • Verified scenarios:
    • Switched repeatedly between default and non-default agents and confirmed Primary Model stays tied to the current agent.
    • Refreshed the page and reopened Agents Overview to verify the select no longer falls into a misleading partial/blank state.
    • Confirmed catalog hydration restores the full list without losing the selected value.
  • Edge cases checked:
    • Inherit-default text path
    • Explicit non-default model selection
    • Refresh / first-load / return-to-overview behavior
  • What you did not verify:
    • Full end-to-end coverage across unrelated panels/modules
    • Additional stale/error UX beyond this fix's loading-state behavior

AI Assistance

  • This PR was developed with AI assistance (CodeX).
  • I reviewed the resulting changes, reproduced the bug locally, and verified the final behavior manually.
  • Testing level: fully tested locally with targeted automated tests and manual UI verification.

Review Conversations

  • I replied to or resolved every bot review conversation I addressed in this PR.
  • I left unresolved only the conversations that still need reviewer or maintainer judgment.

If a bot review conversation is addressed by this PR, resolve that conversation yourself. Do not leave bot review conversation cleanup for maintainers.

Compatibility / Migration

  • Backward compatible? (Yes/No) Yes
  • Config/env changes? (Yes/No) No
  • Migration needed? (Yes/No) No
  • If yes, exact upgrade steps:
    • N/A

Failure Recovery (if this breaks)

  • How to disable/revert this change quickly:
    • Revert this PR's two commits.
  • Files/config to restore:
    • ui/src/ui/views/agents.ts
    • ui/src/ui/views/agents-panels-overview.ts
    • ui/src/ui/controllers/models.ts
    • ui/src/ui/app-render.ts
    • ui/src/ui/app-settings.ts
    • ui/src/ui/app-chat.ts
  • Known bad symptoms reviewers should watch for:
    • Primary Model shows another agent's value after switching agents
    • Refresh / first-load shows only partial model options or a blank-looking select
    • Catalog hydration changes the list but drops the selected value

Risks and Mitigations

List only real risks for this PR. Add/remove entries as needed. If none, write None.

  • Risk:

    • Multiple UI entry points now ensure model-catalog availability, which could increase repeated refresh attempts if not properly deduped.
    • Mitigation:
      • The loading/ensure logic is centralized in the shared model controller and covered by targeted tests.
  • Risk:

    • Keyed subtree remounting can discard unsaved local UI state when switching agents.
    • Mitigation:
      • That tradeoff is intentional here because correctness of agent-specific model selection is more important than preserving stale subtree state across agent switches.

@greptile-apps

greptile-apps Bot commented Mar 25, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR fixes two related bugs in the Agents Overview model-selection UX: stale DOM/select state when switching agents, and partial/blank Primary Model dropdowns on refresh or first load due to the model catalog not being available on Overview paths.

Key changes:

  • agents.ts: Wraps the agent-detail subtree with keyed(selectedAgent.id, …), the idiomatic Lit fix to force a clean remount on agent switch, eliminating DOM state drift.
  • agents-panels-overview.ts: Adds live() and a ref+queueMicrotask guard for select-value synchronisation, plus a catalogHydrating state that shows a loading placeholder instead of a misleading partial option list.
  • controllers/models.ts: Centralises catalog loading in refreshModelCatalog (with a dedup guard) and ensureModelCatalog (skip-if-populated), replacing scattered inline logic across app-chat.ts, app-render.ts, and app-settings.ts.
  • Tests: New browser tests (agents.browser.test.ts) cover agent-switching stability, inherit-default text stability, loading-state during hydration, and catalog hydration without selection loss. New unit tests (models.test.ts) cover the controller's happy path, failure-preserves-catalog, and skip-if-populated paths.

Minor observations:

  • refreshModelCatalog returns undefined (not a pending Promise) when the dedup guard fires, so callers that await it inside a Promise.all (e.g., in app-settings.ts) resolve immediately without waiting for the in-flight request. The UI's loading-state handling makes this acceptable in practice, but a brief inline comment or a small documentation tweak would help future maintainers understand the intended contract.
  • The ref callback is an inline arrow function, so Lit re-invokes it on every render — this is harmless (the queueMicrotask only updates the DOM when needed) but slightly inefficient.
  • The "keeps last catalog on failure" test case does not assert that the network request was actually attempted, leaving a small gap in future-refactor protection.

Confidence Score: 4/5

  • Safe to merge; the fix is well-scoped, all identified issues are non-blocking style/documentation gaps, and test coverage is comprehensive.
  • The core fix (keyed subtree + live/ref sync + centralized catalog loading) is correct and addresses both root causes. New browser and unit tests lock in the described scenarios. The only actionable items are P2: the dedup early-return behaviour warrants a clarifying comment, and one test is missing a request call assertion. No P0 or P1 issues found.
  • ui/src/ui/controllers/models.ts (dedup early-return behaviour) and ui/src/ui/controllers/models.test.ts (missing assertion on failure path) warrant a quick pass before merge, but neither is blocking.

Comments Outside Diff (1)

  1. ui/src/ui/controllers/models.test.ts, line 156-166 (link)

    P2 Missing assertion that the network request was attempted

    The test verifies that the stale catalog is preserved after a failure, but it doesn't assert that the request was actually made. Adding a call assertion would guard against future refactors that silently skip the fetch (e.g., an early-return path accidentally matching this scenario).

    Prompt To Fix With AI
    This is a comment left during a code review.
    Path: ui/src/ui/controllers/models.test.ts
    Line: 156-166
    
    Comment:
    **Missing assertion that the network request was attempted**
    
    The test verifies that the stale catalog is preserved after a failure, but it doesn't assert that the request was actually made. Adding a call assertion would guard against future refactors that silently skip the fetch (e.g., an early-return path accidentally matching this scenario).
    
    
    
    How can I resolve this? If you propose a fix, please make it concise.
Prompt To Fix All With AI
This is a comment left during a code review.
Path: ui/src/ui/controllers/models.ts
Line: 37-38

Comment:
**Dedup early-return silently drops the await**

When `chatModelsLoading` is already `true`, `refreshModelCatalog` returns `undefined` synchronously (not a pending `Promise`), so any `await`-ing caller resolves immediately — before the in-flight request finishes. This is acceptable in practice because the UI handles loading states, but callers in `app-settings.ts` inside a `Promise.all` won't actually wait for the catalog when a concurrent fetch is already running.

Consider returning the in-flight promise instead of discarding it, or documenting the behaviour explicitly so future callers aren't surprised:

```
// If a fetch is already running, callers do not wait for it to complete.
// The UI must tolerate the catalog arriving asynchronously via state updates.
if (state.chatModelsLoading) {
  return;
}
```

How can I resolve this? If you propose a fix, please make it concise.

---

This is a comment left during a code review.
Path: ui/src/ui/controllers/models.test.ts
Line: 156-166

Comment:
**Missing assertion that the network request was attempted**

The test verifies that the stale catalog is preserved after a failure, but it doesn't assert that the request was actually made. Adding a call assertion would guard against future refactors that silently skip the fetch (e.g., an early-return path accidentally matching this scenario).

```suggestion
    await refreshModelCatalog(state);

    expect(request).toHaveBeenCalledWith("models.list", {});
    expect(state.chatModelsLoading).toBe(false);
    expect(state.chatModelCatalog).toEqual([{ id: "gpt-5", name: "GPT-5", provider: "openai" }]);
```

How can I resolve this? If you propose a fix, please make it concise.

Reviews (1): Last reviewed commit: "fix(ui): load model catalog for agents o..." | Re-trigger Greptile

Comment thread ui/src/ui/controllers/models.ts Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fe5f59dbf8

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread ui/src/ui/controllers/models.ts Resolved
@thegoldenflow thegoldenflow changed the title Fix/41344 verify main fix/agents-primary-model-selection-and-catalog-loading-41344 Mar 25, 2026
@thegoldenflow
thegoldenflow force-pushed the fix/41344-verify-main branch from 66022fe to 4a5f9b2 Compare March 25, 2026 23:39

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4a5f9b2abb

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread ui/src/ui/controllers/models.ts Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5605e4e840

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread ui/src/ui/controllers/models.ts Resolved
@clawsweeper

clawsweeper Bot commented Apr 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed July 5, 2026, 12:26 PM ET / 16:26 UTC.

Summary
The PR adds Agents Overview Primary Model select remounting, model-catalog hydration/loading behavior, shared model-catalog refresh helpers, and focused UI/controller tests.

PR surface: Source +120, Tests +582, Other +4. Total +706 across 12 files.

Reproducibility: yes. for the merge blocker: source inspection shows PR head calls models.list with {}, while current main and v2026.6.11 use { view: "configured" }. I did not rerun the original browser dropdown repro in this read-only review.

Review metrics: 1 noteworthy metric.

  • Model Catalog Request Scope: 1 changed: configured view to omitted/default view. The request scope decides which provider/model rows existing users see in Agents and Chat model pickers after upgrade.

Merge readiness
Overall: 🧂 unranked krab
Proof: 🦞 diamond lobster ✨ media proof bonus
Patch quality: 🧂 unranked krab
Result: blocked by patch quality or review findings.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Keep models.list on { view: "configured" } and update the focused tests for that contract.
  • Rebase or replace the branch on current main while preserving current ui/src/pages/chat/models.ts cache behavior.

Proof path suggestion
After the request-scope repair, a short browser-visible proof would help confirm the Agents Overview dropdown stays correct across agent switching and refresh/catalog hydration. Mantis is currently scoped to Telegram, Discord, and web UI chat proof, so it is not the right proof path for this surface.
Use maintainer screenshot/manual proof, browser or Playwright proof, Crabbox where appropriate, or normal local artifact proof instead.

Risk before merge

  • [P1] Merging or porting this branch without preserving { view: "configured" } can change which provider/model rows existing users see in Agents and Chat model pickers.
  • [P1] The branch targets the pre-dashboard-v2 ui/src/ui/** layout, so any repair needs to port the useful behavior onto current ui/src/pages/agents/** without losing the current per-client catalog cache semantics.

Maintainer options:

  1. Repair On Current Catalog Contract (recommended)
    Rebase or replace the branch so Agents Overview hydration uses { view: "configured" } and preserves current main's per-client model-catalog cache behavior.
  2. Approve Wider Catalog Scope
    Only if maintainers intentionally want the default model-list view in these pickers, document that provider/model visibility change and update tests around the new contract.
  3. Pause This Branch
    If porting the old-path branch is not worth the churn, keep the merged stale-selection fix and track Agents Overview catalog hydration as a fresh narrow repair.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Preserve the configured model catalog request scope by using `models.list` with `{ view: "configured" }` in the Agents Overview hydration path, update focused tests to assert that params shape, and port the fix onto the current `ui/src/pages/agents/**` and `ui/src/pages/chat/models.ts` structure without changing provider/catalog defaults.

Next step before merge

  • [P2] A narrow repair or replacement can keep the useful dropdown hydration work while fixing the model-list request contract and porting it onto current main.

Security
Cleared: No concrete security or supply-chain regression found; the diff changes UI/controller model catalog calls and tests without new secrets, dependencies, workflows, or code-execution surfaces.

Review findings

  • [P1] Preserve the configured model catalog scope — ui/src/ui/controllers/models.ts:24
Review details

Best possible solution:

Port only the Agents Overview hydration/loading behavior onto the current ui/src/pages/agents surface and reuse the existing configured-view model catalog loader.

Do we have a high-confidence way to reproduce the issue?

Yes for the merge blocker: source inspection shows PR head calls models.list with {}, while current main and v2026.6.11 use { view: "configured" }. I did not rerun the original browser dropdown repro in this read-only review.

Is this the best way to solve the issue?

No. The hydration idea is reasonable, but the best fix is to reuse or extend the current configured-view loader from the new Agents page structure instead of adding an old-path controller that changes request scope.

Full review comments:

  • [P1] Preserve the configured model catalog scope — ui/src/ui/controllers/models.ts:24
    This was raised in the prior ClawSweeper cycle and is still present at the same head: the new shared refresh calls models.list with {}, while current main and v2026.6.11 request { view: "configured" } for UI model catalogs. The default view can expose a different provider/model set, so Agents and Chat pickers can change existing users' options after merge; keep the configured view and update the tests.
    Confidence: 0.93

Overall correctness: patch is incorrect
Overall confidence: 0.91

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 70f2bef6b4cf.

Label changes

Label justifications:

  • P2: This is a normal Control UI bugfix with limited blast radius, but it affects model selection UX for users managing agents.
  • merge-risk: 🚨 compatibility: The PR changes the model catalog request from the shipped configured view to the default view, which can alter existing users' picker options.
  • merge-risk: 🚨 auth-provider: Model-list visibility and availability are tied to configured providers and auth profiles, so changing the view can expose or hide provider-backed choices.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🦞 diamond lobster and patch quality is 🧂 unranked krab.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (screenshot): The PR body includes before/after dropdown screenshots and human verification for the UI behavior, though that proof does not settle the configured-view request-scope bug.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body includes before/after dropdown screenshots and human verification for the UI behavior, though that proof does not settle the configured-view request-scope bug.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The PR body includes before/after dropdown screenshots and human verification for the UI behavior, though that proof does not settle the configured-view request-scope bug.
Evidence reviewed

PR surface:

Source +120, Tests +582, Other +4. Total +706 across 12 files.

View PR surface stats
Area Files Added Removed Net
Source 6 278 158 +120
Tests 4 583 1 +582
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 4 0 +4
Total 12 865 159 +706

Acceptance criteria:

  • [P1] pnpm test ui/src/pages/agents/view.test.ts ui/src/pages/chat/models.test.ts ui/src/pages/chat/chat-command-executor.test.ts.
  • [P1] pnpm check:changed -- ui/src/pages/agents/agents-page.ts ui/src/pages/agents/panels-overview.ts ui/src/pages/agents/view.ts ui/src/pages/chat/models.ts.

What I checked:

  • PR head changes the catalog request scope: At the reviewed head, the new shared model-catalog helper calls models.list with {} instead of the configured model-list view. (ui/src/ui/controllers/models.ts:24, 55b8ebe40afb)
  • PR tests lock in the changed request shape: The PR's new controller test expects models.list to be called with {}, so the regression is intentional in the current patch rather than a typo in one call site. (ui/src/ui/controllers/models.test.ts:51, 55b8ebe40afb)
  • Current main preserves the configured catalog view: Current main's shared UI model loader requests models.list with { view: "configured" } and caches that result per gateway client. (ui/src/pages/chat/models.ts:58, 70f2bef6b4cf)
  • Latest release uses the same configured-view contract: The latest release tag v2026.6.11 also requests models.list with { view: "configured" } and has a test asserting that request shape. (ui/src/ui/controllers/models.ts:58, e085fa1a3ffd)
  • Current main already covers the stale selected-agent remount portion: Current main keys the Agents Overview subtree by selected agent and has tests for configured primary model selection and remounting on agent switch. (ui/src/pages/agents/view.ts:221, 70f2bef6b4cf)
  • Prior review finding is still unresolved: The previous ClawSweeper cycle raised Preserve the configured model catalog request; the reviewed head remains 55b8ebe40afb639379544da56bd866031ecd3bfd and the same request-scope issue is still present. (ui/src/ui/controllers/models.ts:24, 55b8ebe40afb)

Likely related people:

  • vincentkoc: Merged the focused stale agent model-selection repair for the same UI symptom in fix(ui): stabilize agent model selection on switch. (role: recent related fix author; confidence: high; commits: 3cb460873dc7; files: ui/src/ui/views/agents.ts)
  • Val Alexander: Authored the dashboard-v2 agents view refactor that split and shaped the affected Agents UI modules before the current page layout. (role: feature-area contributor; confidence: medium; commits: f76a3c5225bb; files: ui/src/ui/views/agents.ts, ui/src/ui/views/agents-panels-overview.ts)
  • Peter Steinberger: Current-main blame and earlier history show recent work on the active agents UI and model loader paths, though the shallow current-main blame is broad and partly unrelated. (role: recent adjacent contributor; confidence: medium; commits: 43fd44a28c89, 6c445889b386; files: ui/src/pages/agents/view.ts, ui/src/pages/agents/panels-overview.ts, ui/src/pages/chat/models.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
Review history (1 earlier review cycle)
  • reviewed 2026-07-03T04:27:12.492Z sha 55b8ebe :: needs changes before merge. :: [P1] Preserve the configured model catalog request

@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 11, 2026
@openclaw-barnacle openclaw-barnacle Bot added triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. labels May 11, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 12, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 12, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 13, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 14, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 14, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 14, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 14, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 14, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 14, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 14, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 15, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 15, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 15, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 15, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 15, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 15, 2026
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 15, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 15, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels May 16, 2026
@clawsweeper

clawsweeper Bot commented May 20, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper PR egg

🔥 Warming up: real-behavior proof passed; findings, security review, or rank-up moves are still in progress.

Hatch command

Comment @clawsweeper hatch when this PR is hatchable.

Hatchability rules:

  • Merged PRs are hatchable.
  • Open PRs are hatchable when they are status: 👀 ready for maintainer look, status: 🚀 automerge armed, or labeled clawsweeper:automerge.
  • Closed unmerged PRs are hatchable only when one of those hatchable labels is still present in the durable record.
What is this egg doing here?
  • Eggs appear after the PR passes real-behavior proof. It is here for vibes, not verdicts: it does not change labels, ratings, merge decisions, or automation.
  • The shell reacts to review momentum: open follow-up work warms it up, re-review makes it wobble, and a clean final review lets it hatch.
  • Hatchability usually comes from sufficient real-behavior proof, no blocking P0/P1/P2 findings, no security attention needed, and clean correctness. A merged PR is already final, so merge makes the egg hatchable independently.
  • The hatch is seeded from this repository and PR number, so the same PR keeps the same creature; the reviewed head SHA can only change safe visual details.
  • Rarity is just collectible sparkle: 🥚 common, 🌱 uncommon, 💎 rare, ✨ glimmer, and 🌈 legendary.

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels May 21, 2026
@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@steipete

Copy link
Copy Markdown
Contributor

Thanks @wsyjh8 for the detailed investigation and tests. Closing this as superseded: the agent-switch repair landed in #72328, page-load selected-option handling landed in #74000, and reload-state handling landed in #72624. Since then #100024 replaced the Control UI architecture, so 11 of this PR's 12 touched paths no longer exist, and the remaining catalog helper changes the canonical configured-model request scope.

If partial catalog hydration still reproduces, please open a fresh issue with current-version proof; the appropriate repair belongs under ui/src/pages/agents/** and should reuse the configured-view catalog loader.

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 merge-risk: 🚨 auth-provider 🚨 May break OAuth, tokens, provider routing, model choice, or credentials. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants