Fix computer use session error status

This commit is contained in:
Simos Mikelatos
2026-06-19 07:47:56 +00:00
parent 25ab273b05
commit 9f24f80f33
13 changed files with 41 additions and 9 deletions

View File

@@ -17,7 +17,11 @@ function encryptSecret(secret) {
function decryptSecret(record) {
if (!record?.value) return null;
if (!record.encrypted) return record.value;
return safeStorage.decryptString(Buffer.from(record.value, 'base64'));
try {
return safeStorage.decryptString(Buffer.from(record.value, 'base64'));
} catch {
return null;
}
}
export class CloudController {