Skip to content

[Windows] !commands don't respect $SHELL variable (and don't work at all anyway) #5456

Closed

Description

@JosXa

Description

On windows, typing !shell command always yields this error message for me, no matter the command I use:

Image

Looks like something about the shell wrapper goes wrong here.

Exporting $SHELL as wsl.exe, pwsh.exe, nushell.exe, or anything else has no effect.

OpenCode version

1.0.150

Steps to reproduce

  1. Be on Windows
  2. Type !dir Enter
  3. Observe the failure

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Windows Terminal

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Dec 12, 2025
  2. github-actions commented on Dec 12, 2025

    @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. self-assigned this
    on Dec 12, 2025
  4. removed
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Dec 12, 2025
  5. rekram1-node commented on Dec 12, 2025

    @rekram1-node
    Contributor

    yeah ill fix this stuff today

  6. JosXa commented on Dec 12, 2025

    @JosXa
    ContributorAuthor

    Gave this to copilot to investigate:

    Image

    This works:

    Image

    So it's just that absolute paths aren't parsed correctly.

  7. rekram1-node commented on Dec 12, 2025

    @rekram1-node
    Contributor

    yeah I see the issue fixing

  8. rekram1-node commented on Dec 12, 2025

    @rekram1-node
    Contributor

    fixed in next release

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 working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions