feat(chats): add managed projectless chat sessions
Create projectless chat sessions under a managed, date-scoped Chats directory and clean abandoned or deleted session folders. Add Chats to sidebar state, startup cache, shared context, and Electron Mini Chat while keeping VS Code project-only. Resolve managed chat directories to one server-side memory owner and document the runtime contracts.
This commit is contained in:
@@ -73,6 +73,8 @@ mock.module("@/stores/utils/safeStorage", () => ({
|
||||
mock.module("@/lib/opencode/client", () => ({
|
||||
opencodeClient: {
|
||||
getDirectory: () => null,
|
||||
getFilesystemHome: mock(async () => "/home/test"),
|
||||
createDirectory: mock(async (path: string) => ({ success: true, path })),
|
||||
setDirectory: mock(() => undefined),
|
||||
},
|
||||
}))
|
||||
@@ -327,9 +329,11 @@ describe("issue 2039 draft auto-accept", () => {
|
||||
currentSessionId: null,
|
||||
currentSessionDirectory: null,
|
||||
newSessionDraft: {
|
||||
draftId: 0,
|
||||
open: false,
|
||||
directoryOverride: null,
|
||||
parentID: null,
|
||||
target: "chat",
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user