refactor: tighten codex toolset parity without freeform (#1014)

This commit is contained in:
Charles Packer
2026-02-18 12:55:09 -08:00
committed by GitHub
parent a1637b313a
commit 4e1827ebc1
17 changed files with 336 additions and 136 deletions

View File

@@ -96,7 +96,13 @@ const DynamicPreview: React.FC<DynamicPreviewProps> = ({
const cmd =
typeof cmdVal === "string" ? cmdVal : toolArgs || "(no arguments)";
const descVal = parsedArgs?.description;
const desc = typeof descVal === "string" ? descVal : "";
const justificationVal = parsedArgs?.justification;
const desc =
typeof descVal === "string"
? descVal
: typeof justificationVal === "string"
? justificationVal
: "";
return (
<Box flexDirection="column" paddingLeft={2}>

View File

@@ -109,7 +109,11 @@ function getBashInfo(approval: ApprovalRequest): BashInfo | null {
command =
typeof args.command === "string" ? args.command : "(no command)";
description =
typeof args.description === "string" ? args.description : "";
typeof args.description === "string"
? args.description
: typeof args.justification === "string"
? args.justification
: "";
}
return {

View File

@@ -48,13 +48,15 @@ const toolsets: ToolsetOption[] = [
label: "Codex Tools",
description: "Toolset optimized for GPT/Codex models",
tools: [
"AskUserQuestion",
"EnterPlanMode",
"ExitPlanMode",
"Task",
"Skill",
"ShellCommand",
"Shell",
"ReadFile",
"ListDir",
"GrepFiles",
"ApplyPatch",
"UpdatePlan",
"ViewImage",
],
isFeatured: true,
},
@@ -62,15 +64,7 @@ const toolsets: ToolsetOption[] = [
id: "codex_snake",
label: "Codex Tools (snake_case)",
description: "Toolset optimized for GPT/Codex models (snake_case)",
tools: [
"shell_command",
"shell",
"read_file",
"list_dir",
"grep_files",
"apply_patch",
"update_plan",
],
tools: ["shell_command", "apply_patch", "update_plan", "view_image"],
},
{
id: "gemini",