feat: remove redundant cancel message translations and improve message rendering

This commit is contained in:
DragonnZhang 2026-02-26 15:35:52 +08:00
parent 53a3727328
commit 54a861062c
11 changed files with 6 additions and 19 deletions

View file

@ -141,7 +141,6 @@ export const useSlashCommandProcessor = (
return;
}
abortControllerRef.current.abort();
setPendingItem(null);
addItem(
{
type: MessageType.INFO,
@ -149,6 +148,7 @@ export const useSlashCommandProcessor = (
},
Date.now(),
);
setPendingItem(null);
setIsProcessing(false);
}, [addItem, setIsProcessing]);