An open-source, faster Devin alternative
TypeScript
fix(web): runtime switch blanked the model field; add a second codex model
Igor Zalutski50ae1164ff0a
diff --git a/web/src/lib/runtimes.ts b/web/src/lib/runtimes.tsindex 6fbf834c..3aac4407 100644--- a/web/src/lib/runtimes.ts+++ b/web/src/lib/runtimes.ts@@ -34,7 +34,12 @@ export const RUNTIMES: RuntimeOption[] = [provider: 'openai',keyLabel: 'OpenAI API key',keyPlaceholder: 'sk-…',- models: [{ value: 'openai/gpt-5-codex', label: 'GPT-5 Codex' }],+ // The API only validates the `openai/` prefix — any model OpenAI serves works.+ // Curated to the codex-optimized model + the general flagship; extend freely.+ models: [+ { value: 'openai/gpt-5-codex', label: 'GPT-5 Codex' },+ { value: 'openai/gpt-5', label: 'GPT-5' },+ ],},]diff --git a/web/src/pages/Agents.tsx b/web/src/pages/Agents.tsxindex 3b40c250..9f75e7a8 100644--- a/web/src/pages/Agents.tsx+++ b/web/src/pages/Agents.tsx@@ -304,6 +304,9 @@ export default function Agents() {description={`Models available on the ${rt.label} runtime.`}><Select+ // Remount on runtime change: Radix Select.Value blanks out when+ // its options and value change in the same render.+ key={runtime}id="agent-model"value={model}onValueChange={setModel}@@ -317,6 +320,7 @@ export default function Agents() {description={`The ${rt.provider} key this agent runs on (matches the runtime). Reuse one from Credentials, or add a new one here.`}><Select+ key={runtime}id="agent-cred"value={credChoice}onValueChange={setCredChoice}