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.tsxindex 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, sessbatch(() => {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)