From 67acac108203df160b1673022d3f71c9a83c4841 Mon Sep 17 00:00:00 2001 From: cyhhao Date: Mon, 12 Jan 2026 22:31:43 +0800 Subject: [PATCH] fix: adjust OpenCode OpenAI example store placement --- frontend/src/components/keys/UseKeyModal.vue | 23 ++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/keys/UseKeyModal.vue b/frontend/src/components/keys/UseKeyModal.vue index 58f42ae6..669ac446 100644 --- a/frontend/src/components/keys/UseKeyModal.vue +++ b/frontend/src/components/keys/UseKeyModal.vue @@ -525,14 +525,16 @@ function generateOpenCodeConfig(platform: string, baseUrl: string, apiKey: strin [platform]: { options: { baseURL: baseUrl, - apiKey, - ...(platform === 'openai' ? { store: false } : {}) + apiKey } } } const openaiModels = { 'gpt-5.2-codex': { name: 'GPT-5.2 Codex', + options: { + store: false + }, variants: { low: {}, medium: {}, @@ -574,9 +576,26 @@ function generateOpenCodeConfig(platform: string, baseUrl: string, apiKey: strin provider[platform].models = openaiModels } + const agent = + platform === 'openai' + ? { + build: { + options: { + store: false + } + }, + plan: { + options: { + store: false + } + } + } + : undefined + const content = JSON.stringify( { provider, + ...(agent ? { agent } : {}), $schema: 'https://opencode.ai/config.json' }, null,