Skip to content

fix(skillgen): forward OpenCode Go session headers - #545

Merged
harlan-zw merged 1 commit into
mainfrom
fix/skillgen-opencode-session-header
Oct 7, 2026
Merged

harlan-zw merged 1 commit into
mainfrom
fix/skillgen-opencode-session-header

Conversation

@harlan-zw

Copy link
Copy Markdown
Collaborator

🔗 Linked issue

Related to #529

❓ Type of change

  • 📖 Documentation
  • 🐞 Bug fix
  • 👌 Enhancement
  • ✨ New feature
  • 🧹 Chore
  • ⚠️ Breaking change

📚 Description

Since #529 deployed, every Skillgen job fails on its first model call. OpenCode Go answers 400 MissingSessionID, because the gateway rebuilds request headers from scratch and drops x-opencode-session. The gateway now forwards the four x-opencode-* routing headers when each value is a plain identifier, and still drops cookies and the sandbox placeholder key. None of these headers carries a credential.

🤖 AI disclosure: Harlan Agent Kit modified this description. My AI open-source policy.

The first Harness proof on GLM 5.3 failed on its first model call:
OpenCode Go answered 400 MissingSessionID, because the gateway rebuilt
headers from scratch and dropped x-opencode-session. The gateway now
forwards the four x-opencode routing headers when each value is a plain
identifier. None of them carries a credential.
@harlan-zw harlan-zw added the harlan-agent-review Pull request triage requires an adversarial Review. Adding this label manually always forces one. label Oct 7, 2026
@harlan-github-agent harlan-github-agent Bot added harlan-agent-review-required Pull request triage requires an adversarial Review for this head commit. and removed harlan-agent-review Pull request triage requires an adversarial Review. Adding this label manually always forces one. labels Oct 7, 2026
@harlan-zw
harlan-zw merged commit e95dc77 into main Oct 7, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

harlan-agent-review-required Pull request triage requires an adversarial Review for this head commit.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant