feat: implemented confirmation mechanism for tool invokation
This commit is contained in:
@@ -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');
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user