fix(worker): materialize env files 0600, re-materialize per run, delete on stop

This commit is contained in:
Gabriel Brown
2026-07-11 11:36:03 -04:00
parent 424307c5af
commit 58c815a7a7
4 changed files with 105 additions and 7 deletions
@@ -5,6 +5,7 @@ export const teardownWorkspace = async (steps: {
removeActive: TeardownStep;
appendEvent?: TeardownStep;
abortAgent?: TeardownStep;
removeMaterializedEnv?: TeardownStep;
markStopped?: TeardownStep;
closeAgent?: TeardownStep;
stopContainer?: TeardownStep;
@@ -27,6 +28,7 @@ export const teardownWorkspace = async (steps: {
await Promise.all(immediate);
await call(steps.appendEvent);
await call(steps.abortAgent);
await call(steps.removeMaterializedEnv);
await call(steps.markStopped);
await call(steps.closeAgent);
await call(steps.stopContainer);