refactor(shared): unify MESSAGE_STORAGE/PART_STORAGE constants into single source
- Create src/shared/opencode-storage-paths.ts with all 4 constants - Update 4 previous declaration sites to import from shared file - Update additional OPENCODE_STORAGE usages for consistency - Re-export from src/shared/index.ts - No duplicate constant declarations remain
This commit is contained in:
@@ -475,9 +475,9 @@ describe("session-manager storage - SDK path (beta mode)", () => {
|
||||
resetSqliteBackendCache: () => {},
|
||||
}))
|
||||
|
||||
// Reset client to ensure "client not set" case is exercised
|
||||
const { resetStorageClient } = await import("./storage")
|
||||
resetStorageClient()
|
||||
// Reset SDK client to ensure "client not set" case is exercised
|
||||
const { setStorageClient } = await import("./storage")
|
||||
setStorageClient(null as any)
|
||||
|
||||
// Re-import without setting client
|
||||
const { readSessionMessages } = await import("./storage")
|
||||
|
||||
Reference in New Issue
Block a user