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
opentui: fatal: undefined is not an object (evaluating 'flat().length') #4101
TypeError: undefined is not an object (evaluating 'flat().length')
at <anonymous> (src/cli/cmd/tui/ui/dialog-select.tsx:49:49)
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 readSignal (../../node_modules/.bun/solid-js@1.9.9/node_modules/solid-js/dist/dev.js:660:67)
at <anonymous> (src/cli/cmd/tui/ui/dialog-select.tsx:280:16)
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 <anonymous> (src/cli/cmd/tui/ui/dialog-select.tsx:273:5)
at untrack (../../node_modules/.bun/solid-js@1.9.9/node_modules/solid-js/dist/dev.js:475:12)...
I also started getting this today. I was using v1.0.45. I upgraded to v1.0.49, and it still occurs. Yesterday, when using v1.0.45, it did not happen at all. It sounds like an issue in models.dev that happened in the last 12 hours (maybe?)
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)...
i'm getting a similar error on v1.0.49. no flags, just opencode. i was in a session and opened another tab to start a new one and this happens every time now. interestingly the original session kept working fine until i exited it.
Activity
github-actions commentedon Nov 9, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
kennyfrc commentedon Nov 9, 2025
I also started getting this today. I was using v1.0.45. I upgraded to v1.0.49, and it still occurs. Yesterday, when using v1.0.45, it did not happen at all. It sounds like an issue in models.dev that happened in the last 12 hours (maybe?)
rekram1-node commentedon Nov 9, 2025
@jeromewoody @kennyfrc try upgrading to 1.0.50 I think I fixed this
mwaltzer commentedon Nov 9, 2025
I'm on 1.0.50 and still getting this:
rekram1-node commentedon Nov 9, 2025
great 😭
thdxr commentedon Nov 9, 2025
@somerocketeer are you starting opencode with
-m?thdxr commentedon Nov 9, 2025
see if it's fixed in 1.0.51 - publishing now
the-vampiire commentedon Nov 9, 2025
i'm getting a similar error on v1.0.49. no flags, just
opencode. i was in a session and opened another tab to start a new one and this happens every time now. interestingly the original session kept working fine until i exited it.unable to copy anything, had to screenshot
the-vampiire commentedon Nov 9, 2025
had to uninstall opencode from homebrew and use the installer script to get the latest version 1.0.51. @thdxr new version fixed it for me
oafx commentedon Nov 9, 2025
works with brew too, 1.0.51 fixed it for me too
mwaltzer commentedon Nov 9, 2025
Seems fixed on 1.0.51, thank you!