mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
fix(sandbox): guard enable path and harden UI rendering performance (#341)
* fix(sandbox): guard enable path and harden UI rendering performance * chore(deps): allow esbuild postinstall in pnpm onlyBuiltDependencies * fix(sandbox): align availability reporting and address PR review feedback * fix(sandbox): block planning without process attestation
This commit is contained in:
1 parent
ba8e8f4b29
commit
d63198ec8a
19 files changed
+501
-82
No files matched your search
@@ -5,6 +5,7 @@ import { Alert, AlertDescription } from '@/components/ui/alert'
|
||||
import { Badge } from '@/components/ui/badge'
|
||||
import { Box, RotateCcw } from 'lucide-react'
|
||||
import { showToast } from '@/lib/toast'
|
||||
import { FetchError } from '@/api/fetchWrapper'
|
||||
|
||||
export function SandboxSettings() {
|
||||
const { preferences, updateSettingsAsync, isUpdating } = useSettings()
|
||||
@@ -19,8 +20,8 @@ export function SandboxSettings() {
|
||||
try {
|
||||
await updateSettingsAsync({ sandbox: next })
|
||||
showToast.success(message)
|
||||
} catch {
|
||||
showToast.error('Failed to update sandbox preference')
|
||||
} catch (error) {
|
||||
showToast.error(error instanceof FetchError ? error.message : 'Failed to update sandbox preference')
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user