Skip to content

fix: list and select routed Claude models without requiring Claude CLI - #207806

Merged
vyctorbrzezowski merged 3 commits into
mainfrom
openclaw/fix-openclaw-sessions-patch-com-clawrouter-anthropic-clau-4b47a9
Nov 29, 2026
Merged

vyctorbrzezowski merged 3 commits into
mainfrom
openclaw/fix-openclaw-sessions-patch-com-clawrouter-anthropic-clau-4b47a9

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Problem and impact

When the direct Claude route was pinned to Claude CLI, switching to the same model through ClawRouter could incorrectly require the CLI plugin. models.list also evaluated routed models using the CLI runtime’s credentials and could mark them unavailable despite a usable router account.

The chat picker had a separate problem: even with a selectable model in its catalog, searching for clawrouter opu returned no match.

Changes

  • Index each qualified runtime rule by its model segment, not by its full reference as an additional key. A direct model’s full reference can be another provider’s model ID. Direct Claude keeps its configured runtime; routed Claude uses its own policy.
  • Preserve literal matches first. If the whole query does not match any field, match all words across the name, provider, keywords, and reference of the same row. No change to discovery, account rotation, labels, or layout.

Verification

  • On the base, the session patch required Claude CLI, and the default-list regression reported the routed model as unavailable on Claude CLI. With the runtime fix alone, authenticated Gateway RPCs returned a selectable routed Opus on OpenClaw and accepted the session patch without a runtime override.
  • With only the runtime fix, Chromium found zero rows for clawrouter opu despite having the routed model. With the picker fix, it selected the routed Opus, not direct Opus or a different routed model.
  • End-to-end: Chromium connected to an isolated Gateway with synthetic provider credentials. Its default models.list returned the routed Opus as available on OpenClaw, and the chat picker showed that same route as selectable for the literal search.
  • Original runtime/session suites: 59 tests passed. Follow-up: 32 catalog, 38 Chromium picker, and one search-ranking test passed. Targeted typechecks, lint, formatting, and local review passed. No provider inference or live account failover was tested.

Picker comparison

Real Control UI component in Chromium, synthetic model options, same phone viewport. Before: 5f8628854c0c. After: df0f747ed329.

Before After
Empty result for clawrouter opu Routed Claude Opus matches
Empty results area marked Matching Claude row marked

🦞 Made with OpenClaw

@clawsweeper

clawsweeper Bot commented Nov 28, 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.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime agents Agent runtime and tooling size: XS labels Nov 28, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. impact:auth-provider Auth, provider routing, model choice, or SecretRef resolution may break. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. 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. labels Nov 28, 2026
@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head 5f8628854c0cdf6615dad91b69a1a8e3c4af7109, but the PR head is now df0f747ed3298e966387422327962479c7588310. Its old verdict and PR readiness labels are no longer current.

Next step
Comment @clawsweeper re-review when the current head is ready; pushes after the first review are not reviewed automatically.

Review history (1 earlier review cycle)
  • reviewed 2026-11-28T23:31:55.499Z sha 5f86288 :: passed. :: none

@vyctorbrzezowski vyctorbrzezowski changed the title fix: let sessions switch to Claude through a router without requiring Claude CLI fix: list and select routed Claude models without requiring Claude CLI Nov 29, 2026
@clawsweeper clawsweeper Bot removed 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. labels Nov 29, 2026
Baseline-Refresh: 792525ec1555c943f76fd72183841b3c2443401f
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S and removed size: XS labels Nov 29, 2026
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 29, 2026 05:10
@vyctorbrzezowski
vyctorbrzezowski merged commit cd7baef into main Nov 29, 2026
197 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/fix-openclaw-sessions-patch-com-clawrouter-anthropic-clau-4b47a9 branch November 29, 2026 05:29
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Nov 29, 2026
* commit 'a012e91c821705e443e42660c34e352623fb0a70': (584 commits)
  fix: confirm recovered config edits while the Gateway is busy (#207918)
  fix: make desktop chat presence avatars slightly smaller (#207966)
  fix: list and select routed Claude models without requiring Claude CLI (#207806)
  fix(ci): check out verifier before plugin preflight reuse
  test(reply): prove channel replacement on user messages (#207813)
  fix(release): bootstrap smoke uses persistent agent creation
  fix(ui): stop model picker Enter checks from failing on cold opens (#207963)
  fix: explain when a provider policy stops a chat reply (#207411)
  fix: show context usage during Claude CLI turns (#207036)
  fix: align the side panel with its resize divider (#207936)
  fix: stop the manual handoff UI test from hanging after completion (#207945)
  fix: surface favorites and recommended models in picker search (#201450)
  fix: show the saved quota reset when chat skips its only model (#207210)
  fix: avoid reloading unchanged plugins after Gateway boot (#207949)
  fix: keep Task progress double-clicks from changing the window (#207937)
  fix(doctor): continue repairs past retained conflicting exec approvals (#207951)
  test(reply): make account isolation assertion decisive (#207793)
  fix: keep task progress compact when reopening Details (#207943)
  fix(ui): restore the saved reading position after an empty search (#207673)
  fix: remove four Memory Wiki settings that had no effect (#207882)
  ...
vincentkoc added a commit that referenced this pull request Nov 29, 2026
* commit 'ea8cd30a48de1f42962bb95535d2e1b3b201fc36': (599 commits)
  fix(ui): show a subtle placeholder while a new chat gets its title (#207809)
  fix: remove dismissed chat suggestions without waiting (#207792)
  test(gateway): isolate publication recovery memory pressure (#207993)
  fix(workboard): let users delete an empty default board (#207909)
  fix(ui): remove Open PR from the session menu (#207808)
  feat(ui): offer Add to Home agent when Home sidebar is open (#207773)
  fix(ui): keep narrow desktop composers on desktop icon and control sizes (#207772)
  fix: remove extra space on the right of the compact iPad chat bar (#207763)
  fix: keep the task progress options button inside the Details header (#207940)
  fix(workboard): update the active list when you archive or restore a card (#207790)
  fix: move dropped sessions into their Workboard column immediately (#207787)
  fix(whatsapp): retain sender for explicit current-message reactions (#190121)
  fix: return the agent ID when agents add finishes offline (#207926)
  fix: stop sending internal steering errors to the chat (#207150)
  fix(agents): scheduled runs fail after a read or fetch error the model recovered from (#180922)
  fix: confirm recovered config edits while the Gateway is busy (#207918)
  fix: make desktop chat presence avatars slightly smaller (#207966)
  fix: list and select routed Claude models without requiring Claude CLI (#207806)
  fix(ci): check out verifier before plugin preflight reuse
  test(reply): prove channel replacement on user messages (#207813)
  ...
tideclaw-bot pushed a commit that referenced this pull request Nov 30, 2026
#207806)

* fix: keep routed Claude models on their selected provider runtime

* fix(ui): find routed models by provider and model name

* fix: refresh the reviewed correction baseline

Baseline-Refresh: 792525ec1555c943f76fd72183841b3c2443401f
Co-authored-by: Vyctor H. Brzezowski <[email protected]>
(cherry picked from commit cd7baef)

Follow-up audit: Pinned main audit found no later same-path, PR-number, or source-SHA follow-ups.

Release adaptation: Keep stable search ordering, fixed ranking buckets, and eager shortcut ownership. Add a lowest-priority match for terms split across provider, name, keywords, and reference.

Co-authored-by: RomneyDa <[email protected]>
tideclaw-bot pushed a commit that referenced this pull request Nov 30, 2026
#207806)

* fix: keep routed Claude models on their selected provider runtime

* fix(ui): find routed models by provider and model name

* fix: refresh the reviewed correction baseline

Baseline-Refresh: 792525ec1555c943f76fd72183841b3c2443401f
Co-authored-by: Vyctor H. Brzezowski <[email protected]>
(cherry picked from commit cd7baef)

Release adaptation: Preserve release recommended-first tie breaking and fixed relevance buckets; add exact qualified matches and cross-field token fallback without the main-only favorite/catalog row contract.

Co-authored-by: RomneyDa <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 30, 2026
openclaw#207806)

* fix: keep routed Claude models on their selected provider runtime

* fix(ui): find routed models by provider and model name

* fix: refresh the reviewed correction baseline

Baseline-Refresh: 792525ec1555c943f76fd72183841b3c2443401f
Co-authored-by: Vyctor H. Brzezowski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui gateway Gateway runtime impact:auth-provider Auth, provider routing, model choice, or SecretRef resolution may break. P2 Normal backlog priority with limited blast radius. size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant