Skip to content

[BUG] Bash detach can truncate trailing output (StdoutPipe + Wait race) #696

Description

@edenreich

Summary

When a foreground bash command is detached to background (ctrl+b), the StdoutPipe + Wait handoff after detach can race and truncate the command's trailing output (#684). Minor robustness follow-up.

Steps to Reproduce

  1. Run a bash command that emits output right up to the moment it exits.
  2. Detach it to background mid-run (ctrl+b).
  3. Read the shell output via BashOutput / /tasks; trailing lines emitted near process exit can be missing.

Expected Behavior

All output up to process exit is captured and readable after a detach.

Actual Behavior

Trailing output can be truncated due to a StdoutPipe + Wait race in the detach handoff.

Notes

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleased

    Type

    Fields

    No fields configured for Bug.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions