Skip to content

feat(auth): ask before showing restricted provider models - #144468

Merged
obviyus merged 2 commits into
mainfrom
feat/models-login-consent
Sep 11, 2026
Merged

obviyus merged 2 commits into
mainfrom
feat/models-login-consent

Conversation

@obviyus

@obviyus obviyus commented Sep 10, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Login could save credentials while new models stayed hidden by restrictions, or expand a legacy model map without consent.

Why This Change Was Made

The shared login flow saves credentials first, then asks whether to show all of that provider’s models or keep current restrictions. Only current authorized consent changes policy through the existing writer. Saved policy and confirmed Gateway application have separate messages.

User Impact

Defaults stay unchanged unless explicitly requested. Users can cancel the post-save choice without losing the credential. Unconfirmed application gives restart guidance; no new config key or schema is added.

Evidence

Telegram button clicks with synthetic authentication verified All expands the model list and Keep preserves it. CLI proof with reload disabled retained the old live list until restart. Compiled plugin-interface and browser flows passed All, Keep, and cancellation. Registered command and login tests passed. One native channel Keep flow remained unproved, and no real user-client slash/button run was claimed.

Related: #136257, #144491.

@obviyus
obviyus requested a review from a team as a code owner September 10, 2026 23:00
@clawsweeper

clawsweeper Bot commented Sep 10, 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 docs Improvements or additions to documentation channel: discord Channel integration: discord channel: telegram Channel integration: telegram app: web-ui App: web-ui gateway Gateway runtime commands Command implementations size: XL maintainer Maintainer-authored PR labels Sep 10, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 10, 2026
@clawsweeper

clawsweeper Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 10, 2026, 9:00 PM ET / September 11, 2026, 01:00 UTC (Revision 3).

ClawSweeper review

What this changes

Adds a shared choice after provider sign-in to show that provider’s restricted models or keep existing restrictions across CLI, private chat, and Control UI.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep open: this protected PR supplies distinct behavior still absent from main. The earlier routing and authorization findings are addressed, and this review found no new blocking defect.

Priority: P2
Reviewed head: df8a620529281abc1ea09c95819db0769207ce48

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, coherent implementation with relevant real-flow evidence, resolved prior findings, and a documented SDK compatibility tradeoff.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The matching PR-body snapshot reports real Telegram All/Keep clicks exercising the shared consent writer, CLI visibility changing only after Gateway restart when reload is disabled, and compiled SDK All/Keep/cancellation results. Authority effect captures and Gateway ownership tests supplement this evidence; the disclosed native Discord Keep gap is explicitly accepted.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The matching PR-body snapshot reports real Telegram All/Keep clicks exercising the shared consent writer, CLI visibility changing only after Gateway restart when reload is disabled, and compiled SDK All/Keep/cancellation results. Authority effect captures and Gateway ownership tests supplement this evidence; the disclosed native Discord Keep gap is explicitly accepted.
Evidence reviewed 10 items Pinned introduction boundary: Reviewed the merge-base d30daf5 to pinned head delta. The supplied test merge has mismatched parents and was not used to attribute removal of current-main behavior.
One consent and policy owner: The shared owner defaults to Keep, compares the current policy with the prepared policy, preserves agent/default/legacy ownership, and rechecks authority before commit. Application receipts distinguish saved policy from confirmed Gateway application.
Earlier findings addressed: Typed Discord command callbacks now retain native routing. Deferred answers use the answering command’s current authority, check registry ownership, and pass fresh config through the policy writer; focused tests cover permission withdrawal before reading and during preflight.
Findings None None.
Security None None.

How this fits together

Provider login saves credentials for OpenClaw’s model connections. The new consent step connects that login flow to the existing model-policy writer, which controls model visibility across clients.

flowchart TD
  A[CLI or private chat or Control UI] --> B[Provider sign-in]
  B --> C[Save credentials]
  C --> D{Provider restricted?}
  D -->|No| E[Complete login]
  D -->|Yes| F[Ask All or Keep]
  F -->|Keep| E
  F -->|All| G[Recheck authority and current policy]
  G --> H[Save policy and report application]
Loading

Before merge

  • Resolve merge risk (P1) - Third-party SDK adapters that reject selections after credential persistence can report partial failure despite saved credentials; the documented transition and package-consumer proof do not establish compatibility with every external adapter.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source +552, Tests +1044, Docs +61. Total +1657 across 28 files.

View PR surface stats
Area Files Added Removed Net
Source 12 672 120 +552
Tests 14 1282 238 +1044
Docs 2 61 0 +61
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 28 2015 358 +1657

Review metrics

Metric Value Why it matters
Production versus test growth production +552 net lines; tests/support +1,044 net lines Production growth supplies shared consent and transport integration; the larger test growth covers policy ownership, cancellation, authority, and delivery.
Configuration surface 0 new config keys or protocol fields The choice updates existing policy through existing wizard and command contracts.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/commands/models/auth-model-policy.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Retain the documented SDK transition (recommended)
    Accept the additional post-save selection with the supplied package-consumer proof and documented saved-credentials error handling.

Technical review

Best possible solution:

Keep one shared consent owner, preserve existing restrictions and defaults, and retain the documented SDK transition with its All/Keep/cancellation compatibility evidence.

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

Not applicable as a feature reproduction verdict: source confirms main lacks this confirmation step, and the PR records concrete restricted-provider All/Keep scenarios.

Is this the best way to solve the issue?

Yes. Reusing the existing config writer, wizard, and typed command presentation keeps policy decisions centralized while preserving concurrent settings and credential persistence.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against d841e35101d5.

Labels

Label justifications:

  • P2: This improves restricted-provider discovery after login without evidence of an urgent production outage.
  • merge-risk: 🚨 compatibility: Public SDK login consumers must tolerate an additional selection after credentials have already been saved.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The matching PR-body snapshot reports real Telegram All/Keep clicks exercising the shared consent writer, CLI visibility changing only after Gateway restart when reload is disabled, and compiled SDK All/Keep/cancellation results. Authority effect captures and Gateway ownership tests supplement this evidence; the disclosed native Discord Keep gap is explicitly accepted.
  • proof: sufficient: Contributor real behavior proof is sufficient. The matching PR-body snapshot reports real Telegram All/Keep clicks exercising the shared consent writer, CLI visibility changing only after Gateway restart when reload is disabled, and compiled SDK All/Keep/cancellation results. Authority effect captures and Gateway ownership tests supplement this evidence; the disclosed native Discord Keep gap is explicitly accepted.
  • proof: telegram-e2e: This PR needs Telegram Test Server proof with the repository E2E skill. The new consent buttons and resulting model-list visibility are Telegram-visible; the PR reports Test Server proof for both choices.

Evidence

What I checked:

  • Pinned introduction boundary: Reviewed the merge-base d30daf5 to pinned head delta. The supplied test merge has mismatched parents and was not used to attribute removal of current-main behavior. (df8a62052928)
  • One consent and policy owner: The shared owner defaults to Keep, compares the current policy with the prepared policy, preserves agent/default/legacy ownership, and rechecks authority before commit. Application receipts distinguish saved policy from confirmed Gateway application. (src/commands/models/auth-model-policy.ts:101, df8a62052928)
  • Earlier findings addressed: Typed Discord command callbacks now retain native routing. Deferred answers use the answering command’s current authority, check registry ownership, and pass fresh config through the policy writer; focused tests cover permission withdrawal before reading and during preflight. (src/auto-reply/reply/commands-login.consent.test.ts:24, df8a62052928)
  • Hosted authority lifecycle: Browser authority closes after credential persistence. Consent remains bound to the current wizard connection and administrator authority, with cancellation restored before input and locked at final policy commit. Tests cover peer rejection, cancellation, expiry, and revoked authority. (src/gateway/server-methods/models-auth-login.ts:152, df8a62052928)
  • SDK compatibility contract: Documentation explicitly describes the new post-save selection, deferred-answer ownership, cancellation, and saved-credentials errors. The PR reports compiled package-consumer proof for All, Keep, and post-save cancellation. Public docs: docs/plugins/sdk-provider-plugins.md. (docs/plugins/sdk-provider-plugins.md:56, df8a62052928)
  • Complete proof description inspected: Read the full PR body through GitHub and verified its 12,477 UTF-16 units and SHA-256 1d1b66e67a645d034676f3ea2bc3f0132221d7c0655cdac96e2825f1e80cc174 match the captured snapshot. It reports real Telegram All/Keep results, unchanged credentials/defaults, CLI saved-versus-applied behavior across Gateway restart, package-consumer results, and browser checks. The incomplete native Discord Keep scenario is explicitly disclosed and accepted in the body. (df8a62052928)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

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

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-10T23:11:00.835Z sha 933c9d1 :: needs real behavior proof before merge. :: [P1] Preserve native command routing for Discord login buttons | [P2] Recheck command permission before committing delayed consent
  • reviewed 2026-09-11T00:05:34.083Z sha ac7eabe :: blocked before merge. :: none

