fix(app): non-fatal error handling
This commit is contained in:
parent
743e83d9bf
commit
095328faf4
14 changed files with 341 additions and 199 deletions
10
packages/app/src/utils/base64.ts
Normal file
10
packages/app/src/utils/base64.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import { base64Decode } from "@opencode-ai/util/encode"
|
||||
|
||||
export function decode64(value: string | undefined) {
|
||||
if (value === undefined) return
|
||||
try {
|
||||
return base64Decode(value)
|
||||
} catch {
|
||||
return
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue