refactor(core): simplify session runner bookkeeping (#36200)

This commit is contained in:
Kit Langton
2026-07-10 09:46:34 -04:00
committed by GitHub
parent 0d6ccd2a50
commit 278c510549
4 changed files with 11 additions and 28 deletions
+1 -1
View File
@@ -581,7 +581,7 @@ const layer = Layer.effect(
yield* shellLocks.withLock(input.sessionID)(
Effect.gen(function* () {
activeShells.add(input.sessionID)
if ((yield* execution.active).has(input.sessionID)) yield* execution.awaitIdle(input.sessionID)
yield* execution.awaitIdle(input.sessionID)
const started = yield* Effect.gen(function* () {
const shell = yield* Shell.Service
return yield* shell.create({ command: input.command, cwd: session.location.directory, timeout: 0 })