大纲规划
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user