mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
fix(tui): address review follow-ups for session goals and multi-runs
This commit is contained in:
1 parent
bf369540a7
commit
c41149dc39
43 files changed
+1171
-682
No files matched your search
@@ -225,6 +225,14 @@ export function compareCatalogModels(a: CatalogSortEntry, b: CatalogSortEntry):
|
||||
return (a.name ?? '').localeCompare(b.name ?? '')
|
||||
}
|
||||
|
||||
export function isActiveCatalogProvider(provider: { activation?: string }): boolean {
|
||||
return provider.activation !== 'disabled'
|
||||
}
|
||||
|
||||
export function isSelectableCatalogModel(model: { enabled: boolean; status: string }): boolean {
|
||||
return model.enabled && model.status !== 'deprecated'
|
||||
}
|
||||
|
||||
interface SelectEffectiveModelRefOptions {
|
||||
models: ModelInfo[]
|
||||
defaultModel?: ModelRef | null
|
||||
|
||||
Reference in new issue
Block a user