aboutsummaryrefslogtreecommitdiff
path: root/src/detect/agents/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/detect/agents/mod.rs')
-rw-r--r--src/detect/agents/mod.rs8
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,