fix: skip slash command echo in setUserInputOnProcessing to prevent UI flash
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
d798e6a6fa
commit
b5e9aad480
|
|
@ -146,9 +146,10 @@ export async function processUserInput({
|
||||||
}): Promise<ProcessUserInputBaseResult> {
|
}): Promise<ProcessUserInputBaseResult> {
|
||||||
const inputString = typeof input === 'string' ? input : null
|
const inputString = typeof input === 'string' ? input : null
|
||||||
// Immediately show the user input prompt while we are still processing the input.
|
// Immediately show the user input prompt while we are still processing the input.
|
||||||
// Skip for isMeta (system-generated prompts like scheduled tasks) — those
|
// Skip for isMeta (system-generated prompts like scheduled tasks) and slash
|
||||||
// should run invisibly.
|
// commands (they produce their own system message echo via createCommandInputMessage).
|
||||||
if (mode === 'prompt' && inputString !== null && !isMeta) {
|
const isSlashInput = inputString?.startsWith('/') && !skipSlashCommands
|
||||||
|
if (mode === 'prompt' && inputString !== null && !isMeta && !isSlashInput) {
|
||||||
setUserInputOnProcessing?.(inputString)
|
setUserInputOnProcessing?.(inputString)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user