Skip to content

Instantly share code, notes, and snippets.

@Chlorek
Last active July 15, 2026 11:02
Show Gist options
  • Select an option

  • Save Chlorek/6913ae71f57974a74a69efc9fe554c7d to your computer and use it in GitHub Desktop.

Select an option

Save Chlorek/6913ae71f57974a74a69efc9fe554c7d to your computer and use it in GitHub Desktop.
Fix GPT-5.6 Luna in OpenCode - Plugin
import type { Plugin } from "@opencode-ai/plugin"
export default (async () => ({
"chat.headers": async (input, output) => {
if (input.model.providerID !== "openai") return
output.headers.originator = "codex_cli_rs"
output.headers["User-Agent"] = "codex_cli_rs/0.0.0 (OpenCode)"
},
})) satisfies Plugin
@capyBearista

Copy link
Copy Markdown

This is the case without the plugin so probably an issue with OpenCode rather than this

@KennFatt

Copy link
Copy Markdown

This is the case without the plugin so probably an issue with OpenCode rather than this

it happens with Pi coding agent too, so i think OpenAI try to stricting their harness or something messed up..

@odytrice

odytrice commented Jul 13, 2026

Copy link
Copy Markdown

I think the thinking traces were removed to prevent model distillation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment