fix: 默认使用 AgentRun 固定 lane

This commit is contained in:
Codex
2026-07-10 08:06:23 +02:00
parent 52eddfe841
commit c0857641cd
3 changed files with 7 additions and 3 deletions
+4 -2
View File
@@ -1028,8 +1028,10 @@ try {
}
export function resolveAgentRunRestTarget(config: UniDeskConfig | null, options: AgentRunRestTargetOptions): AgentRunRestTarget | null {
if (options.node === null && options.lane === null) return null;
if (config === null) throw new AgentRunRestError("validation-failed", "--node/--lane resource queries require UniDesk config");
if (config === null) {
if (options.node === null && options.lane === null) return null;
throw new AgentRunRestError("validation-failed", "--node/--lane resource queries require UniDesk config");
}
const { configPath, spec } = resolveAgentRunLaneTarget(options);
return { config, configPath, spec };
}