Skip to content

mode indication #3

Open
Open

Description

@oribarilan

currently mode indication is the cursor (block vs bar) which is nice but not ideal.
we add a toast on mode changes which is a bit too noisy (configurable, can be turned off)
ideally we would have a subtle mode indicator inside the prompt input box

Activity

  1. added a commit that references this issue on Jun 8, 2026
    8eabc6e
  2. added 2 commits that reference this issue on Jun 8, 2026
    caf3613
    4a1dd3d
  3. oribarilan commented on Sep 8, 2026

    @oribarilan
    OwnerAuthor

    Retested on 2026-09-08.

    Environment

    • OpenCode 1.18.21
    • TUI plugin installed from an npm-source tarball through OpenCode's package cache
    • Plain index.ts entry with a dynamic import of view.tsx

    Result

    The plain entry and TUI hook load, but importing a .tsx file containing /** @jsxImportSource @opentui/solid */ fails:

    Cannot find module '@opentui/solid/jsx-dev-runtime'
    

    The failing file is inside the cached plugin's node_modules.

    Cause

    OpenTUI's Solid transform excludes files under node_modules. The runtime prescan sees the source before JSX adds the jsx-dev-runtime import, so it has nothing to rewrite. Bun then generates the import and resolves it natively, which fails.

    Release check

    OpenCode 1.18.25 has identical relevant runtime code to 1.18.21, and both pin OpenTUI 0.4.5. OpenTUI 0.5.9 still excludes node_modules from the Solid transform.

    Local path testing with "plugin": ["."] does not reproduce this. An npm-source tarball such as name@file:/absolute/package.tgz or the real git+https://...#ref form is required.

    Status: keep toast/cursor feedback. A persistent slot indicator remains blocked upstream.

  4. cprn commented on Sep 12, 2026

    @cprn

    Honestly, cursor is absolutely enough, if you're worried people wouldn't know what mode they're in, and are looking for feedback... I got used to it very quick, I'm pretty sure the majority of other Vim users feel the same.

  5. oribarilan commented on Sep 12, 2026

    @oribarilan
    OwnerAuthor

    thanks for the feedback :) i'm still giving it a try from time to time. OpenCode has some issue with UI elements in plugins (possibly only for those distributed through git directly, not sure). In anycase, if and when i'll be able to solve it, there will be a config to turn visuals off.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions