feat/tabs #47

Merged
naomi merged 10 commits from feat/tabs into main 2026-01-20 13:57:49 -08:00
Showing only changes of commit 2c1d63ef10 - Show all commits
+3
View File
@@ -97,11 +97,13 @@ impl BridgeManager {
.ok_or_else(|| "No Claude instance found for this conversation".to_string())
}
#[allow(dead_code)]
pub fn cleanup_stopped_bridges(&mut self) {
// Remove bridges that are no longer running
self.bridges.retain(|_, bridge| bridge.is_running());
}
#[allow(dead_code)]
pub fn stop_all(&mut self) {
if let Some(app) = &self.app_handle {
for (_, bridge) in self.bridges.iter_mut() {
@@ -111,6 +113,7 @@ impl BridgeManager {
self.bridges.clear();
}
#[allow(dead_code)]
pub fn get_active_conversations(&self) -> Vec<String> {
self.bridges.keys()
.filter(|id| self.bridges.get(*id).map(|b| b.is_running()).unwrap_or(false))