fix(runtime): close measured portability defects

This commit is contained in:
Tianyi Cui
2026-07-29 20:20:51 +08:00
parent 124fc6a611
commit 674d23118b
6 changed files with 73 additions and 26 deletions

View File

@@ -237,7 +237,7 @@ export class LocalPtySession implements PtyBackendSession {
}
this.activeDeadlineTimer = setTimeout(() => {
if (this.active === operation) {
this.settleActive('timeout', this.activeWrite?.operation === operation)
this.settleActive('timeout', this.activeWrite?.operation === operation || this.interrupting === operation)
}
}, this.config.timeoutMs)
void this.beginSend(operation, request)