oc-codex-multi-auth icon indicating copy to clipboard operation
oc-codex-multi-auth copied to clipboard

[BUG] OpenCode V2 subagent calls fabricate sessionIDs when Responses tool strictness is omitted

Open stargazer966 opened this issue 1 month ago • 0 comments

Disclaimer

This is the first time ever I submit an issue on GitHub and the content below is generated by opencode. I do not have a coding background and I tried my best to understand the content below and the rules on this repo. Hope it can help and won't cause trouble.

Summary

On OpenCode V2.0.24 with oc-codex-multi-auth 6.28.0, tested GPT models consistently supplied fabricated sessionID values when starting fresh subagents. OpenCode rejected these calls with Subagent session not found. Native OpenAI delegation works with the plugin disabled. Local Qwen delegation also works. A small local patch that sets explicit function-tool strict: false in the V2 adapter restored successful subagent round-trips.

Reproduction

  1. Use OpenCode V2.0.24 with oc-codex-multi-auth 6.28.0 enabled and a working GPT model.
  2. Ask the parent agent to start a fresh Inspector subagent for a bounded read-only task.
  3. Observe that the model supplies a fabricated sessionID, although no previous subagent session should be continued.
  4. OpenCode returns: Subagent session not found:

Example task: Start a fresh Inspector subagent. Ask it to read one non-sensitive project file and report its status. Do not modify any files. Before patching, this occurred with tested GPT-5.5, GPT-5.6, GPT-6, and GPT-6.1 models.

Expected Behavior

A fresh subagent call omits sessionID. OpenCode creates the session, the subagent completes its task, and the parent receives its result.

Actual Behavior

The model supplies a nonexistent continuation ID, so delegation fails before the subagent runs. Comparison:

Provider path Result
Unpatched multi-auth 6.28.0 Fabricated sessionIDs; delegation fails
Native OpenAI, plugin disabled GPT-6 Luna completed a full Inspector round-trip
Local Qwen Delegation works
Locally patched multi-auth Fresh subagent calls completed

Environment

  • OpenCode: 2.0.24
  • oc-codex-multi-auth: 6.28.0
  • Installed @ai-sdk/openai: 3.0.124
  • OS: Linux Debian 13 in Proxmox LXC
  • Offline test environment: Node.js 22.23.1

Diagnostic Outputs

Plugin: installed package v6.28.0 Accounts: 2 eligible Rate-limit, quota, and cooldown blocks: none reported Requested/effective model: gpt-6.1-sol Fallback: no Last error category: none reported

Logs (Optional)

Compliance Confirmation

  • [X] I am using this plugin for personal development only, with an active ChatGPT Plus/Pro subscription.
  • [X] This report does not request policy bypasses or commercial-use workarounds.
  • [X] I reviewed the FAQ and Troubleshooting docs.
  • [X] I removed any secrets/tokens from this report.

stargazer966 avatar Oct 08 '26 21:10 stargazer966