@obviyus
obviyus force-pushed the feat/models-login-consent branch from 933c9d1 to ac7eabe Compare September 10, 2026 23:57
@obviyus

obviyus commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator Author

landpr-approve-admin-merge
pr: 144468
head: ac7eabe
scope: owner-review

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 11, 2026
@obviyus
obviyus force-pushed the feat/models-login-consent branch from ac7eabe to d6cb6aa Compare September 11, 2026 00:44
@obviyus

obviyus commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator Author

landpr-approve-admin-merge
pr: 144468
head: d6cb6aa
scope: owner-review

@obviyus

obviyus commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator Author

landpr-approve-admin-merge
pr: 144468
head: df8a620
scope: owner-review

@obviyus

obviyus commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator Author

landpr-approve-unrelated-red
pr: 144468
head: df8a620
run: 34548349273 attempt: 1
failed: control-ui-performance job=103105927532 conclusion=failure
check: openclaw/ci-gate

@obviyus
obviyus merged commit 047c925 into main Sep 11, 2026
191 of 194 checks passed
@obviyus
obviyus deleted the feat/models-login-consent branch September 11, 2026 01:11
@obviyus

obviyus commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator Author

Landed as 047c925cff7e80d04ad9f4fb3dd498a267fe9157 from head df8a620529281abc1ea09c95819db0769207ce48 through the guarded merge workflow.

Proof: Real Telegram Test Server All/Keep choices change /models from 1→2 / 1→1 while preserving credentials and the default. The CLI reports saved/unconfirmed state until the separate Gateway restarts. The rebuilt package consumer passes All, Keep and post-save cancellation. Gateway lifecycle tests pass 21 cases; integrated chat/Telegram tests pass 79; the final test-import correction passes all 50 chat cases.

  • Bug: Provider login could leave models hidden without offering a choice, or widen legacy restrictions through provider defaults.
  • Fix: Save credentials first, then use one current consent decision and the existing policy writer across CLI, private chat and Control UI. Browser authorization ends before the later consent prompt.
Before After
Model access could change without current consent, or remain hidden without a choice. All adds only the selected provider wildcard; Keep and cancellation retain restrictions. Credentials remain saved.

The exact-head review found no code or security defect. The documented SDK post-save selection contract is accepted with package-consumer proof; legacy/default/agent policy tests cover the existing materialization path. No new config key, schema, migration or protocol field was added. Native Discord All passes the registered-command harness; the full native Keep case remains an explicitly accepted pre-login harness gap. No real Discord user-client exchange is claimed.

CI: Run 34548349273 completed with 125 passing jobs. Its only failed child was control-ui-performance, job 103105927532: startup JavaScript gzip was 353,134 bytes against a 353,107-byte limit. The aggregate gate failed because of that child. No Android child failed this final run.

The UI failure is unrelated to Auth D. A fresh paired build of exact CI base 782a994014549592446f281ecb0bd9c32242ef77 and tested merge c7e034db0c95ad7594e1985e63e834adc26a7684 produced identical output: 353,068 gzip bytes, 8 startup requests, 1,798 matching first-party source entries and 1,465 byte-identical emitted files. Both base and merge build commands exited 0. The diagnostic uses Node 24.19; CI uses Node 24.20. It proves zero Auth D growth, not reproduction of the absolute 27-byte CI excess.

The earlier main run 34547582025, job 103103722226 had the same budget failure at 353,123 bytes before Auth D. Main's later browser change 907039391f5a (#144508) was included in the fresh comparison. No exact matching final-base main job or specific introducing commit for the absolute excess is claimed. The unmodified gate owner is scripts/check-control-ui-performance.mts; the startup baseline and allowances were not changed.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 11, 2026
…44468)

Save provider credentials before asking whether to expose restricted provider models. Apply only current consent through the existing config writer, preserve defaults and legacy restrictions, recheck live command permission, and distinguish saved policy from confirmed Gateway application.

Use shared choices across CLI, chat and Control UI, retain native Discord routing, and close browser authorization before the later consent prompt. Targeted tests, package-consumer checks, real Telegram choices, CLI restart behavior and native Discord All support the change. The remaining native Keep harness limitation is explicitly accepted and documented in the PR.

Co-authored-by: Ayaan Zaidi <[email protected]>
obviyus added a commit that referenced this pull request Sep 13, 2026
## What Problem This Solves

Show all after sign-in reported success while fetched account models stayed missing from `/models` (#144468).

## Why This Change Was Made

Keep complete discovery in the existing inventory and apply current membership before publication. The decision "whether a provider's declared manual IDs constrain discovered membership under the resolved agent policy" is made by exactly one mechanism at `src/agents/provider-model-membership.ts:24`.

Production: 194 added / 67 removed (+127). Growth preserves manual metadata and alias provenance while retaining raw discovery without a second cache or fetch. The helper uses named `cfg`, `agentId` and `normalizeProvider` options; this is the only production adjustment since 771b8cdc.

Based on #146317, which updates the same catalog publication owner.

## User Impact

Show all exposes fetched models immediately. Keep preserves restrictions.

## Evidence

The same Telegram flow shows 8 models before and 10 after the fix, including both account-only rows, without another catalog request. Four Gateway cases cover widening, narrowing, agent overrides and overlapping hooks.

All 17 sanitized configuration shapes reached Gateway readiness with fake credentials (one with Tailscale disabled). An installed old-state configuration passed login and both choices.

## Compatibility

No stored-state or public API change. Manual lists keep their behavior. No older-host compatibility contract changes.

## Consumers

- `/models` and `models.list` adopt recomputed membership.
- Prepared model leases receive the same permitted executable rows.
- CLI catalog reads and the embedded terminal model list adopt the recomputed membership from the shared catalog owner; their response and display formats are unchanged. This includes the no-Gateway CLI path.

## Invalidation

Policy reload rebuilds the projection. Account, provider and plugin changes still invalidate discovery; restart creates a fresh owner.

## Contention

No new wait, lock or queue; recomposition stays synchronous.

## Tests

Four new cases exercise registered `models.list` and `config.patch`. Existing startup fixtures adopt the internal provenance map. Real Telegram login and choices, catalog, credential-reload and startup checks pass.

Co-authored-by: Ayaan Zaidi <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 13, 2026
## What Problem This Solves

Show all after sign-in reported success while fetched account models stayed missing from `/models` (openclaw#144468).

## Why This Change Was Made

Keep complete discovery in the existing inventory and apply current membership before publication. The decision "whether a provider's declared manual IDs constrain discovered membership under the resolved agent policy" is made by exactly one mechanism at `src/agents/provider-model-membership.ts:24`.

Production: 194 added / 67 removed (+127). Growth preserves manual metadata and alias provenance while retaining raw discovery without a second cache or fetch. The helper uses named `cfg`, `agentId` and `normalizeProvider` options; this is the only production adjustment since 771b8cdc.

Based on openclaw#146317, which updates the same catalog publication owner.

## User Impact

Show all exposes fetched models immediately. Keep preserves restrictions.

## Evidence

The same Telegram flow shows 8 models before and 10 after the fix, including both account-only rows, without another catalog request. Four Gateway cases cover widening, narrowing, agent overrides and overlapping hooks.

All 17 sanitized configuration shapes reached Gateway readiness with fake credentials (one with Tailscale disabled). An installed old-state configuration passed login and both choices.

## Compatibility

No stored-state or public API change. Manual lists keep their behavior. No older-host compatibility contract changes.

## Consumers

- `/models` and `models.list` adopt recomputed membership.
- Prepared model leases receive the same permitted executable rows.
- CLI catalog reads and the embedded terminal model list adopt the recomputed membership from the shared catalog owner; their response and display formats are unchanged. This includes the no-Gateway CLI path.

## Invalidation

Policy reload rebuilds the projection. Account, provider and plugin changes still invalidate discovery; restart creates a fresh owner.

## Contention

No new wait, lock or queue; recomposition stays synchronous.

## Tests

Four new cases exercise registered `models.list` and `config.patch`. Existing startup fixtures adopt the internal provenance map. Real Telegram login and choices, catalog, credential-reload and startup checks pass.

Co-authored-by: Ayaan Zaidi <[email protected]>
hbjydev pushed a commit to hbjydev/phoebe that referenced this pull request Sep 20, 2026
…26.9.5) (#696)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [ghcr.io/openclaw/openclaw](https://openclaw.ai) ([source](https://github.com/openclaw/openclaw)) | patch | `2026.9.4` → `2026.9.5` |

---

### Release Notes

<details>
<summary>openclaw/openclaw (ghcr.io/openclaw/openclaw)</summary>

### [`v2026.9.5`](https://github.com/openclaw/openclaw/releases/tag/v2026.9.5): openclaw 2026.9.5

[Compare Source](openclaw/openclaw@v2026.9.4...v2026.9.5)

#### 2026.9.5

##### Highlights

- **Safer upgrades and retained history:** Doctor preserves session history and repeated-repair state, finishes upgrades with invalid retained histories, and avoids repeatedly stalling or stopping a Gateway that is still starting. ([#&#8203;149741](openclaw/openclaw#149741), [#&#8203;149956](openclaw/openclaw#149956), [#&#8203;148901](openclaw/openclaw#148901), [#&#8203;149308](openclaw/openclaw#149308), [#&#8203;149823](openclaw/openclaw#149823), [#&#8203;149760](openclaw/openclaw#149760)) Related [#&#8203;149822](openclaw/openclaw#149822) Thanks [@&#8203;masatohoshino](https://github.com/masatohoshino).
- **Live plugin management:** install and reload supported plugins without restarting the Gateway, update tools in active agent and managed Codex conversations, and manage multiple plugins in one CLI command. ([#&#8203;145484](openclaw/openclaw#145484), [#&#8203;145710](openclaw/openclaw#145710), [#&#8203;145713](openclaw/openclaw#145713), [#&#8203;145648](openclaw/openclaw#145648), [#&#8203;145917](openclaw/openclaw#145917), [#&#8203;149910](openclaw/openclaw#149910)) Related [#&#8203;149909](openclaw/openclaw#149909) Thanks [@&#8203;obviyus](https://github.com/obviyus).
- **Clearer multi-agent work:** distinguish execution from result delivery, use private parent completion handoffs, resume scoped session inventories, and deliver one answer for each steered input. ([#&#8203;147571](openclaw/openclaw#147571), [#&#8203;147206](openclaw/openclaw#147206), [#&#8203;150065](openclaw/openclaw#150065), [#&#8203;148051](openclaw/openclaw#148051), [#&#8203;149925](openclaw/openclaw#149925)) Related [#&#8203;27445](openclaw/openclaw#27445), [#&#8203;147955](openclaw/openclaw#147955) Thanks [@&#8203;good-warning](https://github.com/good-warning), [@&#8203;nicknmorty](https://github.com/nicknmorty), [@&#8203;obviyus](https://github.com/obviyus), [@&#8203;VACInc](https://github.com/VACInc), and [@&#8203;vincentkoc](https://github.com/vincentkoc).
- **A desktop-first Systems workspace:** manage Gateway connections through web login and switch saved Gateways independently of Primary, with sidebar switching on iOS and Android. ([#&#8203;147519](openclaw/openclaw#147519), [#&#8203;148526](openclaw/openclaw#148526), [#&#8203;147684](openclaw/openclaw#147684), [#&#8203;146641](openclaw/openclaw#146641), [#&#8203;148209](openclaw/openclaw#148209)) Related [#&#8203;147217](openclaw/openclaw#147217), [#&#8203;147576](openclaw/openclaw#147576), [#&#8203;148205](openclaw/openclaw#148205) Thanks [@&#8203;IWhatsskill](https://github.com/IWhatsskill), [@&#8203;Solvely-Colin](https://github.com/Solvely-Colin), and [@&#8203;vincentkoc](https://github.com/vincentkoc).
- **More flexible live voice:** use GPT Live across calls and meetings, choose account-specific Talk defaults, and change voices during an active Talk or Discord call. ([#&#8203;145382](openclaw/openclaw#145382), [#&#8203;146546](openclaw/openclaw#146546), [#&#8203;146676](openclaw/openclaw#146676)) Related [#&#8203;145071](openclaw/openclaw#145071).
- **Citations and review in context:** preview cited sources in web and native chats, turn selected chat text into editable comments, reference selected Android review lines, and toggle word wrapping in Review. ([#&#8203;148431](openclaw/openclaw#148431), [#&#8203;148904](openclaw/openclaw#148904), [#&#8203;148906](openclaw/openclaw#148906), [#&#8203;148649](openclaw/openclaw#148649), [#&#8203;144101](openclaw/openclaw#144101), [#&#8203;143972](openclaw/openclaw#143972)) Related [#&#8203;144093](openclaw/openclaw#144093), [#&#8203;148409](openclaw/openclaw#148409) Thanks [@&#8203;ansxor](https://github.com/ansxor), [@&#8203;IWhatsskill](https://github.com/IWhatsskill), [@&#8203;Marvinthebored](https://github.com/Marvinthebored), [@&#8203;Patrick-Erichsen](https://github.com/Patrick-Erichsen), and [@&#8203;shakkernerd](https://github.com/shakkernerd).
- **Simpler model sign-in and selection:** align native sign-in with runtime choices, sign in without changing the model, choose across agent harnesses, and connect Radius models with browser sign-in and native streaming. ([#&#8203;143588](openclaw/openclaw#143588), [#&#8203;144329](openclaw/openclaw#144329), [#&#8203;147994](openclaw/openclaw#147994), [#&#8203;145377](openclaw/openclaw#145377)) Thanks [@&#8203;obviyus](https://github.com/obviyus).

##### Changes

- **Conversation navigation:** native sidebars preview pending requests, while macOS, iOS, Android, and web chat can collapse completed work so replies and older history remain easier to read. ([#&#8203;149811](openclaw/openclaw#149811), [#&#8203;147540](openclaw/openclaw#147540), [#&#8203;148002](openclaw/openclaw#148002), [#&#8203;148050](openclaw/openclaw#148050), [#&#8203;147295](openclaw/openclaw#147295)) Related [#&#8203;147271](openclaw/openclaw#147271), [#&#8203;149682](openclaw/openclaw#149682) Thanks [@&#8203;vyctorbrzezowski](https://github.com/vyctorbrzezowski).

- **Agent setup and teams:** start from role templates and a team preset, show every agent and its sessions in team mode, and use a roster-first Agents home. ([#&#8203;145712](openclaw/openclaw#145712), [#&#8203;141476](openclaw/openclaw#141476), [#&#8203;141097](openclaw/openclaw#141097)) Thanks [@&#8203;hannesrudolph](https://github.com/hannesrudolph).

- **Group conversations:** coordinate bounded multi-agent group threads across channels and share selected sessions read-only with a paired team Gateway. ([#&#8203;141411](openclaw/openclaw#141411), [#&#8203;136253](openclaw/openclaw#136253))

- **Activity and run artifacts:** show rolling session recaps, Git changes and PR previews, and select assistant-delivered files by the run that produced them. ([#&#8203;147441](openclaw/openclaw#147441), [#&#8203;145530](openclaw/openclaw#145530), [#&#8203;147682](openclaw/openclaw#147682)) Related [#&#8203;145529](openclaw/openclaw#145529), [#&#8203;147383](openclaw/openclaw#147383) Thanks [@&#8203;onlyysaurabh](https://github.com/onlyysaurabh) and [@&#8203;vincentkoc](https://github.com/vincentkoc).

- **Browser and dashboards:** download assets from the Browser sidebar, share browser dashboards with agents, embed websites in full-screen session dashboards, and save shared split/full-screen defaults. ([#&#8203;144480](openclaw/openclaw#144480), [#&#8203;146702](openclaw/openclaw#146702), [#&#8203;146312](openclaw/openclaw#146312), [#&#8203;146475](openclaw/openclaw#146475)) Related [#&#8203;144477](openclaw/openclaw#144477), [#&#8203;146303](openclaw/openclaw#146303), [#&#8203;146308](openclaw/openclaw#146308), [#&#8203;146577](openclaw/openclaw#146577) Thanks [@&#8203;Patrick-Erichsen](https://github.com/Patrick-Erichsen).

- **Desktop interaction:** control Gateway desktops without a paired node, match virtual worker displays to their viewport, and watch live desktops in Picture-in-Picture. ([#&#8203;147275](openclaw/openclaw#147275), [#&#8203;143938](openclaw/openclaw#143938), [#&#8203;143836](openclaw/openclaw#143836)) Related [#&#8203;143829](openclaw/openclaw#143829), [#&#8203;147274](openclaw/openclaw#147274) Thanks [@&#8203;vincentkoc](https://github.com/vincentkoc).

- **Remote workspaces:** start remote sessions without a repository, select repository-defined source checkouts, and reduce source storage through filesystem snapshots, APFS clones, and ReFS clones. ([#&#8203;147773](openclaw/openclaw#147773), [#&#8203;149581](openclaw/openclaw#149581), [#&#8203;146251](openclaw/openclaw#146251), [#&#8203;146338](openclaw/openclaw#146338), [#&#8203;146403](openclaw/openclaw#146403)) Related [#&#8203;146250](openclaw/openclaw#146250), [#&#8203;146288](openclaw/openclaw#146288), [#&#8203;149580](openclaw/openclaw#149580) Thanks [@&#8203;fuller-stack-dev](https://github.com/fuller-stack-dev) and [@&#8203;obviyus](https://github.com/obviyus).

- **Code mode:** find MCP tools by task, reuse results between code cells, retain oversized results for later cells, and infer result shape from the requested action. ([#&#8203;147134](openclaw/openclaw#147134), [#&#8203;147154](openclaw/openclaw#147154), [#&#8203;147278](openclaw/openclaw#147278), [#&#8203;147291](openclaw/openclaw#147291))

- **Plugin state and background work:** offer asynchronous task/flow reads and worker-backed keyed and conditional state operations without removing the supported synchronous SDK paths. ([#&#8203;145851](openclaw/openclaw#145851), [#&#8203;146557](openclaw/openclaw#146557), [#&#8203;147891](openclaw/openclaw#147891))

- **Hot policy changes:** apply browser control policy, Telegram access/reply policy, and renewed TLS certificates without restarting their running services. ([#&#8203;146100](openclaw/openclaw#146100), [#&#8203;146129](openclaw/openclaw#146129), [#&#8203;146267](openclaw/openclaw#146267))

- **Model providers:** support OpenRouter sign-in from private chat, explicit consent before exposing restricted provider models, and opt-in stored HTTP continuation for compatible Responses endpoints. ([#&#8203;144491](openclaw/openclaw#144491), [#&#8203;144468](openclaw/openclaw#144468), [#&#8203;128633](openclaw/openclaw#128633)) Related [#&#8203;123215](openclaw/openclaw#123215) Thanks [@&#8203;hartmark](https://github.com/hartmark), [@&#8203;obviyus](https://github.com/obviyus), and [@&#8203;Patrick-Erichsen](https://github.com/Patrick-Erichsen).

- **Codex interaction:** answer asynchronous questions while other agent work continues, view usage beside saved logins, and expose slow or failed catalog phases with retained-request correlation. ([#&#8203;144664](openclaw/openclaw#144664), [#&#8203;132453](openclaw/openclaw#132453), [#&#8203;132454](openclaw/openclaw#132454), [#&#8203;148639](openclaw/openclaw#148639), [#&#8203;148735](openclaw/openclaw#148735), [#&#8203;149616](openclaw/openclaw#149616)) Related [#&#8203;144643](openclaw/openclaw#144643), [#&#8203;148629](openclaw/openclaw#148629), [#&#8203;148728](openclaw/openclaw#148728) Thanks [@&#8203;jesse-merhi](https://github.com/jesse-merhi).

- **Daybreak fallback:** retry supported cyber-refused turns on Daybreak, surface cyber notices, and announce successful retries. ([#&#8203;143761](openclaw/openclaw#143761), [#&#8203;145291](openclaw/openclaw#145291), [#&#8203;147146](openclaw/openclaw#147146)) Thanks [@&#8203;VACInc](https://github.com/VACInc).

- **Triage handoffs:** add Muse, Grok, Cursor, Kimi Code, and Qwen Code handoffs through the existing triage workflow. ([#&#8203;149703](openclaw/openclaw#149703), [#&#8203;149877](openclaw/openclaw#149877))

- **Automation history:** query and paginate run history from the CLI, show readable timer wake timestamps, and list matches when an automation name is ambiguous. ([#&#8203;141777](openclaw/openclaw#141777), [#&#8203;141742](openclaw/openclaw#141742), [#&#8203;150082](openclaw/openclaw#150082)) Related [#&#8203;58574](openclaw/openclaw#58574), [#&#8203;141745](openclaw/openclaw#141745) Thanks [@&#8203;Alix-007](https://github.com/Alix-007), [@&#8203;Celthi](https://github.com/Celthi), [@&#8203;Patrick-Erichsen](https://github.com/Patrick-Erichsen), and [@&#8203;shakkernerd](https://github.com/shakkernerd).

- **Structured channel questions:** answer an agent question directly from its offered Mattermost option or LINE tap. ([#&#8203;135350](openclaw/openclaw#135350), [#&#8203;133421](openclaw/openclaw#133421)) Related [#&#8203;133288](openclaw/openclaw#133288), [#&#8203;133418](openclaw/openclaw#133418) Thanks [@&#8203;edenfunf](https://github.com/edenfunf) and [@&#8203;Patrick-Erichsen](https://github.com/Patrick-Erichsen).

- **Chat composition and files:** keep drafting while history loads, offer emoji shortcodes, retain file previews in tabs with HTML rendering, and display image attachments inline in the TUI. ([#&#8203;143625](openclaw/openclaw#143625), [#&#8203;146737](openclaw/openclaw#146737), [#&#8203;146672](openclaw/openclaw#146672), [#&#8203;146644](openclaw/openclaw#146644)) Related [#&#8203;143607](openclaw/openclaw#143607), [#&#8203;146590](openclaw/openclaw#146590), [#&#8203;146610](openclaw/openclaw#146610), [#&#8203;146655](openclaw/openclaw#146655) Thanks [@&#8203;VACInc](https://github.com/VACInc), [@&#8203;vincentkoc](https://github.com/vincentkoc), and [@&#8203;vyctorbrzezowski](https://github.com/vyctorbrzezowski).

- **Review and workboards:** inspect CI jobs and steps from PR chips and select or update multiple workboard cards together. ([#&#8203;148070](openclaw/openclaw#148070), [#&#8203;144756](openclaw/openclaw#144756)) Related [#&#8203;147952](openclaw/openclaw#147952) Thanks [@&#8203;vyctorbrzezowski](https://github.com/vyctorbrzezowski).

- **Personalization:** choose an avatar during agent hatching, use custom SVG session icons, and distinguish plugin activity with compact icons. ([#&#8203;146669](openclaw/openclaw#146669), [#&#8203;147442](openclaw/openclaw#147442), [#&#8203;147333](openclaw/openclaw#147333), [#&#8203;143711](openclaw/openclaw#143711)) Related [#&#8203;143683](openclaw/openclaw#143683) Thanks [@&#8203;Patrick-Erichsen](https://github.com/Patrick-Erichsen).

- **Gateway visibility:** show ping and shared activity graphs, a browser-tab status dot, and compact System busyness widgets with all three metrics. ([#&#8203;146755](openclaw/openclaw#146755), [#&#8203;147388](openclaw/openclaw#147388), [#&#8203;147760](openclaw/openclaw#147760), [#&#8203;147840](openclaw/openclaw#147840)) Related [#&#8203;147343](openclaw/openclaw#147343), [#&#8203;147757](openclaw/openclaw#147757), [#&#8203;147829](openclaw/openclaw#147829) Thanks [@&#8203;vyctorbrzezowski](https://github.com/vyctorbrzezowski).

- **Native desktop layout:** unify Tauri setup, Quick Chat themes, title bars, and window controls; the macOS app defaults to the web experience while retaining its experimental native experience. ([#&#8203;148808](openclaw/openclaw#148808), [#&#8203;147097](openclaw/openclaw#147097), [#&#8203;149763](openclaw/openclaw#149763)) Related [#&#8203;147096](openclaw/openclaw#147096).

- **Diagnostics:** report when the runtime was built from a different commit than HEAD, expose administrative CPU profiles, and inspect native FreeBSD rc.d service discovery. ([#&#8203;144499](openclaw/openclaw#144499), [#&#8203;148004](openclaw/openclaw#148004), [#&#8203;148875](openclaw/openclaw#148875)) Related [#&#8203;148003](openclaw/openclaw#148003) Thanks [@&#8203;RomneyDa](https://github.com/RomneyDa) and [@&#8203;vincentkoc](https://github.com/vincentkoc).

- **Provider and channel configuration:** expose official channel labels/docs in JSON listings, allow a Discord API URL override, and show comparative cost analysis in the Control UI. ([#&#8203;93265](openclaw/openclaw#93265), [#&#8203;118067](openclaw/openclaw#118067), [#&#8203;100432](openclaw/openclaw#100432)) Related [#&#8203;100405](openclaw/openclaw#100405) Thanks [@&#8203;fuller-stack-dev](https://github.com/fuller-stack-dev), [@&#8203;obviyus](https://github.com/obviyus), and [@&#8203;RomneyDa](https://github.com/RomneyDa).

- **Execution options:** configure approval-reviewer thinking and fast mode, and default parallel-session capacity to four runs per available CPU. ([#&#8203;147192](openclaw/openclaw#147192), [#&#8203;147423](openclaw/openclaw#147423)) Thanks [@&#8203;VACInc](https://github.com/VACInc).

- **Plugin SDK migration — Gateway V2:** the existing Gateway handler and node-session imports now expose physical WebSocket, generic framed, and HTTP polling capabilities honestly. Before WebSocket-only operations, narrow `node.client.webSocket`; narrow `node.client.socket` separately for framed operations. Polling nodes remain visible, and the node wire protocol is unchanged. Migration details: `/plugins/sdk-migration/compatibility-policy#gateway-node-transport-sdk-v2`. Thanks [@&#8203;vincentkoc](https://github.com/vincentkoc) and [@&#8203;RomneyDa](https://github.com/RomneyDa).

##### Fixes

- **Identity and authorization:** stop inferring forwarded sender identity from message text, stop MiniMax token requests after chat-login permission is revoked, and preserve attachments whose content types use prototype-like names. ([#&#8203;138579](openclaw/openclaw#138579), [#&#8203;149140](openclaw/openclaw#149140), [#&#8203;143673](openclaw/openclaw#143673)) Related [#&#8203;149139](openclaw/openclaw#149139) Thanks [@&#8203;LiuwqGit](https://github.com/LiuwqGit), [@&#8203;masatohoshino](https://github.com/masatohoshino), [@&#8203;obviyus](https://github.com/obviyus), and [@&#8203;xialonglee](https://github.com/xialonglee).

- **Transcript and session ownership:** prevent stale companion/cloud transcript writes, preserve context and ownership across compaction, and track new sessions before their first transcript write. ([#&#8203;149997](openclaw/openclaw#149997), [#&#8203;149840](openclaw/openclaw#149840), [#&#8203;149712](openclaw/openclaw#149712))

- **Final replies and completed work:** retain completed tool receipts through text-only finalization and empty-answer retries without repeating completed actions or recording internal continuation prompts as new user messages. Thanks [@&#8203;vincentkoc](https://github.com/vincentkoc) and [@&#8203;RomneyDa](https://github.com/RomneyDa).

- **Large-history responsiveness:** keep large session detail and chat metadata reads responsive, avoid blocking the Gateway during memory index publication, and reduce retention work and startup/Doctor memory pressure. ([#&#8203;149749](openclaw/openclaw#149749), [#&#8203;149853](openclaw/openclaw#149853), [#&#8203;149901](openclaw/openclaw#149901), [#&#8203;149754](openclaw/openclaw#149754), [#&#8203;149704](openclaw/openclaw#149704)) Thanks [@&#8203;fuller-stack-dev](https://github.com/fuller-stack-dev).

- **Update and Doctor recovery:** preserve shared WAL after a refused restore, unblock shared-state repair for July upgrades, and avoid false pending migrations for bundled runtimes. ([#&#8203;149918](openclaw/openclaw#149918), [#&#8203;149753](openclaw/openclaw#149753), [#&#8203;149653](openclaw/openclaw#149653)) Thanks [@&#8203;obviyus](https://github.com/obviyus).

- **Service upgrades:** preserve Gateway authentication when reinstalling legacy services and avoid timing out systemd restart inspection. ([#&#8203;149686](openclaw/openclaw#149686), [#&#8203;149970](openclaw/openclaw#149970))

- **Managed-service updates:** fix service environment refresh failures when upgrading from 2026.9.4 to 2026.9.5 with `openclaw update`. ([#&#8203;151977](openclaw/openclaw#151977))

- **Subagent continuation:** inherit the active model at spawn, enforce fork limits against current context, and resume tasks after output-limited tool calls. ([#&#8203;149036](openclaw/openclaw#149036), [#&#8203;149666](openclaw/openclaw#149666), [#&#8203;149844](openclaw/openclaw#149844)) Thanks [@&#8203;vincentkoc](https://github.com/vincentkoc).

- **Channel shutdown:** finish accepted Telegram work, Discord introductions, and deferred Slack replay before shutdown, while preserving Telegram spool settlement ownership. ([#&#8203;150080](openclaw/openclaw#150080), [#&#8203;150072](openclaw/openclaw#150072), [#&#8203;150073](openclaw/openclaw#150073), [#&#8203;149953](openclaw/openclaw#149953)) Thanks [@&#8203;obviyus](https://github.com/obviyus).

- **Channel startup and routing:** avoid blocking Discord startup on persisted bindings and allow cross-provider messaging by default. ([#&#8203;149861](openclaw/openclaw#149861), [#&#8203;149875](openclaw/openclaw#149875))

- **Plugin reloads:** reuse the published inbound registry and bundled setup code, keep Lossless usable after settings reload, and validate source reloads under Bun. ([#&#8203;149648](openclaw/openclaw#149648), [#&#8203;149646](openclaw/openclaw#149646), [#&#8203;149675](openclaw/openclaw#149675), [#&#8203;150088](openclaw/openclaw#150088)) Thanks [@&#8203;Patrick-Erichsen](https://github.com/Patrick-Erichsen).

- **Provider execution:** retain disabled-plugin CLI backend capabilities during inspection, reject incomplete compatible reply streams, and preserve the configured transport during authentication refresh. ([#&#8203;149837](openclaw/openclaw#149837), [#&#8203;149842](openclaw/openclaw#149842), [#&#8203;150003](openclaw/openclaw#150003)) Related [#&#8203;149854](openclaw/openclaw#149854), [#&#8203;149855](openclaw/openclaw#149855) Thanks [@&#8203;obviyus](https://github.com/obviyus), [@&#8203;zhangguiping-xydt](https://github.com/zhangguiping-xydt), and [@&#8203;SunnyShu0925](https://github.com/SunnyShu0925).

- **Codex startup and catalogs:** prevent service refresh from repeatedly aborting startup, bound catalog memory while retaining tied rows, and avoid repeated scans across multiple homes. ([#&#8203;149365](openclaw/openclaw#149365), [#&#8203;150112](openclaw/openclaw#150112), [#&#8203;149879](openclaw/openclaw#149879)) Thanks [@&#8203;bdjben](https://github.com/bdjben) and [@&#8203;obviyus](https://github.com/obviyus).

- **Automation correctness:** prevent extra event-schedule runs, reject ambiguous exact-name lookups, and keep selected automation history and edits attached to the intended task. ([#&#8203;149902](openclaw/openclaw#149902), [#&#8203;149958](openclaw/openclaw#149958), [#&#8203;149955](openclaw/openclaw#149955), [#&#8203;150129](openclaw/openclaw#150129)) Thanks [@&#8203;Alix-007](https://github.com/Alix-007).

- **Session navigation:** retain archive confirmation after leaving Sessions, preserve pagination when switching agents during deletion, and keep newer selections when older mutations finish. ([#&#8203;150108](openclaw/openclaw#150108), [#&#8203;150125](openclaw/openclaw#150125), [#&#8203;149959](openclaw/openclaw#149959))

- **Chat state:** keep your own messages right-aligned through refresh and reconnect, and clear resolved queued-message reorder conflicts. ([#&#8203;147634](openclaw/openclaw#147634), [#&#8203;149962](openclaw/openclaw#149962)) Related [#&#8203;147511](openclaw/openclaw#147511) Thanks [@&#8203;keith9681](https://github.com/keith9681), [@&#8203;obviyus](https://github.com/obviyus), and [@&#8203;SunnyShu0925](https://github.com/SunnyShu0925).

- **Files and selection:** keep workspace files readable, preserve Files selection during directory refreshes, retain parent navigation for unavailable folders, and preserve model searches during text composition. ([#&#8203;149499](openclaw/openclaw#149499), [#&#8203;149900](openclaw/openclaw#149900), [#&#8203;150118](openclaw/openclaw#150118), [#&#8203;149845](openclaw/openclaw#149845))

- **Windows paths and credentials:** preserve state roots during database admission and worker startup, retain credential reads, and read exact configuration filenames containing whitespace. ([#&#8203;149976](openclaw/openclaw#149976), [#&#8203;150035](openclaw/openclaw#150035), [#&#8203;149124](openclaw/openclaw#149124), [#&#8203;149629](openclaw/openclaw#149629)) Related [#&#8203;149630](openclaw/openclaw#149630) Thanks [@&#8203;obviyus](https://github.com/obviyus) and [@&#8203;zhangguiping-xydt](https://github.com/zhangguiping-xydt).

- **Workspace safety:** keep file tools aligned with overlapping sandbox mounts and preserve work through worktree creation and cleanup races. ([#&#8203;148893](https://github.com/openclaw/openclaw/issues/148893), [#&#8203;149914](https://github.com/openclaw/openclaw/issues/149914)) Thanks [@&#8203;vincentkoc](https://github.com/vincentkoc).

- **Legacy updater handoffs:** keep the Node runner resolver independent of candidate runtime imports, complete changed-plugin Doctor work through the correct parent/child owner, and inspect copied Doctor contracts in private rehearsals while leaving live installation paths protected. Thanks [@&#8203;vincentkoc](https://github.com/vincentkoc) and [@&#8203;RomneyDa](https://github.com/RomneyDa).

- **Plugin SDK authoring:** retain released boolean memory-search `enabled` values and undefined per-channel `responseUsage` entries without changing runtime resolution or persisted configuration schemas. Thanks [@&#8203;vincentkoc](https://github.com/vincentkoc) and [@&#8203;RomneyDa](https://github.com/RomneyDa).

- **Shipped SDK compatibility:** preserve full-config and readonly roster inputs, versioned legacy model-selection authoring, Discord component registration's `void` return, and Gateway plugin metadata notifications through their existing lifecycle and restart owners. The deprecated model-policy `allowsKey` member remains source-only and is never used for authorization; asynchronous completion and errors remain owned after a void call returns. Thanks [@&#8203;vincentkoc](https://github.com/vincentkoc) and [@&#8203;RomneyDa](https://github.com/RomneyDa).

##### Complete contribution record

The full contribution record is available in the tag-pinned [CHANGELOG.md](https://github.com/openclaw/openclaw/blob/v2026.9.5/CHANGELOG/records/2026.9.5.md#complete-contribution-record).

##### Release verification

- npm package: <https://www.npmjs.com/package/openclaw/v/2026.9.5>
- registry tarball: <https://registry.npmjs.org/openclaw/-/openclaw-2026.9.5.tgz>
- integrity: `sha512-TCO/ImVLh5HkF4tdfo7iriIa7kT6iYkIr/jR5ZOkePGFGhUx5Oe7DE716Y1DzzG2teRAVDdCjgJDu1A24Yta7w==`
- release SHA: `ec9c1a13db8938e5a3eaa51fca2e981cde2395a9`
- full release CI report: <https://github.com/openclaw/releases/blob/main/evidence/2026.9.5/release-evidence.md>
- release publish: <https://github.com/openclaw/openclaw/actions/runs/35414217443>
- npm preflight: <https://github.com/openclaw/openclaw/actions/runs/35382454474>
- full release validation: <https://github.com/openclaw/openclaw/actions/runs/35381634370>
- plugin npm publish: <https://github.com/openclaw/openclaw/actions/runs/35414496234>
- plugin ClawHub submission: <https://github.com/openclaw/openclaw/actions/runs/35414501298>; public artifact verification follows successful release-parent completion
- plugin ClawHub bootstrap: dispatched separately, not awaited by this proof: <https://github.com/openclaw/openclaw/actions/runs/35414503229>
- Stable soak waived by operator: "Operator-approved by Peter for 2026.9.5: soak-only live/E2E lanes blocked by infrastructure and main-owned fixture failures; non-soak Full Release Validation [`3538163`](openclaw/openclaw@35381634370) attempt 2 green; 9.4 to 9.5 update proven on systemd-service and plain installs."
- npm Telegram beta E2E: not supplied
- Android APK: skipped — apps/android/version.json is 2026.8.2, release train is 2026.9.5; run the shared mobile cutter (scripts/mobile-release-version.ts --prepare) before the next tag.

</details>

---

### Configuration

📅 **Schedule**: (in timezone Europe/London)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xMDMuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjEwNC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZS9jb250YWluZXIiLCJ0eXBlL3BhdGNoIl19-->

Reviewed-on: https://git.hayden.moe/hayden/phoebe/pulls/696
obviyus added a commit that referenced this pull request Nov 1, 2026
…#190019)

## What Problem This Solves

Adding a provider did not make it usable when a model allowlist (`modelPolicy.allow`) existed. On the Team server, saving a Particle API key in **Settings → Models → Connect provider** succeeded, but no Particle model appeared in the model picker: the allowlist hid them all. Sign-in flows (CLI, chat `/login`, Telegram, Control UI wizard) asked **Show all &lt;Provider&gt; models / Keep current restrictions** with Keep as the default. The API-key save path skipped even that, and #189917 only added a text warning that told the user to edit config by hand.

## Fix

Saving credentials for a provider is now the request to use its models. When the allowlist that governs the agent hides **every** model of that provider, the save adds `<provider>/*` to that allowlist, through the existing model-policy owner (`src/commands/models/auth-model-policy.ts`):

- per-agent `agents.entries.<id>.modelPolicy.allow` when the agent sets its own policy, otherwise `agents.defaults.modelPolicy.allow`;
- an unmigrated legacy `agents.defaults.models` allowlist gets the wildcard key, so none of its models is dropped.

Nothing changes when there is no allowlist, or when the allowlist already names some of the provider's models (an exact ref such as `openai/gpt-x`, or a narrower wildcard such as `clawrouter/anthropic/*`). The policy owner decides that: the check reads providers from `createModelVisibilityPolicy(...).allowedKeys`, which resolves exact refs, aliases and bare legacy refs (inferring their provider from configured provider rows) the same way the picker does. A deliberate exact list is never widened.

Paths:

- API key / token save (`models.authSetApiKey`, `openclaw models auth paste-api-key`, `paste-token`): the wildcard is added in the same config write as the credential's auth profile.
- Sign-in (`openclaw models auth login`, Control UI wizard, chat `/login`, Telegram `/login`): after the credential is saved, one write adds the wildcard. The login result carries `modelAccess: { message, applied }`; chat and Telegram append "Added `<provider>/*` to allowed models." to the completion message; the Control UI wizard reports an unconfirmed apply as before.

Removed: the post-save select prompt, the deferred `onModelAccessRequested` request, `offerProviderLoginModelAccess` / `answerProviderLoginModelAccess`, the `/login access` and `/login choice` model-access commands, `createLoginChoicePrompt`, `ProviderModelPolicyChangedError`, and the #189917 Control UI warning. `provider-auth-login-flow-runtime` is a private-local SDK subpath (docs/plugins/sdk-subpaths.md), so its only consumers are bundled (core chat `/login`, Telegram), migrated here.

Authority: every `models.authSetApiKey` save now checks live requester authority (`readGatewayRequestMutationAuthority`, the guard `config.patch` uses) before its credential and config writes. Before, browser saves without `expectedOwnerId` passed no guard; the save now also widens the allowlist, so a requester whose connection or scopes end mid-save cannot commit it. Owner-bound CLI saves keep their owner check and add the same requester check.

Plugin setup defaults still cannot change restrictions (`withoutProviderModelPolicy` is unchanged); only the credential save does.

This reverses the ask-first default from #144468 by maintainer decision.

No undo button: the `models.authSetApiKey` result has no field for the change, and adding one is a protocol change; the change is a single visible `provider/*` allowlist entry.

## User Impact

Add a provider key or sign in → its models show in the model picker, even under an existing allowlist that did not mention the provider. Operators who listed specific models of that provider keep exactly their list.

## Evidence

Real Gateway, real config write (`src/gateway/server-methods/models-auth-api-key.integration.test.ts`): config `agents.defaults.modelPolicy.allow: ["other/*"]`, `models.authSetApiKey` for `fixture` → saved config `["other/*", "fixture/*"]`. Negative control: with the new line disabled, the test fails `expected [ 'other/*' ] to deeply equal [ 'other/*', 'fixture/*' ]`.

Policy owner (`src/commands/models/auth-model-policy.test.ts`, real config file):

- per-agent policy widened, defaults untouched;
- no allowlist / provider already allowed → config bytes unchanged;
- allowlist with exact `sample/one`, `sample/two` → unchanged; with `sample/family/*` → unchanged (both fail when the check is reverted to "literal `sample/*` missing");
- deferred legacy map keeps `existing-model` and gains `sample/*`;
- migrated model map is not treated as an allowlist;
- authority revoked during the writer's preflight → no write.

Sign-in end to end against a real plugin and config (`src/commands/models.auth.provider-resolution.test.ts`): `access`, `access-legacy`, `access-legacy-set-default` cases save the credential, add `authstore-proof/*` with no prompt, and log the notice.

Real key writer under revocation (`src/commands/models/auth-api-key.test.ts`, real auth store and config file): with an allowlist present, authority revoked inside the config write leaves the config bytes unchanged (no auth binding, no `sample/*`); unrevoked, the same write saves the binding and `["other/*", "sample/*"]`.

Gateway-to-writer revocation chain (`src/commands/models/auth-api-key.test.ts`): the real `models.authSetApiKey` handler, its `readGatewayRequestMutationAuthority` guard and the real key/config writer, with the requester's authority ending inside the config write. The RPC fails with "Gateway requester authority changed"; the config file bytes are unchanged (no auth binding, allowlist still `["other/*"]`). The key itself committed earlier, while the requester was still authorized, and stays saved. Negative control: with the handler guard replaced by a no-op, the test fails. Run output (synthetic keys only):

```
✓ |commands| src/commands/models/auth-api-key.test.ts > checks requester authority after credential commit (revoked=false) 1511ms
✓ |commands| src/commands/models/auth-api-key.test.ts > checks requester authority after credential commit (revoked=true) 914ms
✓ |commands| src/commands/models/auth-api-key.test.ts > checks requester authority after config transform (revoked=false) 1392ms
✓ |commands| src/commands/models/auth-api-key.test.ts > checks requester authority after config transform (revoked=true) 1067ms
✓ |commands| src/commands/models/auth-api-key.test.ts > models.authSetApiKey writes no binding or allowlist once the requester is revoked 977ms
Tests  5 passed | 42 skipped (47)
```

Upgrade compatibility: no stored schema or config shape changes. Existing configs load as before and keep working: explicit `modelPolicy.allow` (defaults and per-agent), unmigrated legacy `agents.defaults.models` allowlists (wildcard added as a map key, every existing model kept), migrated maps with the `modelPolicyAllowlist` marker (not treated as an allowlist), and configs without an allowlist (never written). Each case runs against a real config file in `auth-model-policy.test.ts` and `models.auth.provider-resolution.test.ts`. The removed chat model-access questions were in-memory only, so no stored state refers to them.

Existing data, real CLI entry point: a temporary state directory seeded with the Team server's pre-change allowlist shape (exact `openai/...` refs plus `clawrouter/anthropic/...` refs, and a legacy `agents.defaults.models` map), then `openclaw models auth paste-api-key` from this branch for three providers (synthetic keys, the first run's output trimmed to the resulting list):

```
Team pre-change allowlist (exact openai refs + clawrouter/anthropic refs), no Gateway running
== openclaw models auth paste-api-key --provider openai
allow = ['openai/gpt-6-luna', 'openai/gpt-6-astra', 'openai/gpt-daybreak-blue-latest', 'openai/gpt-daybreak-red-latest', 'openai/gpt-6.1-sol', 'clawrouter/anthropic/claude-fable-5-1', 'clawrouter/anthropic/claude-opus-5-5']
== openclaw models auth paste-api-key --provider particle
Auth profile: particle:manual (particle/api_key)
Added particle/* to allowed models.
allow = ['openai/gpt-6-luna', 'openai/gpt-6-astra', 'openai/gpt-daybreak-blue-latest', 'openai/gpt-daybreak-red-latest', 'openai/gpt-6.1-sol', 'clawrouter/anthropic/claude-fable-5-1', 'clawrouter/anthropic/claude-opus-5-5', 'particle/*']
== openclaw models auth paste-api-key --provider clawrouter
Auth profile: clawrouter:manual (clawrouter/api_key)
allow = ['openai/gpt-6-luna', 'openai/gpt-6-astra', 'openai/gpt-daybreak-blue-latest', 'openai/gpt-daybreak-red-latest', 'openai/gpt-6.1-sol', 'clawrouter/anthropic/claude-fable-5-1', 'clawrouter/anthropic/claude-opus-5-5', 'particle/*']
```

OpenAI and ClawRouter keep the operator's exact lists; only Particle, which the list did not mention, gains `particle/*`.

Bare legacy ref (`auth-model-policy.test.ts`): legacy map `{ tiny: {} }` with a configured `sample` provider that has `tiny` → saving a `sample` credential leaves config unchanged (fails against the earlier `DEFAULT_PROVIDER` parse).

Requester authority (`src/gateway/server-methods/models-auth-status.set-api-key.test-support.ts`): authority ends during the save → the RPC fails with "Gateway requester authority changed" and the writer's `assertCurrent` throws before commit. Negative control: with the handler's default guard replaced by a no-op, the test fails.

Surface tests: chat `/login` and Telegram completion messages include the notice; Control UI wizard reports unconfirmed apply; mocked-Gateway Control UI E2E (`model-provider-login.e2e.test.ts`) passes.

Control UI, mocked Gateway, policy `allow: ["openai/*"]`, save a Particle key:

Before (main, #189917): the dialog stays open with a config-editing instruction.

![Before: dialog tells the user to edit modelPolicy.allow](https://github.com/user-attachments/assets/793cafbe-5e2d-4be0-b111-a95265d6db8a)

After: the Gateway widens the policy during the save; the dialog closes like any successful save.

![After: dialog closes after save](https://github.com/user-attachments/assets/480dced1-3ec3-4fed-b092-c2b6842ba31b)

Commands:

- `pnpm test src/commands/models/auth-model-policy.test.ts --maxWorkers=1`: 7 passed.
- `pnpm test src/gateway/server-methods/models-auth-api-key.integration.test.ts --maxWorkers=1`: 1 passed (~12.5 s, real Gateway, existing test extended; no new boot).
- `pnpm test src/commands/models/auth.test.ts src/commands/models.auth.provider-resolution.test.ts --maxWorkers=1`: 80 passed.
- Chat/Gateway/Telegram/UI suites: passed.
- `pnpm tsgo:core`, `pnpm tsgo:extensions`, `OPENCLAW_CHECK_CHANGED_SKIP_DEADCODE=1 pnpm check:changed`.

No overlap with Pash/Sarah changes.

Merge danger: one-way for configs: a credential save can now write `<provider>/*` into a model allowlist. A revert stops new writes but does not remove entries already added. Blast radius: operators who rely on an allowlist that does not mention a provider to keep that provider hidden after someone adds its credentials. Only admins can save credentials.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Ayaan Zaidi <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 2, 2026
…openclaw#190019)

## What Problem This Solves

Adding a provider did not make it usable when a model allowlist (`modelPolicy.allow`) existed. On the Team server, saving a Particle API key in **Settings → Models → Connect provider** succeeded, but no Particle model appeared in the model picker: the allowlist hid them all. Sign-in flows (CLI, chat `/login`, Telegram, Control UI wizard) asked **Show all &lt;Provider&gt; models / Keep current restrictions** with Keep as the default. The API-key save path skipped even that, and openclaw#189917 only added a text warning that told the user to edit config by hand.

## Fix

Saving credentials for a provider is now the request to use its models. When the allowlist that governs the agent hides **every** model of that provider, the save adds `<provider>/*` to that allowlist, through the existing model-policy owner (`src/commands/models/auth-model-policy.ts`):

- per-agent `agents.entries.<id>.modelPolicy.allow` when the agent sets its own policy, otherwise `agents.defaults.modelPolicy.allow`;
- an unmigrated legacy `agents.defaults.models` allowlist gets the wildcard key, so none of its models is dropped.

Nothing changes when there is no allowlist, or when the allowlist already names some of the provider's models (an exact ref such as `openai/gpt-x`, or a narrower wildcard such as `clawrouter/anthropic/*`). The policy owner decides that: the check reads providers from `createModelVisibilityPolicy(...).allowedKeys`, which resolves exact refs, aliases and bare legacy refs (inferring their provider from configured provider rows) the same way the picker does. A deliberate exact list is never widened.

Paths:

- API key / token save (`models.authSetApiKey`, `openclaw models auth paste-api-key`, `paste-token`): the wildcard is added in the same config write as the credential's auth profile.
- Sign-in (`openclaw models auth login`, Control UI wizard, chat `/login`, Telegram `/login`): after the credential is saved, one write adds the wildcard. The login result carries `modelAccess: { message, applied }`; chat and Telegram append "Added `<provider>/*` to allowed models." to the completion message; the Control UI wizard reports an unconfirmed apply as before.

Removed: the post-save select prompt, the deferred `onModelAccessRequested` request, `offerProviderLoginModelAccess` / `answerProviderLoginModelAccess`, the `/login access` and `/login choice` model-access commands, `createLoginChoicePrompt`, `ProviderModelPolicyChangedError`, and the openclaw#189917 Control UI warning. `provider-auth-login-flow-runtime` is a private-local SDK subpath (docs/plugins/sdk-subpaths.md), so its only consumers are bundled (core chat `/login`, Telegram), migrated here.

Authority: every `models.authSetApiKey` save now checks live requester authority (`readGatewayRequestMutationAuthority`, the guard `config.patch` uses) before its credential and config writes. Before, browser saves without `expectedOwnerId` passed no guard; the save now also widens the allowlist, so a requester whose connection or scopes end mid-save cannot commit it. Owner-bound CLI saves keep their owner check and add the same requester check.

Plugin setup defaults still cannot change restrictions (`withoutProviderModelPolicy` is unchanged); only the credential save does.

This reverses the ask-first default from openclaw#144468 by maintainer decision.

No undo button: the `models.authSetApiKey` result has no field for the change, and adding one is a protocol change; the change is a single visible `provider/*` allowlist entry.

## User Impact

Add a provider key or sign in → its models show in the model picker, even under an existing allowlist that did not mention the provider. Operators who listed specific models of that provider keep exactly their list.

## Evidence

Real Gateway, real config write (`src/gateway/server-methods/models-auth-api-key.integration.test.ts`): config `agents.defaults.modelPolicy.allow: ["other/*"]`, `models.authSetApiKey` for `fixture` → saved config `["other/*", "fixture/*"]`. Negative control: with the new line disabled, the test fails `expected [ 'other/*' ] to deeply equal [ 'other/*', 'fixture/*' ]`.

Policy owner (`src/commands/models/auth-model-policy.test.ts`, real config file):

- per-agent policy widened, defaults untouched;
- no allowlist / provider already allowed → config bytes unchanged;
- allowlist with exact `sample/one`, `sample/two` → unchanged; with `sample/family/*` → unchanged (both fail when the check is reverted to "literal `sample/*` missing");
- deferred legacy map keeps `existing-model` and gains `sample/*`;
- migrated model map is not treated as an allowlist;
- authority revoked during the writer's preflight → no write.

Sign-in end to end against a real plugin and config (`src/commands/models.auth.provider-resolution.test.ts`): `access`, `access-legacy`, `access-legacy-set-default` cases save the credential, add `authstore-proof/*` with no prompt, and log the notice.

Real key writer under revocation (`src/commands/models/auth-api-key.test.ts`, real auth store and config file): with an allowlist present, authority revoked inside the config write leaves the config bytes unchanged (no auth binding, no `sample/*`); unrevoked, the same write saves the binding and `["other/*", "sample/*"]`.

Gateway-to-writer revocation chain (`src/commands/models/auth-api-key.test.ts`): the real `models.authSetApiKey` handler, its `readGatewayRequestMutationAuthority` guard and the real key/config writer, with the requester's authority ending inside the config write. The RPC fails with "Gateway requester authority changed"; the config file bytes are unchanged (no auth binding, allowlist still `["other/*"]`). The key itself committed earlier, while the requester was still authorized, and stays saved. Negative control: with the handler guard replaced by a no-op, the test fails. Run output (synthetic keys only):

```
✓ |commands| src/commands/models/auth-api-key.test.ts > checks requester authority after credential commit (revoked=false) 1511ms
✓ |commands| src/commands/models/auth-api-key.test.ts > checks requester authority after credential commit (revoked=true) 914ms
✓ |commands| src/commands/models/auth-api-key.test.ts > checks requester authority after config transform (revoked=false) 1392ms
✓ |commands| src/commands/models/auth-api-key.test.ts > checks requester authority after config transform (revoked=true) 1067ms
✓ |commands| src/commands/models/auth-api-key.test.ts > models.authSetApiKey writes no binding or allowlist once the requester is revoked 977ms
Tests  5 passed | 42 skipped (47)
```

Upgrade compatibility: no stored schema or config shape changes. Existing configs load as before and keep working: explicit `modelPolicy.allow` (defaults and per-agent), unmigrated legacy `agents.defaults.models` allowlists (wildcard added as a map key, every existing model kept), migrated maps with the `modelPolicyAllowlist` marker (not treated as an allowlist), and configs without an allowlist (never written). Each case runs against a real config file in `auth-model-policy.test.ts` and `models.auth.provider-resolution.test.ts`. The removed chat model-access questions were in-memory only, so no stored state refers to them.

Existing data, real CLI entry point: a temporary state directory seeded with the Team server's pre-change allowlist shape (exact `openai/...` refs plus `clawrouter/anthropic/...` refs, and a legacy `agents.defaults.models` map), then `openclaw models auth paste-api-key` from this branch for three providers (synthetic keys, the first run's output trimmed to the resulting list):

```
Team pre-change allowlist (exact openai refs + clawrouter/anthropic refs), no Gateway running
== openclaw models auth paste-api-key --provider openai
allow = ['openai/gpt-6-luna', 'openai/gpt-6-astra', 'openai/gpt-daybreak-blue-latest', 'openai/gpt-daybreak-red-latest', 'openai/gpt-6.1-sol', 'clawrouter/anthropic/claude-fable-5-1', 'clawrouter/anthropic/claude-opus-5-5']
== openclaw models auth paste-api-key --provider particle
Auth profile: particle:manual (particle/api_key)
Added particle/* to allowed models.
allow = ['openai/gpt-6-luna', 'openai/gpt-6-astra', 'openai/gpt-daybreak-blue-latest', 'openai/gpt-daybreak-red-latest', 'openai/gpt-6.1-sol', 'clawrouter/anthropic/claude-fable-5-1', 'clawrouter/anthropic/claude-opus-5-5', 'particle/*']
== openclaw models auth paste-api-key --provider clawrouter
Auth profile: clawrouter:manual (clawrouter/api_key)
allow = ['openai/gpt-6-luna', 'openai/gpt-6-astra', 'openai/gpt-daybreak-blue-latest', 'openai/gpt-daybreak-red-latest', 'openai/gpt-6.1-sol', 'clawrouter/anthropic/claude-fable-5-1', 'clawrouter/anthropic/claude-opus-5-5', 'particle/*']
```

OpenAI and ClawRouter keep the operator's exact lists; only Particle, which the list did not mention, gains `particle/*`.

Bare legacy ref (`auth-model-policy.test.ts`): legacy map `{ tiny: {} }` with a configured `sample` provider that has `tiny` → saving a `sample` credential leaves config unchanged (fails against the earlier `DEFAULT_PROVIDER` parse).

Requester authority (`src/gateway/server-methods/models-auth-status.set-api-key.test-support.ts`): authority ends during the save → the RPC fails with "Gateway requester authority changed" and the writer's `assertCurrent` throws before commit. Negative control: with the handler's default guard replaced by a no-op, the test fails.

Surface tests: chat `/login` and Telegram completion messages include the notice; Control UI wizard reports unconfirmed apply; mocked-Gateway Control UI E2E (`model-provider-login.e2e.test.ts`) passes.

Control UI, mocked Gateway, policy `allow: ["openai/*"]`, save a Particle key:

Before (main, openclaw#189917): the dialog stays open with a config-editing instruction.

![Before: dialog tells the user to edit modelPolicy.allow](https://github.com/user-attachments/assets/793cafbe-5e2d-4be0-b111-a95265d6db8a)

After: the Gateway widens the policy during the save; the dialog closes like any successful save.

![After: dialog closes after save](https://github.com/user-attachments/assets/480dced1-3ec3-4fed-b092-c2b6842ba31b)

Commands:

- `pnpm test src/commands/models/auth-model-policy.test.ts --maxWorkers=1`: 7 passed.
- `pnpm test src/gateway/server-methods/models-auth-api-key.integration.test.ts --maxWorkers=1`: 1 passed (~12.5 s, real Gateway, existing test extended; no new boot).
- `pnpm test src/commands/models/auth.test.ts src/commands/models.auth.provider-resolution.test.ts --maxWorkers=1`: 80 passed.
- Chat/Gateway/Telegram/UI suites: passed.
- `pnpm tsgo:core`, `pnpm tsgo:extensions`, `OPENCLAW_CHECK_CHANGED_SKIP_DEADCODE=1 pnpm check:changed`.

No overlap with Pash/Sarah changes.

Merge danger: one-way for configs: a credential save can now write `<provider>/*` into a model allowlist. A revert stops new writes but does not remove entries already added. Blast radius: operators who rely on an allowlist that does not mention a provider to keep that provider hidden after someone adds its credentials. Only admins can save credentials.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <[email protected]>
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 channel: discord Channel integration: discord channel: telegram Channel integration: telegram commands Command implementations docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL 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