From dabdf3d02e2edbf201e64099e4b962d174de8815 Mon Sep 17 00:00:00 2001 From: Jiang Bohan Date: Sat, 18 Apr 2026 13:53:28 +0800 Subject: [PATCH] fix(ui/agents): drop Codex-incompatible --model example from custom args tab MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The helper text and placeholder suggested `--model claude-sonnet-4-…` as a custom CLI argument, which is valid for Claude but crashes Codex agents (its `app-server` subcommand does not accept model flags). Swap in provider-agnostic copy so the UI no longer steers users into an invalid configuration for non-Claude runtimes. Refs #1308. --- packages/views/agents/components/tabs/custom-args-tab.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/views/agents/components/tabs/custom-args-tab.tsx b/packages/views/agents/components/tabs/custom-args-tab.tsx index 587d92300..631a2ba9a 100644 --- a/packages/views/agents/components/tabs/custom-args-tab.tsx +++ b/packages/views/agents/components/tabs/custom-args-tab.tsx @@ -77,8 +77,8 @@ export function CustomArgsTab({ Custom Arguments

- Additional CLI arguments appended to the agent command at launch - (e.g. --model claude-sonnet-4-20250514) + Additional CLI arguments appended to the agent command at launch. + Supported flags depend on the agent's CLI.