refactor(chat): split stream helpers

This commit is contained in:
2026-07-07 12:05:46 +08:00
parent 900e60460c
commit 7f34098cf5
5 changed files with 211 additions and 204 deletions
+1 -3
View File
@@ -2,12 +2,10 @@ import { describe, expect, it } from "bun:test";
import {
buildForkedSessionUiState,
resolveRequestedStreamSessionId,
} from "../../src/routes/chat.js";
import {
buildPromptWithLearningContext,
extractLatestFrontendTurn,
generateSessionTitle,
resolveRequestedStreamSessionId,
shouldRestoreConversationForRuntime,
shouldGenerateSessionTitle,
} from "../../src/routes/chatSession.js";