feat(coding): add durable project identity core

This commit is contained in:
2026-08-26 17:59:44 +08:00
parent 7e54b8fbda
commit 43f58fc72b
12 changed files with 717 additions and 7 deletions

View File

@@ -178,6 +178,9 @@ export function createCodingComposition(
.catch(() => []);
for (const conversation of conversations) registry.forget(conversation.id);
},
onProjectIdentityChanging: async (project) => {
await options.browser.close(project.path);
},
onProjectDeactivated: async (project, reason) => {
const conversations = await conversationStoreForProject(project.path).read()
.then((file) => file.conversations)