opencode icon indicating copy to clipboard operation
opencode copied to clipboard

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

Open mwaltzer opened this issue 1 year ago • 1 comments

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/@[email protected]+1753ef9b65046169/node_modules/@opentui/solid/index.js:140:62)
    at runComputation (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:742:22)
    at updateComputation (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:724:3)
    at createRenderEffect (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:240:75)
    at insert (../../node_modules/.bun/@[email protected]+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/[email protected]/node_modules/solid-js/dist/dev.js:475:12)
    at runComputation (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:742:22)...

OpenCode version

1.0.49

Steps to reproduce

On launch

Screenshot and/or share link

No response

Operating System

Arch Linux

Terminal

Ghostty and VS Code integrated

mwaltzer avatar Nov 09 '25 03:11 mwaltzer

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

  • #4104: Same TypeError with 'local.model.parsed().model' occurring on first start
  • #4105: Identical error with the same stack trace at the same line (index.tsx:622:47)

Both issues report the exact same error message and stack trace in the opentui prompt component. Feel free to ignore if none of these address your specific case.

github-actions[bot] avatar Nov 09 '25 03:11 github-actions[bot]