You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
opencode attach crashes with 'session().parentID' error in v1.1.1 (regression from #6319) #6874
After upgrading from v1.0.223 to v1.1.1, the opencode attach command crashes immediately when trying to attach to a session.
Error
TypeError: undefined is not an object (evaluating 'session().parentID')
at <anonymous> (src/cli/cmd/tui/routes/session/index.tsx:82:17)
at runComputation (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:742:22)
at updateComputation (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:724:3)
at createMemo (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:273:10)
at Session4 (src/cli/cmd/tui/routes/session/index.tsx:81:23)
...
Root Cause
Introduced in commit 351ddeed9 ("Permission rework #6319"). The permissions memo accesses session().parentID without optional chaining, but session() can be undefined when the session data hasn't loaded yet (e.g., during attach):
Activity
rmk40 commentedon Jan 4, 2026
Closing as duplicate of #6867. The fix is already in dev branch (commit 226a5c2).