openclaw/docs/help
Marvinthebored ce4a680544
feat(models): add configurable model selection scopes (#127813)
* feat: make model persistence scope explicit

* fix: keep unauthorized model directives as plain text

An unauthorized sender's inline directives are cleared to plain text before
they are acted on, but the persistent write target was derived from the
directives as they arrived. An unauthorized `/model <provider/model> -a` or
`-g` therefore reached the owner-authority error return instead of the
plain-text path every other directive takes.

Derive the target, the authority flag, and the persist flag after the
clearing. Authorized senders skip the clearing, so their behavior is
unchanged; the only closure that captures the target is invoked well after
the new declaration site.

Covers both persistent flags with a regression test that fails on the prior
head with "Agent and global model defaults require owner authority or
operator.admin scope." and passes here.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* feat(models): make model selection scope configurable

Preserve current model-selection defaults when the optional scope preference is unset. Add explicit session, agent, and global overrides without broadening config-write authority.

Co-authored-by: Marvinthebored <peter@lindsey.jp>

* test(models): simplify scope expectation fixtures

---------

Co-authored-by: Marvinthebored <peter@lindsey.jp>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-08-26 14:31:56 -07:00
..
debugging.md fix(gateway): suppress ambient channel auto-enable (#123174) 2026-08-13 11:20:40 -07:00
environment.md fix(exec): isolate interactive shell env imports (#125624) 2026-08-18 10:06:19 -07:00
faq-first-run.md feat(daemon): support Bun 1.4 managed services (#129593) 2026-08-26 00:45:43 -07:00
faq-models.md feat(models): add configurable model selection scopes (#127813) 2026-08-26 14:31:56 -07:00
faq.md feat(models): add configurable model selection scopes (#127813) 2026-08-26 14:31:56 -07:00
index.md docs: rewrite published docs grounded in current source (#100142) 2026-07-05 00:32:47 -04:00
scripts.md docs: rewrite published docs grounded in current source (#100142) 2026-07-05 00:32:47 -04:00
testing-live.md refactor(agents): move live model policy to test owner (#129184) 2026-08-25 03:41:36 -07:00
testing-updates-plugins.md test(upgrade): add high-volume SQLite survivor (#125571) 2026-08-17 21:19:24 -07:00
testing.md improve: verify packaged runtime on Bun 1.4 (#129552) 2026-08-25 23:41:05 -07:00
troubleshooting.md feat(cli): add openclaw triage for sanitized agent debugging handoffs (#128756) 2026-08-25 00:12:32 -07:00