From 82468a0e03360219898ebf3735bdf559182009f8 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Wed, 10 Jun 2026 19:23:13 +0300 Subject: feat: add manifest-based detection engine --- src/pane/agent_detection.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/pane/agent_detection.rs') diff --git a/src/pane/agent_detection.rs b/src/pane/agent_detection.rs index e6afd368..d891c284 100644 --- a/src/pane/agent_detection.rs +++ b/src/pane/agent_detection.rs @@ -512,10 +512,21 @@ pub(super) fn decide_screen_detection_publish( } } +#[allow(dead_code)] // shim for tests; detection_update_for_publish_with_osc is the real path pub(super) fn detection_update_for_publish( agent: Option, content: &str, process_exited: bool, +) -> Option { + detection_update_for_publish_with_osc(agent, content, "", "", process_exited) +} + +pub(super) fn detection_update_for_publish_with_osc( + agent: Option, + content: &str, + osc_title: &str, + osc_progress: &str, + process_exited: bool, ) -> Option { if process_exited { return Some(crate::detect::AgentDetection { @@ -527,7 +538,7 @@ pub(super) fn detection_update_for_publish( }); } - let detection = crate::detect::detect_agent(agent, content); + let detection = crate::detect::detect_agent_with_osc(agent, content, osc_title, osc_progress); (!detection.skip_state_update).then_some(detection) } -- cgit v1.2.3