Skip to content

[Bug] Desktop: Background exploration agent fails with "Unauthorized" error #10182

Closed

Description

@seventhrex19-arch

Description

In the desktop environment, the Background Exploration Agent fails to start. The environment returns an Unauthorized error, preventing background tasks from executing. Currently, only direct code-reading tools are functional as a workaround.

Plugins

No response

OpenCode version

1.1.33

Steps to reproduce

Launch the desktop application.

Attempt to initiate the Background Exploration Agent.

Observe the authentication failure/error message.

Screenshot and/or share link

No response

Operating System

windows 11

Terminal

No response

Activity

  1. github-actions commented on Jan 23, 2026

    @github-actions
    Contributor

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

    Both describe the same root cause - when OPENCODE_SERVER_PASSWORD is set (which happens automatically in the OpenCode Desktop app), plugins and background task agents fail with 401 Unauthorized because they lack the necessary Basic Auth credentials.

    The Background Exploration Agent that fails in your case is likely a subagent/plugin that uses the client API, and appears to be affected by this same issue.

    Feel free to ignore if your specific case differs from these reports.

  2. github-actions commented on Mar 26, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 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

bugSomething isn't workingwebRelates to opencode on web / desktopwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions