Remove SessionConfig

This commit is contained in:
Alex Gleason committed 2025-09-11 12:47:20 -05:00
1 parent af6942c04f
commit 9b7b79dacc
2 files changed
+27 -35

No files matched your search

+2 -10
View File
@@ -2,7 +2,7 @@ import { useState, useEffect, useCallback } from 'react';
import { useSessionManager } from '@/hooks/useSessionManager';
import { useSessionSubscription } from '@/hooks/useSessionSubscription';
import { useAISettings } from '@/hooks/useAISettings';
import type { SessionConfig, AIMessage } from '@/lib/SessionManager';
import type { AIMessage } from '@/lib/SessionManager';
import type OpenAI from 'openai';
import type { Tool } from '@/lib/tools/Tool';
@@ -58,15 +58,7 @@ export function useAIChat({
setLastInputTokens(existingSession.lastInputTokens || 0);
} else {
// Create new session
const config: SessionConfig = {
projectId,
tools,
customTools,
systemPrompt,
maxSteps
};
await sessionManager.createSession(config);
await sessionManager.createSession(projectId, tools, customTools, systemPrompt, maxSteps);
const newSession = sessionManager.getSession(projectId);
if (newSession) {