fix(app): terminal PTY buffer carryover

This commit is contained in:
Adam
2026-02-11 08:30:52 -06:00
parent 50330820c0
commit 8c5ba8aeb0

View File

@@ -196,6 +196,12 @@ function createWorkspaceTerminalSession(sdk: ReturnType<typeof useSDK>, dir: str
id: clone.data.id,
title: clone.data.title ?? pty.title,
titleNumber: pty.titleNumber,
// New PTY process, so start clean.
buffer: undefined,
cursor: undefined,
scrollY: undefined,
rows: undefined,
cols: undefined,
})
if (active) {
setStore("active", clone.data.id)