feat: implemented confirmation mechanism for tool invokation

This commit is contained in:
Xiaohan-Tian
2026-06-03 17:05:42 -07:00
parent 414565ecc9
commit ad1e0c2aa8
23 changed files with 860 additions and 84 deletions
+3 -1
View File
@@ -1,4 +1,5 @@
import { AgentCore } from '../agent/core/AgentCore';
import { useProjectStore } from '../stores/projectStore';
/**
* Clear chat history and reset chat state
@@ -9,6 +10,7 @@ export const clearChatHistory = () => {
// Clear agent state
const agentCore = AgentCore.instance();
agentCore.clearConversation();
useProjectStore.getState().setToolFastForwardEnabled(false);
console.log('Chat history cleared programmatically');
};
@@ -52,4 +54,4 @@ export const clearChatHistoryAndUI = (setStatus?: (statusMessage: string) => voi
if (setStatus) {
setStatus('Chat history cleared');
}
};
};