fix(pty): defer the first readiness poll

This commit is contained in:
Tianyi Cui
2026-07-29 03:44:57 +08:00
parent 65264f6c80
commit a0200376a1
2 changed files with 26 additions and 1 deletions

View File

@@ -266,7 +266,7 @@ export class LocalPtySession implements PtyBackendSession {
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
if (this.active === operation && !this.closing) {
this.pollingReady = operation
this.schedulePoll(operation, 0)
this.schedulePoll(operation)
}
} catch (error: unknown) {
if (this.active === operation) {