make sure to handle edit input when changing modes (#252266)

This commit is contained in:
Justin Chen
2025-06-24 01:52:45 -07:00
committed by GitHub
parent 0975639171
commit 129eabd4e5
@@ -224,6 +224,9 @@ class ToggleChatModeAction extends Action2 {
context.chatWidget.input.setChatMode2(switchToMode);
if (chatModeCheck.needToClearSession) {
if (context.chatWidget.viewModel?.editing) {
context.chatWidget.input.dispose();
}
await commandService.executeCommand(ACTION_ID_NEW_CHAT);
}
}