Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

493 B
Raw Blame
import '../state/app_state.dart';

/// The Buddy chat shortcut: the active Swarm tab's current project's Buddy
/// chat ([SuperTabController.openCurrentBuddyChat]). False when the active tab
/// is no Swarm tab, or its Swarm is not open here.
Future<bool> openActiveBuddyChat(AppNotifier app) async {
  final id = app.activeSwarm.superTabId;
  if (id == null) return false;
  final controller = app.superTabs.peek(id);
  return controller != null && await controller.openCurrentBuddyChat();
}