summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam <[email protected]>2025-12-25 19:02:43 -0600
committerAdam <[email protected]>2025-12-25 19:02:43 -0600
commit42f2bc719940312fd0017205a807f414156f133c (patch)
tree82d0897a4f6dabffc4041fe5852e1df584db150a
parent603dae562ac78f48895782e2125805116e18a8f3 (diff)
downloadopencode-42f2bc719940312fd0017205a807f414156f133c.tar.gz
opencode-42f2bc719940312fd0017205a807f414156f133c.zip
fix(desktop): can't collapse project with active session
-rw-r--r--packages/app/src/pages/layout.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/app/src/pages/layout.tsx b/packages/app/src/pages/layout.tsx
index e8dd152e1..4a29329a8 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))
})