diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-09 04:24:12 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-06-09 04:26:19 +0300 |
| commit | eeacb45b4b6ab4446c5bea1331f743fee5e5b9f8 (patch) | |
| tree | 063e99ff0a40ce7ef00002ac00130aeb3f30f6d7 /src/detect/agents/qodercli.rs | |
| parent | 120001b591e64d80a557d81e3b112460b9987fc6 (diff) | |
fix: remove idle screen patterns from agent detection
Diffstat (limited to 'src/detect/agents/qodercli.rs')
| -rw-r--r-- | src/detect/agents/qodercli.rs | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/detect/agents/qodercli.rs b/src/detect/agents/qodercli.rs index 0a4372df..d2802464 100644 --- a/src/detect/agents/qodercli.rs +++ b/src/detect/agents/qodercli.rs @@ -7,14 +7,6 @@ use super::super::AgentState; pub(super) fn detect(content: &str) -> AgentState { let lower = content.to_lowercase(); - // Idle short-circuit: double-press confirmation hints render *over* the - // input prompt while the user briefly holds Ctrl+C / Esc. The pane is - // effectively idle there — without this, a stale spinner row above could - // still flip it to Working. - if has_qodercli_idle_override(&lower) { - return AgentState::Idle; - } - if has_visible_blocker(content) { return AgentState::Blocked; } @@ -27,17 +19,6 @@ pub(super) fn detect(content: &str) -> AgentState { AgentState::Idle } -/// Idle override hints. Mirrors the `⌕ Search…` / `ctrl+r to toggle` shortcut -/// in Claude detection: when these UI bits are visible the pane is sitting at -/// a static prompt and should not be classified as Working or Blocked. -/// -/// Covers qodercli's "press again" exit/rewind banners. -fn has_qodercli_idle_override(lower_content: &str) -> bool { - lower_content.contains("press ctrl+c again to exit") - || lower_content.contains("press ctrl+d again to exit") - || lower_content.contains("press esc again to rewind") -} - /// Working hints qodercli prints alongside the spinner while the model is /// responding. The "(esc to cancel, …)" suffix is unique to qodercli's loading /// indicator and survives even when the spinner glyph is masked (e.g. by |
