大纲规划

This commit is contained in:
董宏凯 committed 2026-05-18 21:43:48 +08:00
1 parent 49e5aaea6b
commit 17b28f43f8
5 files changed
+117 -58

No files matched your search

@@ -21,6 +21,7 @@ import type {
const INITIAL_STATE: AIWritingState = {
sessionId: null,
status: 'idle',
request: null,
isPaused: false,
progressEvents: [],
materials: [],
@@ -269,7 +270,7 @@ export function useAIWriting() {
abortRef.current?.abort();
abortRef.current = new AbortController();
setState({ ...INITIAL_STATE, status: 'researching' });
setState({ ...INITIAL_STATE, status: 'researching', request });
try {
const sessionId = await startWritingSession(request);