diff options
Diffstat (limited to 'src/pane/agent_detection.rs')
| -rw-r--r-- | src/pane/agent_detection.rs | 13 |
1 files changed, 12 insertions, 1 deletions
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,11 +512,22 @@ 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<Agent>, content: &str, process_exited: bool, ) -> Option<crate::detect::AgentDetection> { + detection_update_for_publish_with_osc(agent, content, "", "", process_exited) +} + +pub(super) fn detection_update_for_publish_with_osc( + agent: Option<Agent>, + content: &str, + osc_title: &str, + osc_progress: &str, + process_exited: bool, +) -> Option<crate::detect::AgentDetection> { if process_exited { return Some(crate::detect::AgentDetection { state: AgentState::Idle, @@ -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) } |
