MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / resumePty

Method resumePty

src/workspaces/persistent-session.ts:487–495  ·  view source on GitHub ↗

Un-pause the PTY read stream if backpressure paused it. Safe to call when * already running. Keeping the `paused` flag and the term stream in lockstep * is the whole point — clearing one without the other deadlocks the PTY.

()

Source from the content-addressed store, hash-verified

485 * already running. Keeping the `paused` flag and the term stream in lockstep
486 * is the whole point — clearing one without the other deadlocks the PTY. */
487 private resumePty(): void {
488 if (!this.paused) return;
489 this.paused = false;
490 try {
491 this.term.resume();
492 } catch {
493 // PTY may be dying; ignore.
494 }
495 }
496
497 private onWsMessage(ws: WebSocket, raw: unknown, isBinary: boolean): void {
498 if (this.disposed) return;

Callers 2

attachMethod · 0.95
detachMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected