Restore existing project works independently of model sessions
This commit is contained in:
1 parent
4eb3efa3d1
commit
0f26b6d072
19 files changed
+1977
-68
No files matched your search
@@ -411,6 +411,13 @@ export class CodingConversationService {
|
||||
}
|
||||
}
|
||||
|
||||
/** Read existing facts for work restoration without opening a model session. */
|
||||
async getStoredSnapshot(conversationId: string): Promise<ConversationSnapshot | null> {
|
||||
const { project, conversation } = await this.projects.findActiveConversation(conversationId);
|
||||
if (!conversation.sessionKey || !this.options.readHistory) return null;
|
||||
return await this.options.readHistory(project.id, conversation);
|
||||
}
|
||||
|
||||
async acceptPrompt(input: {
|
||||
conversationId: string;
|
||||
clientRequestId: unknown;
|
||||
|
||||
Reference in new issue
Block a user