Skip to content

[BUG]bash tool fails on Windows due to unsupported export command in environment variable setup #16434

Closed

Description

@163ma5908

Description

When using the bash tool on Windows to execute commands (e.g., git status), the tool automatically prepends export statements to set environment variables. However, Windows shells do not support the export command, causing all commands to fail.

Plugins

No response

OpenCode version

1.2.20

Steps to reproduce

  1. Open a project on Windows system
  2. Execute any bash command, for example:
    {
      "command": "git status",
      "description": "Check git status"
    }
  3. The tool actually executes:
    export CI=true DEBIAN_FRONTEND=noninteractive GIT_TERMINAL_PROMPT=0 ... && git status
  4. Error occurs: 'export' is not recognized as an internal or external command

Screenshot and/or share link

Image

Operating System

windows11

Terminal

Windows terminal

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 7, 2026
  2. github-actions commented on Mar 7, 2026

    @github-actions
    Contributor

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

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 workingcoreAnything pertaining to core functionality of the application (opencode server stuff)windows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions