fix: add --fast hint to /model description for discoverability (#3086)
Some checks are pending
Qwen Code CI / Lint (push) Waiting to run
Qwen Code CI / Test (push) Blocked by required conditions
Qwen Code CI / Test-1 (push) Blocked by required conditions
Qwen Code CI / Test-2 (push) Blocked by required conditions
Qwen Code CI / Test-3 (push) Blocked by required conditions
Qwen Code CI / Test-4 (push) Blocked by required conditions
Qwen Code CI / Test-5 (push) Blocked by required conditions
Qwen Code CI / Test-6 (push) Blocked by required conditions
Qwen Code CI / Test-7 (push) Blocked by required conditions
Qwen Code CI / Test-8 (push) Blocked by required conditions
Qwen Code CI / Post Coverage Comment (push) Blocked by required conditions
Qwen Code CI / CodeQL (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:docker (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:none (push) Waiting to run
E2E Tests / E2E Test - macOS (push) Waiting to run

Add "(--fast for suggestion model)" to the /model command description
so users can discover the feature from the command list, since --fast
completion no longer appears on empty input.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Shaojin Wen 2026-04-10 13:49:28 +08:00 committed by GitHub
parent d8e06f5c91
commit 520f1e2420
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 16 additions and 8 deletions

View file

@ -33,7 +33,9 @@ describe('modelCommand', () => {
it('should have the correct name and description', () => {
expect(modelCommand.name).toBe('model');
expect(modelCommand.description).toBe('Switch the model for this session');
expect(modelCommand.description).toBe(
'Switch the model for this session (--fast for suggestion model)',
);
});
it('should return error when config is not available', async () => {

View file

@ -17,7 +17,7 @@ import { getPersistScopeForModelSelection } from '../../config/modelProvidersSco
export const modelCommand: SlashCommand = {
name: 'model',
get description() {
return t('Switch the model for this session');
return t('Switch the model for this session (--fast for suggestion model)');
},
kind: CommandKind.BUILT_IN,
completion: async (_context, partialArg) => {