summaryrefslogtreecommitdiff
path: root/src/detect/agents/codex.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-06-09 04:24:12 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-06-09 04:26:19 +0300
commiteeacb45b4b6ab4446c5bea1331f743fee5e5b9f8 (patch)
tree063e99ff0a40ce7ef00002ac00130aeb3f30f6d7 /src/detect/agents/codex.rs
parent120001b591e64d80a557d81e3b112460b9987fc6 (diff)
fix: remove idle screen patterns from agent detection
Diffstat (limited to 'src/detect/agents/codex.rs')
-rw-r--r--src/detect/agents/codex.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/detect/agents/codex.rs b/src/detect/agents/codex.rs
index b77b7d25..93d2998c 100644
--- a/src/detect/agents/codex.rs
+++ b/src/detect/agents/codex.rs
@@ -14,13 +14,8 @@ pub(super) fn detect(content: &str) -> AgentState {
return AgentState::Working;
}
- // Idle
- if has_codex_current_prompt(content) {
- return AgentState::Idle;
- }
-
- // Weak blocked patterns are too broad to scan above a visible prompt. They
- // only apply when Codex does not currently show an idle prompt region.
+ // Weak blocked patterns are too broad to become visible blockers, but the
+ // legacy state detector still reports them as blocked for compatibility.
if has_codex_weak_blocked_prompt(&lower) {
return AgentState::Blocked;
}