





















@@ -16,12 +16,14 @@ export const EXPECTED_CODEX_MODELS_COMMAND_TEXT = [
1616"`codex models` could not be run in this sandbox.",
1717"`codex models` is not runnable in this sandboxed session.",
1818"`codex` is not installed on the shell PATH in this environment.",
19+"`codex` is not installed in the shell environment",
1920"`codex models` didn’t return a plain list in this environment",
2021"I couldn’t get a direct `codex models` CLI listing because the local sandbox blocked that command.",
2122"I couldn’t list all installed/available Codex models from the local CLI because the sandboxed `codex` command failed to start in this environment.",
2223"I couldn’t get `codex models` from the CLI because the sandbox blocks the namespace setup it needs",
2324"I can only see the current session model from this environment",
2425"Available in this session:",
26+"Available here:",
2527"Available models in this session:",
2628"Available models in this environment:",
2729"Available models in this Codex environment:",
@@ -35,6 +37,7 @@ export const EXPECTED_CODEX_MODELS_COMMAND_TEXT = [
3537"Current session model: `codex/",
3638"Current session model is `codex/",
3739"The current session is using `codex/",
40+"current session is using `codex/",
3841"Configured model from `~/.codex/config.toml`:",
3942"Configured models in this session:",
4043"Default model:",
@@ -72,6 +75,8 @@ export function isExpectedCodexModelsCommandText(text: string): boolean {
7275(normalized.includes("codex cli") || normalized.includes("`codex`"))) ||
7376normalized.includes("not installed on the shell path") ||
7477normalized.includes("sandboxed session") ||
78+normalized.includes("command not found") ||
79+normalized.includes("not installed") ||
7580normalized.includes("required user namespace") ||
7681normalized.includes("user-namespace restriction") ||
7782normalized.includes("bwrap: no permissions to create a new namespace"));
@@ -104,6 +109,7 @@ export function isExpectedCodexModelsCommandText(text: string): boolean {
104109const mentionsVisibleOptions =
105110normalized.includes("visible options in this session:") ||
106111normalized.includes("visible options:") ||
112+normalized.includes("available here:") ||
107113normalized.includes("available agent ids in this session:");
108114const mentionsCurrentActiveModel =
109115normalized.includes("current active model is `codex/") ||
@@ -118,6 +124,10 @@ export function isExpectedCodexModelsCommandText(text: string): boolean {
118124mentionsCurrentActiveModel;
119125const isAgentIdModelSummary =
120126normalized.includes("available agent ids in this session:") && text.includes("`codex/");
127+const isAvailableHereModelSummary =
128+normalized.includes("available here:") &&
129+normalized.includes("current session model") &&
130+text.includes("`codex/");
121131const isInteractiveTuiSummary =
122132mentionsCodexModelsCommand &&
123133mentionsInteractiveSelection &&
@@ -129,6 +139,7 @@ export function isExpectedCodexModelsCommandText(text: string): boolean {
129139isSessionConfigFallback ||
130140isInteractiveSelectionSummary ||
131141isAgentIdModelSummary ||
142+isAvailableHereModelSummary ||
132143isInteractiveTuiSummary
133144);
134145}
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。