Skip to content

reproduction: @ai-sdk/harness-opencode: subagent host tools fail relay authorization - #19647

Closed
ai-sdk-factory[bot] wants to merge 1 commit into
mainfrom
bug-reproduction-19646-20260825234847930107
Closed

reproduction: @ai-sdk/harness-opencode: subagent host tools fail relay authorization#19647
ai-sdk-factory[bot] wants to merge 1 commit into
mainfrom
bug-reproduction-19646-20260825234847930107

Conversation

@ai-sdk-factory

Copy link
Copy Markdown
Contributor

Bug

@ai-sdk/harness-opencode: subagent host tools fail relay authorization

Reproduction

  • packages/harness-opencode/package.json contains version 1.0.88 with @opencode-ai/sdk 1.18.3, matching the reported setup.
  • packages/harness-opencode/src/bridge/index.ts rejects events whose session ID differs from the parent before host-tool authorization and permission handling.
  • packages/harness-opencode/src/bridge/subagent-tool-relay.reproduction.test.ts models a task-linked child, child permission request, child output and lifecycle events, and an unrelated session.
  • The task-linked child relay request returned HTTP 401 with unauthorized tool relay request; expected behavior is HTTP 200 and execution of the host tool.
  • examples/ai-functions/src/reproduction/issue-19646.ts provides the required replay entry point.

Relevant Documentation

Related Issues

Reproduces #19646

@ai-sdk-factory

ai-sdk-factory Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

resolved via #19645

@ai-sdk-factory ai-sdk-factory Bot closed this Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant