diff --git a/packages/app/src/context/terminal.tsx b/packages/app/src/context/terminal.tsx index 439b196c6..e01b8bc4d 100644 --- a/packages/app/src/context/terminal.tsx +++ b/packages/app/src/context/terminal.tsx @@ -155,8 +155,9 @@ function createTerminalSession(sdk: ReturnType, 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)