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/mod.rs | |
| parent | 120001b591e64d80a557d81e3b112460b9987fc6 (diff) | |
fix: remove idle screen patterns from agent detection
Diffstat (limited to 'src/detect/agents/mod.rs')
| -rw-r--r-- | src/detect/agents/mod.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/detect/agents/mod.rs b/src/detect/agents/mod.rs index 704350df..72aaf674 100644 --- a/src/detect/agents/mod.rs +++ b/src/detect/agents/mod.rs @@ -52,7 +52,7 @@ pub(super) fn detect(agent: Agent, screen_content: &str) -> AgentDetection { AgentDetection { state, skip_state_update: false, - visible_blocker: has_visible_blocker(agent, screen_content, state), + visible_blocker: has_visible_blocker(agent, screen_content), visible_working: has_visible_working(agent, screen_content, state), } } @@ -65,11 +65,7 @@ pub(super) fn should_skip_state_update(agent: Agent, content: &str) -> bool { } } -fn has_visible_blocker(agent: Agent, content: &str, state: AgentState) -> bool { - if state != AgentState::Blocked { - return false; - } - +fn has_visible_blocker(agent: Agent, content: &str) -> bool { match agent { // Strong visible blockers are opt-in because this flag can override // hook authority. Plain blocked heuristics remain valid fallback state, |
