mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 21:04:23 +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
@@ -1,7 +1,6 @@
|
||||
import { useMemo } from 'react'
|
||||
import { useMessages } from './useOpenCode'
|
||||
import { useQuery } from '@tanstack/react-query'
|
||||
import { useSessionAgent } from './useSessionAgent'
|
||||
import { useModelSelection } from './useModelSelection'
|
||||
|
||||
interface ContextUsage {
|
||||
@@ -43,11 +42,8 @@ async function fetchProviders(opcodeUrl: string): Promise<ProvidersResponse> {
|
||||
|
||||
export const useContextUsage = (opcodeUrl: string | null | undefined, sessionID: string | undefined, directory?: string): ContextUsage => {
|
||||
const { data: messages, isLoading: messagesLoading } = useMessages(opcodeUrl, sessionID, directory)
|
||||
const sessionAgent = useSessionAgent(opcodeUrl, sessionID, directory)
|
||||
const { modelString: globalModelString } = useModelSelection(opcodeUrl, directory)
|
||||
const modelString = sessionAgent.model
|
||||
? `${sessionAgent.model.providerID}/${sessionAgent.model.modelID}`
|
||||
: globalModelString
|
||||
const modelString = globalModelString
|
||||
|
||||
const { data: providersData } = useQuery({
|
||||
queryKey: ['providers', opcodeUrl],
|
||||
|
||||
Reference in new issue
Block a user