Skip to content

bash tool can return before output capture completes #36795

Description

@MaartenBaert

Description

The bash tool consumes process output in a scoped background fiber, but returns after handle.exitCode without joining that fiber. Closing the scope can interrupt output capture before buffered stdout or stderr is added to the result, causing a successful command to intermittently report (no output).

Plugins

none

OpenCode version

1.17.18

Steps to reproduce

This is a rare race condition, I do not have a procedure to reproduce it reliably.

Screenshot and/or share link

Image

Operating System

Red Hat Enterprise Linux 8.10

Terminal

Xfce Terminal

Activity

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