fix(cli): retry codex steer tunnel aborts

This commit is contained in:
unidesk-code-queue-runner
2026-05-23 06:28:13 +00:00
parent d0c762da06
commit 6c02cb1655
7 changed files with 196 additions and 23 deletions
+2 -1
View File
@@ -67,6 +67,7 @@ function displayCommandName(parts: string[]): string {
}
if (parts[0] === "codex" && parts[1] === "steer" && parts[2] !== undefined) {
const shown = ["codex", "steer", parts[2]];
const shownValueOptions = new Set(["--prompt-file", "--file", "--retry-attempts", "--retry-delay-ms"]);
const hasPromptFile = parts.includes("--prompt-file") || parts.includes("--file");
const hasPromptStdin = parts.includes("--prompt-stdin") || parts.includes("--stdin");
const hasHelp = parts.slice(3).some(isHelpToken);
@@ -75,7 +76,7 @@ function displayCommandName(parts: string[]): string {
const part = parts[index] ?? "";
if (!part.startsWith("--")) continue;
shown.push(part);
if (part === "--prompt-file" || part === "--file") {
if (shownValueOptions.has(part)) {
shown.push(parts[index + 1] ?? "<missing>");
index += 1;
}