Skip to content

bug: theme selector crashes when filtering produces no results #8873

Closed

Description

@renormalize

Description

The theme selector dialog crashes with a TypeError when typing characters during theme search that produce no matching results.

[17:02:02] [ERROR] Error: undefined is not an object (evaluating 'opt.value')
    TypeError: undefined is not an object (evaluating 'opt.value')
        at onMove (src/cli/cmd/tui/component/dialog-theme-list.tsx:26:17)
        at moveTo (src/cli/cmd/tui/ui/dialog-select.tsx:83:11)
        at <anonymous> (src/cli/cmd/tui/ui/dialog-select.tsx:65:9)

This is because the .value property is accessed on an undefined.

Plugins

N/A

OpenCode version

1.1.23

Steps to reproduce

  1. Open the theme selector in opencode.
  2. Start typing a theme name which is not listed, I typed sonokai.
  3. When typing the letter n for sonokai, the application errors, and prints out error logs in the console.

Screenshot and/or share link

Image

Operating System

macOS 26.2

Terminal

Ghostty 1.2.3

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Jan 16, 2026
  2. github-actions commented on Jan 16, 2026

    @github-actions
    Contributor

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

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

  3. renormalize commented on Feb 3, 2026

    @renormalize
    Author

    #10488 reports the same issue and has been closed now with a fix pushed into dev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions