fix: harden PTY events and configured roots

This commit is contained in:
N0zoM1z0 committed 2026-07-14 15:21:39 +08:00
1 parent 2575b30dfc
commit 31b40f39e4
14 files changed
+180 -40

No files matched your search

@@ -338,14 +338,12 @@ export const captureTerminalFrames = (options: {
readonly started: number;
readonly temporaryRoot: string;
readonly onOutput: () => void;
readonly onFirstOutput: () => void;
readonly renderer: TerminalRenderer;
readonly checkpoints: ProcessCheckpoints;
}): (() => boolean) => {
let outputBytes = 0;
let truncated = false;
options.terminal.onData((data) => {
options.onFirstOutput();
options.onOutput();
const bytes = Buffer.byteLength(data);
if (