Skip to content

fix(terminal): bound live xterm backpressure - #339

Open
dignfei wants to merge 1 commit into
Ark0N:masterfrom
dignfei:fix/terminal-live-write-backpressure
Open

fix(terminal): bound live xterm backpressure#339
dignfei wants to merge 1 commit into
Ark0N:masterfrom
dignfei:fix/terminal-live-write-backpressure

Conversation

@dignfei

@dignfei dignfei commented Aug 24, 2026

Copy link
Copy Markdown

Follow-up to #331.

Summary

  • Apply backpressure to live xterm writes by waiting for each parse callback before handing off the next bounded chunk.
  • Include queued, loading, in-flight, and incoming bytes in the 128 KiB client cap; keep automatic shell recovery on the bounded 1 MiB tail.
  • Drop redundant SSE terminal payloads while WebSocket owns terminal I/O, and make recovery single-flight and session-safe.
  • Document the bounded ordinary-shell scrollback behavior.

Testing

  • 14 focused Vitest files: 251 tests passed.
  • TypeScript type check passed.
  • Frontend syntax check passed for 34 files.
  • Prettier and staged diff checks passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant