




















@@ -4,6 +4,7 @@ export const EXPECTED_CODEX_MODELS_COMMAND_TEXT = [
44"Available models, local cache:",
55"Available agent target:",
66"Available agent targets:",
7+"Available agent IDs in this session:",
78"opened an interactive trust prompt",
89"opened an interactive model-selection prompt",
910"running as Codex on `codex/",
@@ -98,7 +99,8 @@ export function isExpectedCodexModelsCommandText(text: string): boolean {
9899normalized.includes("interactive tui");
99100const mentionsVisibleOptions =
100101normalized.includes("visible options in this session:") ||
101-normalized.includes("visible options:");
102+normalized.includes("visible options:") ||
103+normalized.includes("available agent ids in this session:");
102104const mentionsCurrentActiveModel =
103105normalized.includes("current active model is `codex/") ||
104106normalized.includes("current active model is codex/");
@@ -110,6 +112,8 @@ export function isExpectedCodexModelsCommandText(text: string): boolean {
110112mentionsInteractiveSelection &&
111113mentionsVisibleOptions &&
112114mentionsCurrentActiveModel;
115+const isAgentIdModelSummary =
116+normalized.includes("available agent ids in this session:") && text.includes("`codex/");
113117const isInteractiveTuiSummary =
114118mentionsCodexModelsCommand &&
115119mentionsInteractiveSelection &&
@@ -120,6 +124,7 @@ export function isExpectedCodexModelsCommandText(text: string): boolean {
120124isSandboxFallback ||
121125isSessionConfigFallback ||
122126isInteractiveSelectionSummary ||
127+isAgentIdModelSummary ||
123128isInteractiveTuiSummary
124129);
125130}
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。