diff --git a/src/index.ts b/src/index.ts index 75668c4..6d752f8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -99,7 +99,7 @@ export class NestedManifoldRegion extends ManifoldRegion { const result = await this.nestedManifold.executeWorkflow(prompt); if (result) { log.debug(`Nested workflow execution successful, updating state`); - Object.assign(this.nestedManifold.state, { ...this.nestedManifold.state, ...result }); + Object.assign(this.nestedManifold.state, this.nestedManifold.state); } return result; }