Skip to content

The open source coding agent.

TypeScript

fix(desktop): can't collapse project with active session

Adam42f2bc719940
diff --git a/packages/app/src/pages/layout.tsx b/packages/app/src/pages/layout.tsx
index e8dd152e1fc..4a29329a87e 100644
--- a/packages/app/src/pages/layout.tsx
+++ b/packages/app/src/pages/layout.tsx
@@ -9,6 +9,7 @@ import {
ParentProps,
Show,
Switch,
+ untrack,
type JSX,
} from "solid-js"
import { DateTime } from "luxon"
@@ -323,7 +324,7 @@ export default function Layout(props: ParentProps) {
const id = params.id
setStore("lastSession", directory, id)
notification.session.markViewed(id)
- layout.projects.expand(directory)
+ untrack(() => layout.projects.expand(directory))
requestAnimationFrame(() => scrollToSession(id))
})