mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
regenerate OpenAPI spec and add model selection components
This commit is contained in:
1 parent
9ed292af2a
commit
17ee96d316
12 files changed
+10266
-3453
No files matched your search
@@ -61,8 +61,7 @@ export const useSessionStatus = create<SessionStatusStore>((set, get) => ({
|
||||
}))
|
||||
|
||||
export const useSessionStatusForSession = (sessionID: string | undefined): SessionStatusType => {
|
||||
const status = useSessionStatus((state) =>
|
||||
sessionID ? state.statuses.get(sessionID) : undefined
|
||||
return useSessionStatus((state) =>
|
||||
sessionID ? (state.statuses.get(sessionID) ?? DEFAULT_STATUS) : DEFAULT_STATUS
|
||||
)
|
||||
return status || DEFAULT_STATUS
|
||||
}
|
||||
Reference in new issue
Block a user