diff --git a/open-sse/executors/codex.ts b/open-sse/executors/codex.ts index 67793ffac0..ff9bd55489 100644 --- a/open-sse/executors/codex.ts +++ b/open-sse/executors/codex.ts @@ -1002,9 +1002,11 @@ export class CodexExecutor extends BaseExecutor { !body.instructions || (typeof body.instructions === "string" && body.instructions.trim() === "") ) { - body.instructions = hasTools - ? CODEX_DEFAULT_INSTRUCTIONS - : "You are a helpful AI assistant."; + if (hasTools) { + body.instructions = CODEX_DEFAULT_INSTRUCTIONS; + } else { + delete body.instructions; + } } }