Skip to content

fix(opencode): support Luna Responses Lite over OAuth#36685

Merged
rekram1-node merged 2 commits into
devfrom
fix-luna
Jul 13, 2026
Merged

fix(opencode): support Luna Responses Lite over OAuth#36685
rekram1-node merged 2 commits into
devfrom
fix-luna

Conversation

@rekram1-node

@rekram1-node rekram1-node commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

Closes #36140

  • apply the Responses Lite request contract only to gpt-5.6-luna
  • limit the transformation to Codex OAuth requests, leaving OpenAI API-key requests unchanged
  • reuse the required existing session identity for headers and prompt caching
  • include the Responses Lite marker in WebSocket request metadata

Approach

This is based in part on #36143 by @AidenGeunGeun, who is credited as a co-author. That PR adapts Sol, Terra, and Luna and generates a provider session ID with Bun.randomUUIDv7(). This version intentionally avoids Bun-specific APIs and does not replace an existing required session ID. It also enables Responses Lite for only Luna, the minimum model scope needed to fix the linked issue, so Sol, Terra, non-Lite models, and API-key requests retain their current behavior.

Testing

  • bun test test/plugin/codex.test.ts test/plugin/openai-ws.test.ts
  • bun typecheck

rekram1-node and others added 2 commits July 12, 2026 12:25
Co-authored-by: AidenGeunGeun <eastlandwyvern@gmail.com>
@rekram1-node rekram1-node changed the title wip fix(opencode): support Luna Responses Lite over OAuth Jul 13, 2026
@rekram1-node rekram1-node merged commit 67aa9ce into dev Jul 13, 2026
13 checks passed
@rekram1-node rekram1-node deleted the fix-luna branch July 13, 2026 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GPT-5.6 Luna returns model not found with ChatGPT OAuth

1 participant