fix: improve /model --fast description clarity and prevent accidental activation (#3077)

Replace vague "background tasks" with specific "prompt suggestions and speculative
execution" in the --fast flag description across all i18n locales, docs, and VS Code
schema. Update example model name from qwen3.5-flash to qwen3-coder-flash. Also fix
completion logic to require a non-empty partial arg before suggesting --fast, preventing
Tab+Enter from accidentally entering fast model mode.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Shaojin Wen 2026-04-10 12:09:46 +08:00 committed by GitHub
parent 746f67f436
commit 5482044e59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 41 additions and 37 deletions

View file

@ -21,11 +21,13 @@ export const modelCommand: SlashCommand = {
},
kind: CommandKind.BUILT_IN,
completion: async (_context, partialArg) => {
if ('--fast'.startsWith(partialArg)) {
if (partialArg && '--fast'.startsWith(partialArg)) {
return [
{
value: '--fast',
description: t('Set fast model for background tasks'),
description: t(
'Set a lighter model for prompt suggestions and speculative execution',
),
},
];
}