fix(team): narrow opencode readiness models
This commit is contained in:
parent
0bde66b032
commit
9d3e7ef99b
1 changed files with 5 additions and 4 deletions
|
|
@ -7733,13 +7733,14 @@ export class TeamProvisioningService {
|
|||
typeof adapter.getLastOpenCodeTeamLaunchReadiness === 'function'
|
||||
? adapter.getLastOpenCodeTeamLaunchReadiness(cwd)
|
||||
: null;
|
||||
const availableModels = Array.from(
|
||||
const availableModels: string[] = Array.from(
|
||||
new Set(
|
||||
(latestReadiness?.availableModels ?? [])
|
||||
(Array.isArray(latestReadiness?.availableModels) ? latestReadiness.availableModels : [])
|
||||
.filter((modelId: unknown): modelId is string => typeof modelId === 'string')
|
||||
.map((modelId: string) => modelId.trim())
|
||||
.filter(Boolean)
|
||||
.filter((modelId: string) => modelId.length > 0)
|
||||
)
|
||||
) as string[];
|
||||
);
|
||||
appendPreflightDebugLog('opencode_compatibility_batch_catalog', {
|
||||
cwd,
|
||||
modelIds,
|
||||
|
|
|
|||
Loading…
Reference in a new issue