mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 21:04:23 +01:00
chore: bump version to 0.7.3, set package to public, and add per-session agent mode switching
Changes: - Bump version to 0.7.3 - Set package.private to false - Add useSessionAgent hook for per-session agent mode - Remove global mode preference, use session-level mode - Add mobile drag-and-drop toggle for repo list - Improve repo card UI with truncation and compact status - Fix TypeScript errors in repo.ts (undefined handling)
This commit is contained in:
1 parent
94725ce473
commit
e6156f3c47
12 files changed
+202
-76
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import { useMemo } from 'react'
|
||||
import { useMessages } from './useOpenCode'
|
||||
import { useQuery } from '@tanstack/react-query'
|
||||
import { useSessionAgent } from './useSessionAgent'
|
||||
import { useModelSelection } from './useModelSelection'
|
||||
|
||||
interface ContextUsage {
|
||||
@@ -42,7 +43,11 @@ 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 { modelString } = useModelSelection(opcodeUrl, 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 { data: providersData } = useQuery({
|
||||
queryKey: ['providers', opcodeUrl],
|
||||
|
||||
Reference in new issue
Block a user