fix(runtime): close portable backend boundary gaps

This commit is contained in:
Tianyi Cui
2026-07-29 19:40:39 +08:00
parent c1d550de58
commit 124fc6a611
7 changed files with 59 additions and 14 deletions

View File

@@ -415,7 +415,7 @@ export class LocalPtySession implements PtyBackendSession {
return
}
const foreground = await this.terminal.inspectForeground()
if (this.active !== operation) return
if (this.active !== operation || this.closing) return
const idleFor = Date.now() - this.lastOutputAt
if (this.promptSeen && foreground !== undefined && this.shellPgid === undefined) {
this.shellPgid = foreground.processGroupId