#11734: CLI: scope /model and /new prompt messaging to fallback-only paths
stale
Cluster:
Model Fallbacks and Rate Limiting
## What / Why
This PR tightens two UX paths so model messaging only changes when fallback behavior is actually active, while preserving existing behavior on the normal path.
### What changed
1. **Fallback-scoped `/model` messaging**
- Adjusts `/model`/status messaging so fallback-related wording is shown only when fallback is in use.
- Non-fallback `/model` behavior remains aligned with `main`.
2. **`/new` prompt model line cleanup**
- Updates reset prompt wording to only mention model differences when `current model != configured default`.
- If current and default match, no extra model line is shown.
### Why
- Prevents confusing model/fallback language in non-fallback scenarios.
- Keeps user-facing messaging accurate to runtime state.
- Limits this change to a focused UX correctness fix without broad behavior changes.
## Focused scope statement
This PR is intentionally limited to:
- fallback-only model/status messaging behavior, and
- `/new` prompt wording for model-difference clarity.
No broader model selection flow, architecture, or unrelated UX changes are included.
## Local validation
Executed locally for this branch:
```bash
pnpm build && pnpm check && pnpm test
```
- `pnpm build` ✅
- `pnpm check` ✅
- `pnpm test` ✅
### Manual local-instance validation
Validated behavior in a local OpenClaw instance:
- Confirmed fallback-only wording appears only when fallback is active.
- Confirmed non-fallback paths match `main` behavior.
- Confirmed `/new` model line only appears when current/default differ.
## AI-assisted disclosure
- [x] AI-assisted PR (description + implementation support)
- [x] Testing level: **fully tested locally** (`pnpm build && pnpm check && pnpm test` + manual local instance validation)
- [ ] Prompts/session logs attached (not included in this PR)
- [x] Author reviewed and understands the code and behavior changes
Most Similar PRs
#23738: feat(fallback): first-class transition visibility + low-noise autom...
by SmithLabsLLC · 2026-02-22
72.6%
#20275: fix(cli): include primary model in allowlist when adding fallbacks
by MFS-code · 2026-02-18
71.8%
#18670: feat: add first-class Claude Code CLI auth path + CLI model UX hard...
by SmithLabsLLC · 2026-02-16
70.5%
#15859: Graceful fallback + transparent model-failure logging
by wboudy · 2026-02-14
70.1%
#22660: feat(agents): prioritize fallback-chain recovery and configurable r...
by sauerdaniel · 2026-02-21
69.6%
#21963: fix(cli): models fallbacks add now includes primary model in allowlist
by ashiabbott · 2026-02-20
69.2%
#23816: fix(agents): model fallback skipped during session overrides and pr...
by ramezgaberiel · 2026-02-22
68.2%
#17231: fix(failover): recognize model_cooldown as rate-limit for fallback
by thebtf · 2026-02-15
67.9%
#16388: Fix: Show model selector during onboarding for all auth choices
by saurav470 · 2026-02-14
67.5%
#19510: fix(config): preserve configured values on invalid config validatio...
by yash27-lab · 2026-02-17
67.3%