Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

fix: auto-open model-selector when model is not found (#448)

Abdelrhman Kamal Mahmoud Ali Slim655564f25d0d
diff --git a/codex-cli/src/components/chat/terminal-chat-response-item.tsx b/codex-cli/src/components/chat/terminal-chat-response-item.tsx
index dc4b16dd59..b1cc6edcb0 100644
--- a/codex-cli/src/components/chat/terminal-chat-response-item.tsx
+++ b/codex-cli/src/components/chat/terminal-chat-response-item.tsx
@@ -117,7 +117,7 @@ function TerminalChatResponseMessage({
const systemMessage = message.content.find(
(c) => c.type === "input_text",
)?.text;
- if (systemMessage?.includes("has been deprecated")) {
+ if (systemMessage?.includes("model_not_found")) {
setOverlayMode?.("model");
}
}