Apply ACP recipe state during session load and fork (#9998)

This commit is contained in:
Lifei Zhou
2026-06-26 09:13:57 +10:00
committed by GitHub
parent 3c62892d1d
commit 59b28e455f
5 changed files with 35 additions and 17 deletions
+1 -12
View File
@@ -3,7 +3,7 @@ import { defineMessages, useIntl } from '../i18n';
import { AppEvents } from '../constants/events';
import { ChatState } from '../types/chatState';
import { Message, Session, TokenState, updateFromSession } from '../api';
import { Message, Session, TokenState } from '../api';
import { createUserMessage, NotificationEvent, UserInput } from '../types/message';
import { errorMessage } from '../utils/conversionUtils';
@@ -267,17 +267,6 @@ export function useAcpChatSession({
return Promise.reject(new Error('ACP recipe parameters are handled during session creation'));
}, []);
useEffect(() => {
if (session) {
updateFromSession({
body: {
session_id: session.id,
},
throwOnError: true,
});
}
}, [session]);
const stopStreaming = useCallback(() => {
acpChatSessionController.stop(sessionId);
}, [sessionId]);