refactor(core): simplify session runner bookkeeping (#36200)
This commit is contained in:
parent
0d6ccd2a50
commit
278c510549
4 changed files with 11 additions and 28 deletions
|
|
@ -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 })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue