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

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

Originally created by @dyukovlad on GitHub (Nov 10, 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

1.0.49

Steps to reproduce

  1. bun create next-app@latest my-app --yes
  2. cd my-app
  3. opencode
Image

Screenshot and/or share link

No response

Operating System

macos sequoia 15.7.2

Terminal

iTerm2

Originally created by @dyukovlad on GitHub (Nov 10, 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 1.0.49 ### Steps to reproduce 1. bun create next-app@latest my-app --yes 2. cd my-app 3. opencode <img width="1792" height="1137" alt="Image" src="https://github.com/user-attachments/assets/fcadea87-03fb-4239-8ff0-2311a619022c" /> ### Screenshot and/or share link _No response_ ### Operating System macos sequoia 15.7.2 ### Terminal iTerm2
yindo added the opentuibug labels 2026-02-16 17:37:08 -05:00
yindo closed this issue 2026-02-16 17:37:08 -05:00
Author
Owner

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

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

  • #4118: Same exact error message and stack trace with same OpenCode version (1.0.49) on macOS
  • #4106: Identical error evaluating 'local.model.parsed().model' on launch with version 1.0.49
  • #4108: Same error with additional reproduction steps involving Zen authorization and model selection
  • #4104, #4105, #4110: Multiple other closed reports with identical error message

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

@github-actions[bot] commented on GitHub (Nov 10, 2025): This issue might be a duplicate of existing issues. Please check: - #4118: Same exact error message and stack trace with same OpenCode version (1.0.49) on macOS - #4106: Identical error evaluating 'local.model.parsed().model' on launch with version 1.0.49 - #4108: Same error with additional reproduction steps involving Zen authorization and model selection - #4104, #4105, #4110: Multiple other closed reports with identical error message Feel free to ignore if none of these address your specific case.
Author
Owner

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

@dyukovlad can u upgrade to latest and do rm -rf ~/.cache/opencode

@rekram1-node commented on GitHub (Nov 10, 2025): @dyukovlad can u upgrade to latest and do `rm -rf ~/.cache/opencode`
Author
Owner

@dyukovlad commented on GitHub (Nov 10, 2025):

After the update, the error no longer appeared.

@dyukovlad commented on GitHub (Nov 10, 2025): After the update, the error no longer appeared.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2758