Skip to content

Shell commands can hang on Windows after process exit #29822

Closed as not planned
Closed as not planned

Description

@ahasasjeb

Description

On Windows, shell command execution can occasionally hang even after the command process has exited. When this happens, OpenCode keeps waiting and does not return the command result back to the model

Plugins

No response

OpenCode version

1.15.12

Steps to reproduce

Completely randomly, executing any command, whether simple or complex, may lead to the occurrence of this issue

Screenshot and/or share link

Image

Operating System

Windows 11

Terminal

Windows Terminal

Activity

  1. github-actions commented on May 29, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • The Operating System field is empty (_No response_) — this is particularly important for a Windows-specific bug report. Please specify your exact Windows version (e.g., Windows 11 24H2).
    • The Terminal field is also empty — please specify which terminal you are using (e.g., Windows Terminal, PowerShell, cmd).
    • Steps to reproduce is listed as "Completely random" — please try to provide any additional context that might help narrow down when this occurs (e.g., specific command types, shell configuration, project size).

    Please edit this issue to address the above within 2 hours, or it will be automatically closed.


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

    If you believe this was flagged incorrectly, please let a maintainer know.

  2. added
    needs:complianceThis means the issue will auto-close after 2 hours.
    and removed
    needs:complianceThis means the issue will auto-close after 2 hours.
    on May 29, 2026
  3. github-actions commented on May 29, 2026

    @github-actions
    Contributor

    Thanks for updating the issue! It now meets the contributing guidelines and has been marked as compliant.

  4. github-actions commented on Jul 29, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  5. gterminator commented on Sep 4, 2026

    @gterminator

    the pipe draining on powershell still exists.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions