فهرست منبع

fix(app): terminal corruption

adamelmore 3 هفته پیش
والد
کامیت
df7f9ae3f4
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      packages/app/src/context/terminal.tsx

+ 3 - 2
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)