Add and use clone method for ReadOnlyEnv

This commit is contained in:
Michael B. Gale
2026-07-14 16:59:30 +01:00
parent 205b37b035
commit b946565527
3 changed files with 10 additions and 1 deletions

View File

@@ -240,7 +240,7 @@ abstract class BaseEnvBuilder<
cloneFrom !== undefined
? ({
...cloneFrom.state,
env: Object.create(cloneFrom.state.env),
env: cloneFrom.state.env.clone(),
actions: Object.create(cloneFrom.state.actions),
logger: this.logger,
} satisfies ActionState<AllState>)