fix: prevent consts from triggering after leaving effect context

This commit is contained in:
Aiden McClelland
2026-03-16 20:07:59 -06:00
parent 7352602f58
commit 66a606c14e
3 changed files with 7 additions and 8 deletions

View File

@@ -71,7 +71,7 @@ export class SystemForStartOs implements System {
this.starting = true
effects.constRetry = utils.once(() => {
console.debug(".const() triggered")
effects.restart()
if (effects.isInContext) effects.restart()
})
let mainOnTerm: () => Promise<void> | undefined
const daemons = await (