Skip to content

fix(ui): retain controls after partial catalog refresh - #144750

Merged
obviyus merged 3 commits into
mainfrom
fix/ui-controls-partial-refresh
Sep 11, 2026
Merged

obviyus merged 3 commits into
mainfrom
fix/ui-controls-partial-refresh

Conversation

@obviyus

@obviyus obviyus commented Sep 11, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #144726.

What Problem This Solves

Fixes an issue where existing chats lost effort and speed controls when another provider failed to refresh, even though usable model choices remained.

Why This Change Was Made

Existing chat and New Session now share catalog readiness. Partial-refresh warnings remain separate from failed requests, and supported controls use the selected model’s published capabilities and availability.

User Impact

Usable models keep their effort and speed controls while the refresh notice stays visible. No schema or protocol change.

Consumers: existing-chat and New Session controls share readiness semantics.

Evidence

Mock and real-Gateway browser reproductions failed before the fix and passed afterward. Eight browser scenarios covered partial failure, recovery, locks, empty or rejected results and unsupported controls. Eleven browser regressions/siblings and 127 capability/default tests passed. Telegram acknowledged the native effort command. An unrelated session-link layout test remained failing on the base.

@clawsweeper

clawsweeper Bot commented Sep 11, 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.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: L maintainer Maintainer-authored PR labels Sep 11, 2026
@obviyus
obviyus merged commit 0e9391f into main Sep 11, 2026
162 of 164 checks passed
@obviyus
obviyus deleted the fix/ui-controls-partial-refresh branch September 11, 2026 07:40
@obviyus

obviyus commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks @Conan-Scott for the operator report.

Proof: Both existing chat and New Session pass the real-Gateway regression after a partial provider refresh. Eight browser regressions, affected sibling checks, and all 50 config/state corpus checks pass. Sanitized before/after captures are in the PR body.

  • Bug: A successful catalog warning was treated as an error in existing chat, hiding supported effort and speed controls.
  • Fix: Both pages share readiness, preserve the warning as a notice, and render controls from the selected model's capabilities.
Before After
Existing chat loses controls after another provider fails to refresh Supported controls remain available with a refresh notice
New Session retains controls New Session continues to retain controls

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 12, 2026
Fixes openclaw#144726.

## What Problem This Solves

Fixes an issue where users lose effort and speed controls in existing chats when another provider fails to refresh its model catalog. The operator reported this on 2026.9.4; New Session retained its controls under the same condition.

## Why This Change Was Made

Both pages now share catalog readiness and retain partial-refresh warnings separately from failed requests. Controls use the selected model's capabilities and availability, while the model menu keeps the refresh notice visible.

## User Impact

| Same usable catalog with a partial refresh warning | Before | After |
| --- | --- | --- |
| Existing chat | Models listed; effort and speed hidden | Models and supported controls remain available |
| New Session | Supported controls available | Supported controls remain available |
| Warning | Catalog error presentation | Notice without changing readiness |

## Evidence

- Pinned-main mock and real-Gateway browser reproductions fail on the missing existing-chat effort control; candidate passes both pages.
- Eight browser cases cover partial provider failure, warning recovery with retained settings, locked selection, empty catalogs, rejected reads with and without retained rows, unavailable selected models, and non-reasoning models.
- Config/state corpus: 50 passed. Extended owner/default tests: 127 passed. Browser regressions and affected siblings: 11 passed. CI inventory checks: 40 passed.
- Independent browser acceptance passed. Telegram Test Server acknowledged the native effort command.
- Focused formatting/lint and diff checks passed. No schema or protocol change.

The real-Gateway fixture uses fake credentials and a simulated Copilot HTTP 503, with no network inference. The captures below are cropped to the complete conversation area; the unrelated sidebar is excluded from both baseline and candidate images.

| Surface | Before | After |
| --- | --- | --- |
| Existing chat | ![Existing chat before](https://github.com/user-attachments/assets/403a3fb3-0edf-47f1-98f3-28793794ee3e) | ![Existing chat after](https://github.com/user-attachments/assets/7389d8f4-86e9-44fa-a63c-a9d271a2fc6c) |
| New Session | ![New Session before](https://github.com/user-attachments/assets/2730b548-02a4-4486-a5be-e548d00ee075) | ![New Session after](https://github.com/user-attachments/assets/9281e132-d8c5-4ddf-af0c-474696346df7) |

Refresh notice remains visible beside the supported controls:

![Refresh notice with working effort control](https://github.com/user-attachments/assets/8899cfe4-b296-42d3-9a25-2e9a254414ac)

Known unrelated main failure: the session-link presentation test expects `inline-grid` but observes `grid` in an existing flex container. The same test and styles fail in [main CI](https://github.com/openclaw/openclaw/actions/runs/34567817345/job/103163547116) and are unchanged by this PR.

Co-authored-by: Ayaan Zaidi <[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 maintainer Maintainer-authored PR size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Partial model catalogue refresh warning hides effort/speed controls in existing chats, but not new sessions (2026.9.4)

1 participant