Skip to content

The open source coding agent.

TypeScript

fix(app): terminal corruption

adamelmoredf7f9ae3f41a
diff --git a/packages/app/src/context/terminal.tsx b/packages/app/src/context/terminal.tsx
index 439b196c632..e01b8bc4de9 100644
--- a/packages/app/src/context/terminal.tsx
+++ b/packages/app/src/context/terminal.tsx
@@ -155,8 +155,9 @@ function createTerminalSession(sdk: ReturnType<typeof useSDK>, dir: string, sess
batch(() => {
setStore("all", index, {
- ...pty,
- ...clone.data,
+ id: clone.data.id,
+ title: clone.data.title ?? pty.title,
+ titleNumber: pty.titleNumber,
})
if (active) {
setStore("active", clone.data.id)