Skip to content

Commit 5b61ac4

Browse files
committed
fix(workspace): handle undefined subAgentIds in template initialization
1 parent 6d1add0 commit 5b61ac4

File tree

1 file changed

+1
-1
lines changed
  • src/runtime/services/workspace

1 file changed

+1
-1
lines changed

src/runtime/services/workspace/init.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export async function bootstrapWorkspace(options?: WorkspaceBootstrapOptions): P
7272
const template = await loadWorkflowModule(options.templatePath);
7373
if (isWorkflowTemplate(template)) {
7474
const templateName = path.basename(options.templatePath);
75-
agentIdsToLoad = template.subAgentIds;
75+
agentIdsToLoad = template.subAgentIds ?? [];
7676

7777
// Save template to template.json
7878
await setActiveTemplate(cmRoot, templateName);

0 commit comments

Comments
 (0)