opencode icon indicating copy to clipboard operation
opencode copied to clipboard

opentui: fatal: undefined is not an object (evaluating 'enabledFormatters().length')

Open Flagrare opened this issue 1 year ago • 3 comments

Description

TypeError: undefined is not an object (evaluating 'enabledFormatters().length')
    at when (src/cli/cmd/tui/component/dialog-status.tsx:184:34)
    at <anonymous> (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:1521:43)
    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 readSignal (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:660:67)
    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 createMemo (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:273:10)
    at Show (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:1524:46)
    at untrack (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:475:12)...

OpenCode version

1.0.107

Steps to reproduce

I just tried to run the /status command. I am using z.ai GLM as a model.

Image

Screenshot and/or share link

No response

Operating System

MAC OS Tahoe 26.1

Terminal

Ghostty 1.2.3

Flagrare avatar Nov 30 '25 16:11 Flagrare

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

  • #3661: Status command not showing any status content (similar /status command issue)

The error occurs in the same component (dialog-status.tsx) and triggers when running the /status command. Both issues involve undefined reference errors in the status dialog component. Feel free to ignore if this addresses a different aspect of your specific case.

github-actions[bot] avatar Nov 30 '25 16:11 github-actions[bot]

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

* [bug: Status command is not showing any status content #3661](https://github.com/sst/opencode/issues/3661): Status command not showing any status content (similar /status command issue)

The error occurs in the same component (dialog-status.tsx) and triggers when running the /status command. Both issues involve undefined reference errors in the status dialog component. Feel free to ignore if this addresses a different aspect of your specific case.

Different error.

Flagrare avatar Nov 30 '25 16:11 Flagrare

@Flagrare I think this was fixed, try updating to latest, if you are on homebrew they aren't letting JS ecosystem things be updated for the time being so you can switch to our tap instead if you want:

sst/tap/opencode

Let me know if you are still getting this issue after upgrading, I can't replicate

rekram1-node avatar Dec 01 '25 05:12 rekram1-node