Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion codex-cli/src/utils/agent/agent-loop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -636,9 +636,16 @@ export class AgentLoop {
}>
)?.requestId;

const errorDetails = [
`Status: ${status || "unknown"}`,
`Code: ${errCtx.code || "unknown"}`,
`Type: ${errCtx.type || "unknown"}`,
`Message: ${errCtx.message || "unknown"}`,
].join(", ");

return `⚠️ OpenAI rejected the request${
reqId ? ` (request ID: ${reqId})` : ""
}. Please verify your settings and try again.`;
}. Error details: ${errorDetails}. Please verify your settings and try again.`;
})(),
},
],
Expand Down