diff --git a/src/routes/chat.ts b/src/routes/chat.ts index 08e333f..fb9c455 100644 --- a/src/routes/chat.ts +++ b/src/routes/chat.ts @@ -11,7 +11,6 @@ import { agentModelOptions, isSupportedModel, resolveDefaultModel, - type SupportedModel, } from "../chat/models.js"; import { config } from "../config.js"; import { type LearningOrchestrator } from "../learning/orchestrator.js"; @@ -1116,7 +1115,7 @@ export const buildChatRouter = ( fallbackTitle: existingSessionTitle, }); } - const nextSessionRecord = await sessionMetadataStore.touch(latestSessionRecord, { + await sessionMetadataStore.touch(latestSessionRecord, { ...(sessionTitle && sessionTitle !== existingSessionTitle ? { title: sessionTitle } : {}), diff --git a/src/routes/chatStream.ts b/src/routes/chatStream.ts index 650a1f4..f86a928 100644 --- a/src/routes/chatStream.ts +++ b/src/routes/chatStream.ts @@ -45,8 +45,6 @@ import { normalizeToolParams, normalizeToolStatus, type PermissionRequestPayload, - type QuestionRequestPayload, - type TodoItemPayload, type TodoUpdatePayload, } from "./chatStreamEvents.js"; import { createTokenSmoother } from "./chatTokenSmoother.js"; diff --git a/tsconfig.json b/tsconfig.json index 75a5b4c..0c0d6a5 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,5 +13,5 @@ "allowSyntheticDefaultImports": true, "types": ["node", "bun-types"] }, - "include": ["src/**/*.ts", "tests/**/*.ts", "cli/**/*.ts"] + "include": ["src/**/*.ts", "tests/**/*.ts"] }