Skip to content

docs: correct numeric model selection guidance - #132246

Merged
steipete merged 1 commit into
mainfrom
steipete/practical-babbage-3f831f
Aug 29, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/practical-babbage-3f831f

Conversation

@steipete

@steipete steipete commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

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 3 and receive “Numeric model selection is not supported in chat.” The command table advertises #, and the examples also conflate the bare text /model summary with the /model list provider 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 by provider/model or configured alias. Distinguish the text summary/browser from Discord's bare native /model and /models provider/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

  • Inspected the text parser, summary/browser routing, shared selection owner, directive-only and inline callers, and complete native Discord/Telegram dispatch and callback paths. A separate read-only native-path review confirmed the interactions.
  • Rechecked live main at b85a049da5e8cc4b96c64846a45c645258c43586: subsequent model-policy changes retain the explicit all-digit rejection and Telegram's canPersistStickyModelSelection: false; Discord's bare-command picker and Submit paths are unchanged. The rejection also exists in stable v2026.7.1.
  • Source owners: src/auto-reply/reply/directive-handling.model-selection.ts, directive-handling.model.ts, commands-models.ts, and get-reply-directives-apply.ts; native adapters: extensions/discord/src/monitor/native-command-model-picker-ui.ts, native-command-model-picker-interaction.ts, and extensions/telegram/src/bot-handlers.callback-router.ts.
  • pnpm docs:list passed.
  • node scripts/check-docs-mdx.mjs docs/tools/slash-commands.md passed.
  • git diff --check passed.
  • Exact-head CI run 33224729454 passed for 672bb7491ab2569b89f5451d58de4660ec400e8d.
  • After refreshing the branch for the current native landing wrapper, four selected existing tests passed again on exact PR head 672bb7491ab2569b89f5451d58de4660ec400e8d: numeric-selection rejection, bare text summary, /model list browser 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=dot

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

@clawsweeper

clawsweeper Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: XS maintainer Maintainer-authored PR labels Aug 29, 2026
@steipete steipete self-assigned this Aug 29, 2026
@steipete
steipete marked this pull request as ready for review August 29, 2026 00:49
@steipete
steipete force-pushed the steipete/practical-babbage-3f831f branch from 49f3e0b to 672bb74 Compare August 29, 2026 00:50
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready review for exact head 672bb7491ab2569b89f5451d58de4660ec400e8d: no findings. Native scripts/pr review artifacts and guard are complete and validated.

The reference advertised numeric selection despite the shared chat command explicitly rejecting it, including in stable v2026.7.1. Correcting the reference is the best fix; implementing another selection path would contradict the shipped contract and requested scope. Only docs/tools/slash-commands.md changes. Discord's bare native dropdowns plus Submit and Telegram's session-only callback buttons are preserved. Production and tests: +0/-0; documentation: +11/-7.

Proof:

  • CI run 33224729454: successful on this exact head.
  • pnpm docs:list: passed.
  • node scripts/check-docs-mdx.mjs docs/tools/slash-commands.md: passed again on this head.
  • git diff --check origin/main...HEAD: passed.
  • The following focused rerun passed all four selected existing tests; 111 unrelated tests were intentionally skipped:
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=dot

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

@steipete
steipete merged commit 204faa5 into main Aug 29, 2026
61 checks passed
@steipete
steipete deleted the steipete/practical-babbage-3f831f branch August 29, 2026 00:59
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant