From ccccda54c21f6ef1649a44bb098d7c498724404d Mon Sep 17 00:00:00 2001 From: akbash Date: Mon, 10 Aug 2026 14:57:44 +0300 Subject: fix: track opencode tui session selection (#2455) refs #2450 Co-authored-by: Ogulcan Celik --- src/integration/actions.rs | 46 +++++++++++++++++++++++++++++++++++++--------- 1 file changed, 37 insertions(+), 9 deletions(-) (limited to 'src/integration/actions.rs') diff --git a/src/integration/actions.rs b/src/integration/actions.rs index 3cb73774..00bf8c8f 100644 --- a/src/integration/actions.rs +++ b/src/integration/actions.rs @@ -144,10 +144,20 @@ fn install_target_inner(target: crate::api::schema::IntegrationTarget) -> io::Re } crate::api::schema::IntegrationTarget::Opencode => { let installed = install_opencode()?; - vec![format!( - "installed opencode integration plugin to {}", - installed.plugin_path.display() - )] + vec![ + format!( + "installed opencode integration plugin to {}", + installed.plugin_path.display() + ), + format!( + "installed opencode tui integration plugin to {}", + installed.tui_plugin_path.display() + ), + format!( + "ensured opencode tui plugin config at {}", + installed.tui_config_path.display() + ), + ] } crate::api::schema::IntegrationTarget::Kilo => { let installed = install_kilo()?; @@ -451,17 +461,35 @@ pub(crate) fn uninstall_target( } crate::api::schema::IntegrationTarget::Opencode => { let result = uninstall_opencode()?; - if result.removed_plugin { - vec![format!( + let mut messages = vec![if result.removed_plugin { + format!( "removed opencode integration plugin at {}", result.plugin_path.display() - )] + ) } else { - vec![format!( + format!( "no opencode integration plugin found at {}", result.plugin_path.display() - )] + ) + }]; + messages.push(if result.removed_tui_plugin { + format!( + "removed opencode tui integration plugin at {}", + result.tui_plugin_path.display() + ) + } else { + format!( + "no opencode tui integration plugin found at {}", + result.tui_plugin_path.display() + ) + }); + if result.updated_tui_config { + messages.push(format!( + "removed herdr opencode plugin entry from {}", + result.tui_config_path.display() + )); } + messages } crate::api::schema::IntegrationTarget::Kilo => { let result = uninstall_kilo()?; -- cgit v1.2.3