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.

Open maximized from the side that sizes the window

dee4a382d5103c6
diff --git a/desktop/lib/core/desktop_window.dart b/desktop/lib/core/desktop_window.dart
index cbbf6b261..a085c5aa3 100644
--- a/desktop/lib/core/desktop_window.dart
+++ b/desktop/lib/core/desktop_window.dart
@@ -29,6 +29,10 @@ Future<void> configureDesktopWindow({
await const MethodChannel('harness/swarm_tabs')
.invokeMethod('configure', {'palette': palette.nativeColors});
}
+ // Always open filling the screen (owner, 2026-09-15): the tabs, a viewer
+ // beside its terminal and the rail all want the width. The options above
+ // stay the frame the green button returns to.
+ await windowManager.maximize();
await windowManager.show();
await windowManager.focus();
}
diff --git a/desktop/macos/Runner/MainFlutterWindow.swift b/desktop/macos/Runner/MainFlutterWindow.swift
index c883e925e..da4e5c964 100644
--- a/desktop/macos/Runner/MainFlutterWindow.swift
+++ b/desktop/macos/Runner/MainFlutterWindow.swift
@@ -24,14 +24,6 @@ class MainFlutterWindow: NSWindow {
let windowFrame = self.frame
self.contentViewController = flutterViewController
self.setFrame(windowFrame, display: true)
- // Always open filling the screen (owner, 2026-09-15): the tabs, the
- // viewer beside its terminal and the rail all want the width, and a
- // window that remembers a smaller frame is a window someone shrinks
- // again every morning. The visible frame, so the menu bar and Dock keep
- // their space; zoom and full screen stay the user's from there.
- if let screen = self.screen ?? NSScreen.main {
- self.setFrame(screen.visibleFrame, display: true)
- }
RegisterGeneratedPlugins(registry: flutterViewController)