fix: address all Cubic P2 review issues
- session-utils: log SDK errors instead of silent swallow - opencode-message-dir: fix indentation, improve error log format - storage: use session.list for sessionExists (handles empty sessions) - storage.test: use resetStorageClient for proper SDK client cleanup - todo-sync: add content-based fallback for id-less todo removal
This commit is contained in:
@@ -21,10 +21,10 @@ export function getMessageDir(sessionID: string): string | null {
|
||||
return sessionPath
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
log(`Error reading message directory: ${error}`)
|
||||
return null
|
||||
}
|
||||
} catch (error) {
|
||||
log("[opencode-message-dir] Failed to scan message directories", { sessionID, error: String(error) })
|
||||
return null
|
||||
}
|
||||
|
||||
return null
|
||||
}
|
||||
Reference in New Issue
Block a user