Skip to content

Commit 74fc45c

Browse files
IM.codesclaude
andcommitted
fix: codex idle detection missing "› Use /skills" and status bar patterns
Codex idle prompt shows "› Use /skills to list available skills" and a status bar like "gpt-5.4 medium · 59% left", but CODEX_IDLE_PATTERNS only matched bare ">" or "›" on a line by itself. This caused P2P hops to stall waiting for codex to become idle when it already was. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent bee2302 commit 74fc45c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/agent/detect.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ const CC_PERMISSION_PATTERNS = [
5353
const CODEX_IDLE_PATTERNS = [
5454
/^\s*>\s*$/m, // line that is ONLY ">" — Codex prompt
5555
/^\s*\s*$/m, // line that is ONLY "›" — alternate prompt
56+
/^\s*\s+Use\s+\/skills/m, // "› Use /skills to list..." — idle prompt with hint
57+
/gpt-[\d.]+ \w+ · \d+% left/, // "gpt-5.4 medium · 59% left" — status bar when idle
5658
];
5759

5860
const CODEX_SPINNER_CHARS = ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧'];

0 commit comments

Comments
 (0)