opentui: fatal: undefined is not an object (evaluating 'local.model.parsed().model') #2834

Closed
opened 2026-02-16 17:37:28 -05:00 by yindo · 6 comments
Owner

Originally created by @sharma-shanu on GitHub (Nov 13, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

TypeError: undefined is not an object (evaluating 'local.model.parsed().model')
    at <anonymous> (src/cli/cmd/tui/component/prompt/index.tsx:622:47)
    at <anonymous> (../../node_modules/.bun/@opentui+solid@0.0.0-20251108-0c7899b1+1753ef9b65046169/node_modules/@opentui/solid/index.js:140:62)
    at runComputation (../../node_modules/.bun/solid-js@1.9.9/node_modules/solid-js/dist/dev.js:742:22)
    at updateComputation (../../node_modules/.bun/solid-js@1.9.9/node_modules/solid-js/dist/dev.js:724:3)
    at createRenderEffect (../../node_modules/.bun/solid-js@1.9.9/node_modules/solid-js/dist/dev.js:240:75)
    at insert (../../node_modules/.bun/@opentui+solid@0.0.0-20251108-0c7899b1+1753ef9b65046169/node_modules/@opentui/solid/index.js:140:5)
    at <anonymous> (src/cli/cmd/tui/component/prompt/index.tsx:622:5)
    at Prompt (src/cli/cmd/tui/component/prompt/index.tsx:746:12)
    at untrack (../../node_modules/.bun/solid-js@1.9.9/node_modules/solid-js/dist/dev.js:475:12)
    at runComputation (../../node_modules/.bun/solid-js@1.9.9/node_modules/solid-js/dist/dev.js:742:22)...

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @sharma-shanu on GitHub (Nov 13, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description ``` TypeError: undefined is not an object (evaluating 'local.model.parsed().model') at <anonymous> (src/cli/cmd/tui/component/prompt/index.tsx:622:47) at <anonymous> (../../node_modules/.bun/@opentui+solid@0.0.0-20251108-0c7899b1+1753ef9b65046169/node_modules/@opentui/solid/index.js:140:62) at runComputation (../../node_modules/.bun/solid-js@1.9.9/node_modules/solid-js/dist/dev.js:742:22) at updateComputation (../../node_modules/.bun/solid-js@1.9.9/node_modules/solid-js/dist/dev.js:724:3) at createRenderEffect (../../node_modules/.bun/solid-js@1.9.9/node_modules/solid-js/dist/dev.js:240:75) at insert (../../node_modules/.bun/@opentui+solid@0.0.0-20251108-0c7899b1+1753ef9b65046169/node_modules/@opentui/solid/index.js:140:5) at <anonymous> (src/cli/cmd/tui/component/prompt/index.tsx:622:5) at Prompt (src/cli/cmd/tui/component/prompt/index.tsx:746:12) at untrack (../../node_modules/.bun/solid-js@1.9.9/node_modules/solid-js/dist/dev.js:475:12) at runComputation (../../node_modules/.bun/solid-js@1.9.9/node_modules/solid-js/dist/dev.js:742:22)... ``` ### OpenCode version _No response_ ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 17:37:28 -05:00
yindo closed this issue 2026-02-16 17:37:28 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 13, 2025):

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

  • #4118: opentui: fatal: undefined is not an object (evaluating 'local.model.parsed().model') - Same exact error and stack trace
  • #4110: opentui: fatal: undefined is not an object (evaluating 'local.model.parsed().model') - Same exact error and stack trace
  • #4167: opentui: fatal: undefined is not an object (evaluating 'local.model.parsed().model') - Same exact error and stack trace, occurs when running opencode on new projects
  • #4106: opentui: fatal: undefined is not an object (evaluating 'local.model.parsed().model') - Same exact error and stack trace, occurs on launch
  • #4108: opentui: fatal: undefined is not an object (evaluating 'local.model.parsed().model') - Same exact error and stack trace, related to Zen authentication issues

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Nov 13, 2025): This issue might be a duplicate of existing issues. Please check: - #4118: opentui: fatal: undefined is not an object (evaluating 'local.model.parsed().model') - Same exact error and stack trace - #4110: opentui: fatal: undefined is not an object (evaluating 'local.model.parsed().model') - Same exact error and stack trace - #4167: opentui: fatal: undefined is not an object (evaluating 'local.model.parsed().model') - Same exact error and stack trace, occurs when running opencode on new projects - #4106: opentui: fatal: undefined is not an object (evaluating 'local.model.parsed().model') - Same exact error and stack trace, occurs on launch - #4108: opentui: fatal: undefined is not an object (evaluating 'local.model.parsed().model') - Same exact error and stack trace, related to Zen authentication issues Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Nov 13, 2025):

@sharma-shanu can u do rm ~/.cache/opencode/models.json and then restart opencode

I think this is fixed, new versions also have a null check for this

@rekram1-node commented on GitHub (Nov 13, 2025): @sharma-shanu can u do `rm ~/.cache/opencode/models.json` and then restart opencode I think this is fixed, new versions also have a null check for this
Author
Owner

@Nindaleth commented on GitHub (Nov 29, 2025):

I'm only allowed to use Github Copilot models at work, meaning I had to blacklist opencode's selection. Then I copied my OpenCode config to a home computer without signed-in Copilot, forgot to re-enable opencode models -> this still reproduces on 1.0.121.

@Nindaleth commented on GitHub (Nov 29, 2025): I'm only allowed to use Github Copilot models at work, meaning I had to blacklist opencode's selection. Then I copied my OpenCode config to a home computer without signed-in Copilot, forgot to re-enable opencode models -> this still reproduces on 1.0.121.
Author
Owner

@rekram1-node commented on GitHub (Nov 29, 2025):

ah i see okay ill fix

@rekram1-node commented on GitHub (Nov 29, 2025): ah i see okay ill fix
Author
Owner

@Nindaleth commented on GitHub (Dec 2, 2025):

This is now fixed by #4964 in v1.0.127 and newer versions for me, thanks!

@Nindaleth commented on GitHub (Dec 2, 2025): This is now fixed by #4964 in v1.0.127 and newer versions for me, thanks!
Author
Owner

@rekram1-node commented on GitHub (Dec 2, 2025):

Sweet, np

@rekram1-node commented on GitHub (Dec 2, 2025): Sweet, np
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2834