Skip to content

fix(cli): support GPT-5.6 Responses Lite for ChatGPT OAuth#12136

Closed
mcartmel wants to merge 7 commits into
Kilo-Org:mainfrom
mcartmel:fix/gpt-5-6-responses-lite
Closed

fix(cli): support GPT-5.6 Responses Lite for ChatGPT OAuth#12136
mcartmel wants to merge 7 commits into
Kilo-Org:mainfrom
mcartmel:fix/gpt-5-6-responses-lite

Conversation

@mcartmel

Copy link
Copy Markdown

Summary

Port OpenCode's Responses Lite support for GPT-5.6 Sol, Terra, and Luna to Kilo's OpenAI ChatGPT OAuth provider.

This adapts the request payload, session identity, HTTP headers, and WebSocket metadata required by the Responses Lite contract while preserving the existing Kilo model filtering and refresh behavior.

Testing

  • Luna plain text: passed
  • Luna tool call: passed
  • Luna multi-turn conversation: passed
  • Luna fresh conversation: passed
  • Luna with experimental WebSockets enabled: passed
  • Sol regression: passed
  • Terra regression: passed
  • GPT-5.4 regression: passed
  • Focused tests: 44 passed
  • CLI typecheck: passed
  • Shared-file annotation guard: passed
  • Windows x64 build and smoke tests: passed
  • Repository pre-push typechecks: passed

Tested on Windows x64 with OpenAI/ChatGPT OAuth using a local VS Code snapshot extension.

Comment thread packages/opencode/src/plugin/openai/codex.ts Outdated
Comment thread packages/opencode/src/plugin/openai/codex.ts
Comment thread packages/opencode/src/plugin/openai/ws-pool.ts
@kilo-code-bot

kilo-code-bot Bot commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (2 files)
  • packages/opencode/src/plugin/openai/codex.ts
  • packages/opencode/src/plugin/openai/ws-pool.ts
Previous Review Summary (commit 0ae044d)

Current summary above is authoritative. Previous snapshots are kept for context only.

Previous review (commit 0ae044d)

Status: 3 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 3
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
packages/opencode/src/plugin/openai/codex.ts 724 Synthetic helper session mappings are never released
packages/opencode/src/plugin/openai/codex.ts 742 Required tool-choice semantics are overwritten
packages/opencode/src/plugin/openai/ws-pool.ts 217 Removing a connecting pool entry can leak its socket

Fix these issues in Kilo Cloud

Files Reviewed (5 files)
  • .changeset/gpt-56-responses-lite.md - 0 issues
  • packages/opencode/src/plugin/openai/codex.ts - 2 issues
  • packages/opencode/src/plugin/openai/ws-pool.ts - 1 issue
  • packages/opencode/test/plugin/codex.test.ts - 0 issues
  • packages/opencode/test/plugin/openai-ws.test.ts - 0 issues

Reviewed by gpt-5.6-sol-20260709 · Input: 65.6K · Output: 11.5K · Cached: 533.4K

Review guidance: REVIEW.md from base branch main

@sublimode

sublimode commented Jul 12, 2026

Copy link
Copy Markdown

Works! But at least in some cases the stop button doesn't do anything, such as when a multi choice window is dismissed and the stream appears to hang. I then have to reload the window in order to send a new message which would otherwise remain stuck in the queue. I don't know if this is an upstream issue.

@johnnyeric johnnyeric requested a review from chrarnoldus July 13, 2026 10:07
@chrarnoldus chrarnoldus self-assigned this Jul 13, 2026
@chrarnoldus

chrarnoldus commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

related: anomalyco/opencode#36685

@lambertjosh

Copy link
Copy Markdown
Contributor

Closing - this works as OpenAI now supports standard responses API for Luna:
image

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.

5 participants