Skip to content

The open source coding agent.

TypeScript

ignore: fix session activation after creation to ensure proper state management

Dax Raad18e549a47446
diff --git a/packages/desktop/src/pages/index.tsx b/packages/desktop/src/pages/index.tsx
index d7f32096e35..47d03fe6c7f 100644
--- a/packages/desktop/src/pages/index.tsx
+++ b/packages/desktop/src/pages/index.tsx
@@ -167,7 +167,6 @@ export default function Page() {
session = created.data ?? undefined
}
if (!session) return
- local.session.setActive(session.id)
interface SubmissionAttachment {
path: string
@@ -262,6 +261,7 @@ export default function Page() {
],
},
})
+ local.session.setActive(session.id)
}
const handleNewSession = () => {