Last active
July 15, 2026 11:02
-
-
Save Chlorek/6913ae71f57974a74a69efc9fe554c7d to your computer and use it in GitHub Desktop.
Fix GPT-5.6 Luna in OpenCode - Plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This is the case without the plugin so probably an issue with OpenCode rather than this
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..
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

Worked for me, thank you!