mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
Bump version to 0.8.21 (#99)
* Add timeout handling and recovery for OpenCode upgrade/install operations - Extract DEFAULT_AGENTS_MD to constants file - Add 90s timeout for opencode upgrade/install commands - Implement server recovery when upgrade/install fails - Update frontend error handling for recovery status - Add settings route tests * Add centralized query cache invalidation utility * Bump version to 0.8.21
This commit is contained in:
1 parent
3661f0a271
commit
a02f7a2e98
14 files changed
+1100
-126
No files matched your search
@@ -30,8 +30,22 @@ export function VersionSelectDialog({ open, onOpenChange }: VersionSelectDialogP
|
||||
showToast.success(result.message)
|
||||
onOpenChange(false)
|
||||
},
|
||||
onError: () => {
|
||||
showToast.error('Failed to install version')
|
||||
onError: (error) => {
|
||||
queryClient.invalidateQueries({ queryKey: ['opencode-versions'] })
|
||||
queryClient.invalidateQueries({ queryKey: ['server-health'] })
|
||||
|
||||
if (error && typeof error === 'object' && 'response' in error) {
|
||||
const response = (error as { response?: { data?: { recovered?: boolean; recoveryMessage?: string; newVersion?: string } } }).response
|
||||
const data = response?.data
|
||||
|
||||
if (data?.recovered) {
|
||||
showToast.success(`Install failed but server recovered at v${data.newVersion}`)
|
||||
} else {
|
||||
showToast.error(data?.recoveryMessage || 'Failed to install version')
|
||||
}
|
||||
} else {
|
||||
showToast.error('Failed to install version')
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user