Repository navigation
docs: correct numeric model selection guidance - #132246
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
49f3e0b to
672bb74
Compare
|
Land-ready review for exact head The reference advertised numeric selection despite the shared chat command explicitly rejecting it, including in stable Proof:
node scripts/run-vitest.mjs src/auto-reply/reply/directive-handling.model.test.ts -t 'rejects numeric /model selections with a guided error|shows summary for /model with no args|treats /model list as a models browser alias|includes the thinking level in channel-specific model summaries' --reporter=dotThe branch was refreshed once because its older native landing wrapper refused to run; the patch remains the same single-page change. No extra runtime/config work was included. Native channel behavior was source-checked, not tested against live accounts; no operator state was used and no runtime screenshot is applicable. The latest ClawSweeper status says review started and contains no findings or Rank-up moves yet. The native landing path will enforce the current merge gates. |
|
Merged via squash.
|
Related: #132218 — correct chat model selection examples on the models concept page.
What Problem This Solves
Fixes an issue where readers of the slash-command reference would try
/model 3and receive “Numeric model selection is not supported in chat.” The command table advertises#, and the examples also conflate the bare text/modelsummary with the/model listprovider browser.Affected page: https://docs.openclaw.ai/tools/slash-commands#model-model-selection
Why This Change Was Made
Correct only
docs/tools/slash-commands.md: remove the numeric-selector syntax, show provider browsing instead of a numeric selection, and explain selection byprovider/modelor configured alias. Distinguish the text summary/browser from Discord's bare native/modeland/modelsprovider/model dropdowns with Submit and Telegram's session-only callback buttons.This corrects prose to match existing behavior; it does not implement numeric selection or change runtime, configuration, model policy, or scope semantics. The separate models-concept-page correction is already merged and is not part of this diff.
User Impact
Readers get supported browsing and selection commands instead of an example that fails. Discord's native picker and scope behavior remain intact; Telegram callback selections remain session-only.
Evidence
mainatb85a049da5e8cc4b96c64846a45c645258c43586: subsequent model-policy changes retain the explicit all-digit rejection and Telegram'scanPersistStickyModelSelection: false; Discord's bare-command picker and Submit paths are unchanged. The rejection also exists in stablev2026.7.1.src/auto-reply/reply/directive-handling.model-selection.ts,directive-handling.model.ts,commands-models.ts, andget-reply-directives-apply.ts; native adapters:extensions/discord/src/monitor/native-command-model-picker-ui.ts,native-command-model-picker-interaction.ts, andextensions/telegram/src/bot-handlers.callback-router.ts.pnpm docs:listpassed.node scripts/check-docs-mdx.mjs docs/tools/slash-commands.mdpassed.git diff --checkpassed.672bb7491ab2569b89f5451d58de4660ec400e8d.672bb7491ab2569b89f5451d58de4660ec400e8d: numeric-selection rejection, bare text summary,/model listbrowser alias, and the channel-specific summary. The remaining 111 tests were intentionally skipped by the name filter:node scripts/run-vitest.mjs src/auto-reply/reply/directive-handling.model.test.ts -t 'rejects numeric /model selections with a guided error|shows summary for /model with no args|treats /model list as a models browser alias|includes the thinking level in channel-specific model summaries' --reporter=dotNo runtime or test files changed. Native channel interactions were source-checked, not exercised against live accounts; no operator state was used. No UI/runtime screenshot is applicable to this prose-only correction.
Production LOC: +0/-0. Tests: +0/-0. Documentation: +11/-7.
AI-assisted.