fix: stats persistence

This commit is contained in:
2026-02-06 09:27:37 -08:00
parent 716949e114
commit 1492983ba9
4 changed files with 22 additions and 2 deletions
+7
View File
@@ -107,6 +107,12 @@ async function startNewConversation(): Promise<void> {
conversationId,
});
// Get granted tools before interrupting
const activeConversation = get(conversationsStore.activeConversation);
const grantedTools = activeConversation ? Array.from(activeConversation.grantedTools) : [];
const config = configStore.getConfig();
const allAllowedTools = [...new Set([...grantedTools, ...config.auto_granted_tools])];
claudeStore.addLine("system", "Starting new conversation...");
characterState.setState("thinking");
@@ -120,6 +126,7 @@ async function startNewConversation(): Promise<void> {
conversationId,
options: {
working_dir: workingDir,
allowed_tools: allAllowedTools,
},
});