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

@ -989,7 +989,8 @@ export default {
// ============================================================================
// Commands - Model
// ============================================================================
'Switch the model for this session': 'Modell für diese Sitzung wechseln',
'Switch the model for this session (--fast for suggestion model)':
'Modell für diese Sitzung wechseln (--fast für Vorschlagsmodell)',
'Set a lighter model for prompt suggestions and speculative execution':
'Leichteres Modell für Eingabevorschläge und spekulative Ausführung festlegen',
'Content generator configuration not available.':

View file

@ -1151,7 +1151,8 @@ export default {
// ============================================================================
// Commands - Model
// ============================================================================
'Switch the model for this session': 'Switch the model for this session',
'Switch the model for this session (--fast for suggestion model)':
'Switch the model for this session (--fast for suggestion model)',
'Set a lighter model for prompt suggestions and speculative execution':
'Set a lighter model for prompt suggestions and speculative execution',
'Content generator configuration not available.':

View file

@ -743,7 +743,8 @@ export default {
'Failed to generate summary - no text content received from LLM response':
'サマリーの生成に失敗 - LLMレスポンスからテキストコンテンツを受信できませんでした',
// Model
'Switch the model for this session': 'このセッションのモデルを切り替え',
'Switch the model for this session (--fast for suggestion model)':
'このセッションのモデルを切り替え(--fast で提案モデルを設定)',
'Set a lighter model for prompt suggestions and speculative execution':
'プロンプト提案と投機的実行用の軽量モデルを設定',
'Content generator configuration not available.':

View file

@ -996,7 +996,8 @@ export default {
// ============================================================================
// Commands - Model
// ============================================================================
'Switch the model for this session': 'Trocar o modelo para esta sessão',
'Switch the model for this session (--fast for suggestion model)':
'Trocar o modelo para esta sessão (--fast para modelo de sugestões)',
'Set a lighter model for prompt suggestions and speculative execution':
'Definir modelo mais leve para sugestões de prompt e execução especulativa',
'Content generator configuration not available.':

View file

@ -997,7 +997,8 @@ export default {
// ============================================================================
// Команды - Модель
// ============================================================================
'Switch the model for this session': 'Переключение модели для этой сессии',
'Switch the model for this session (--fast for suggestion model)':
'Переключение модели для этой сессии (--fast для модели подсказок)',
'Set a lighter model for prompt suggestions and speculative execution':
'Установить облегчённую модель для подсказок и спекулятивного выполнения',
'Content generator configuration not available.':

View file

@ -1092,7 +1092,8 @@ export default {
// ============================================================================
// Commands - Model
// ============================================================================
'Switch the model for this session': '切换此会话的模型',
'Switch the model for this session (--fast for suggestion model)':
'切换此会话的模型(--fast 可设置建议模型)',
'Set a lighter model for prompt suggestions and speculative execution':
'设置用于输入建议和推测执行的轻量模型',
'Content generator configuration not available.': '内容生成器配置不可用',

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) => {