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

Open
opened 2026-02-16 18:06:45 -05:00 by yindo · 1 comment
Owner

Originally created by @seventhrex19-arch on GitHub (Jan 23, 2026).

Originally assigned to: @adamdotdevin on GitHub.

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

Originally created by @seventhrex19-arch on GitHub (Jan 23, 2026). Originally assigned to: @adamdotdevin on GitHub. ### 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_
yindo added the windowsbugweb labels 2026-02-16 18:06:45 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 23, 2026):

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

  • #8676: fix: Plugin client returns 401 Unauthorized when OPENCODE_SERVER_PASSWORD is set (Desktop)
  • #9706: [BUG] Plugin client missing Authorization header when OPENCODE_SERVER_PASSWORD is set

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.

@github-actions[bot] commented on GitHub (Jan 23, 2026): This issue might be a duplicate of existing issues. Please check: - #8676: fix: Plugin client returns 401 Unauthorized when OPENCODE_SERVER_PASSWORD is set (Desktop) - #9706: [BUG] Plugin client missing Authorization header when OPENCODE_SERVER_PASSWORD is set 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7299