{"slug": "fix-gpt-5-6-luna-in-opencode-plugin", "title": "Fix GPT-5.6 Luna in OpenCode - Plugin", "summary": "A developer created a plugin for OpenCode that modifies chat headers to fix compatibility with GPT-5.6 Luna. The plugin sets the originator to 'codex_cli_rs' and the User-Agent to 'codex_cli_rs/0.0.0 (OpenCode)' when the model provider is OpenAI.", "body_md": "| import type { Plugin } from \"@opencode-ai/plugin\" | |\n| export default (async () => ({ | |\n| \"chat.headers\": async (input, output) => { | |\n| if (input.model.providerID !== \"openai\") return | |\n| output.headers.originator = \"codex_cli_rs\" | |\n| output.headers[\"User-Agent\"] = \"codex_cli_rs/0.0.0 (OpenCode)\" | |\n| }, | |\n| })) satisfies Plugin |", "url": "https://wpnews.pro/news/fix-gpt-5-6-luna-in-opencode-plugin", "canonical_source": "https://gist.github.com/Chlorek/6913ae71f57974a74a69efc9fe554c7d", "published_at": "2026-07-10 19:51:32+00:00", "updated_at": "2026-07-11 08:09:54.602336+00:00", "lang": "en", "topics": ["developer-tools", "large-language-models"], "entities": ["OpenCode", "GPT-5.6 Luna", "OpenAI"], "alternates": {"html": "https://wpnews.pro/news/fix-gpt-5-6-luna-in-opencode-plugin", "markdown": "https://wpnews.pro/news/fix-gpt-5-6-luna-in-opencode-plugin.md", "text": "https://wpnews.pro/news/fix-gpt-5-6-luna-in-opencode-plugin.txt", "jsonld": "https://wpnews.pro/news/fix-gpt-5-6-luna-in-opencode-plugin.jsonld"}}