Skip to content

bug: agent-browser hangs on simple commands in PowerShell 7.6 #25938

Closed as not planned

Description

@playeriv65
Image

Description

When using OpenCode in PowerShell 7.6, agent-browser commands (e.g. agent-browser open https://example.com) frequently hang indefinitely on simple operations that should complete in seconds.

What works:

  • Windows Terminal (WSL) + OpenCode + agent-browser → no issues
  • PowerShell 7.6 + Claude Code + agent-browser → no issues

What hangs:

  • PowerShell 7.6 + OpenCode + agent-browser → hangs on simple commands

The issue is specific to the PowerShell + OpenCode combination. Same commands work fine when switching to WSL or using a different AI agent in the same PowerShell session.

Steps to reproduce

  1. Open PowerShell 7.6 on Windows
  2. Launch OpenCode
  3. Ask OpenCode to use agent-browser to visit any website (e.g. agent-browser open https://example.com)
  4. Command hangs indefinitely, never completes

Screenshot

issue

Environment

  • OpenCode version: 1.14.39
  • OS: Windows 11
  • Terminal: PowerShell 7.6
  • agent-browser version: 0.26.0

Activity

  1. github-actions commented on May 5, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • The screenshot link appears to be a placeholder (https://github.com/user-attachments/assets/example) rather than a real attached image. Please attach an actual screenshot or remove the screenshot section if one isn't available.

    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 5, 2026
  3. github-actions commented on May 5, 2026

    @github-actions
    Contributor

    Thanks for updating the issue! It now meets our contributing guidelines — the bug report includes a clear description, steps to reproduce, and environment details. We appreciate you taking the time to fix it up.

  4. h-kls commented on May 11, 2026

    @h-kls

    Based on my observations, when agent-browser is executed for the first time (for example, agent-browser open http://example.com), it spawns a background daemon process and the main CLI process exits successfully.

    However, OpenCode still keeps waiting for the command to finish. My guess is that the background daemon process may still be holding inherited stdio/pipe handles from the parent process.

    If the daemon is already running, agent-browser commands work normally in OpenCode.

  5. JustSidus commented on Jun 12, 2026

    @JustSidus

    PR #29831 fixes this by completing spawn on 'exit' event instead of only 'close'. This solves the hang when agent-browser spawns a daemon that keeps stdio pipes open. Multiple users have confirmed it works on Windows with PowerShell.

  6. github-actions commented on Aug 12, 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.

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