opentui: fatal: undefined is not an object (evaluating 'session().parentID') #4247

Open
opened 2026-02-16 17:43:09 -05:00 by yindo · 1 comment
Owner

Originally created by @pablonification on GitHub (Jan 5, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

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 runTop (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:833:7)
    at runQueue (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:904:42)
    at completeUpdates (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:860:84)
    at runUpdates (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:850:5)
    at setStore (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/store/dist/dev.js:221:5)
    at navigate (src/cli/cmd/tui/context/route.tsx:18:9)
    at <anonymous> (src/cli/cmd/tui/routes/session/dialog-message.tsx:83:15)...

Plugins

oh my opencode

OpenCode version

1.1.1

Steps to reproduce

  1. forking a message
  2. suddenly boom

Screenshot and/or share link

No response

Operating System

macOS 26

Terminal

ghostty

Originally created by @pablonification on GitHub (Jan 5, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description ``` 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 runTop (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:833:7) at runQueue (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:904:42) at completeUpdates (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:860:84) at runUpdates (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/dist/dev.js:850:5) at setStore (../../node_modules/.bun/solid-js@1.9.10/node_modules/solid-js/store/dist/dev.js:221:5) at navigate (src/cli/cmd/tui/context/route.tsx:18:9) at <anonymous> (src/cli/cmd/tui/routes/session/dialog-message.tsx:83:15)... ``` ### Plugins oh my opencode ### OpenCode version 1.1.1 ### Steps to reproduce 1. forking a message 2. suddenly boom ### Screenshot and/or share link _No response_ ### Operating System macOS 26 ### Terminal ghostty
yindo added the opentuibug labels 2026-02-16 17:43:09 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 5, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #6874: opencode attach crashes with 'session().parentID' error in v1.1.1 (regression from #6319)
  • #6964: opentui: fatal: undefined is not an object (evaluating 'session().parentID')
  • #6867: opentui: fatal: undefined is not an object (evaluating 'session().parentID')

All three issues describe the same error with identical stack traces. Issue #6874 includes root cause analysis and a suggested fix (using optional chaining on 'session()?.parentID').

Feel free to ignore if this addresses a different specific case.

@github-actions[bot] commented on GitHub (Jan 5, 2026): This issue might be a duplicate of existing issues. Please check: - #6874: opencode attach crashes with 'session().parentID' error in v1.1.1 (regression from #6319) - #6964: opentui: fatal: undefined is not an object (evaluating 'session().parentID') - #6867: opentui: fatal: undefined is not an object (evaluating 'session().parentID') All three issues describe the same error with identical stack traces. Issue #6874 includes root cause analysis and a suggested fix (using optional chaining on 'session()?.parentID'). Feel free to ignore if this addresses a different specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4247