mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-06 00:12:11 +00:00
fix(app): terminal PTY buffer carryover
This commit is contained in:
parent
50330820c0
commit
8c5ba8aeb0
1 changed files with 6 additions and 0 deletions
|
|
@ -196,6 +196,12 @@ function createWorkspaceTerminalSession(sdk: ReturnType<typeof useSDK>, dir: str
|
||||||
id: clone.data.id,
|
id: clone.data.id,
|
||||||
title: clone.data.title ?? pty.title,
|
title: clone.data.title ?? pty.title,
|
||||||
titleNumber: pty.titleNumber,
|
titleNumber: pty.titleNumber,
|
||||||
|
// New PTY process, so start clean.
|
||||||
|
buffer: undefined,
|
||||||
|
cursor: undefined,
|
||||||
|
scrollY: undefined,
|
||||||
|
rows: undefined,
|
||||||
|
cols: undefined,
|
||||||
})
|
})
|
||||||
if (active) {
|
if (active) {
|
||||||
setStore("active", clone.data.id)
|
setStore("active", clone.data.id)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue