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.

Keep Flutter's DEBUG ribbon on debug builds

0xdiego250e1c5f3c40ad
diff --git a/desktop/lib/main.dart b/desktop/lib/main.dart
index a32d925e4..f238f3475 100644
--- a/desktop/lib/main.dart
+++ b/desktop/lib/main.dart
@@ -84,7 +84,15 @@ class DesktopApp extends StatelessWidget {
);
return MaterialApp(
title: 'Harness',
- debugShowCheckedModeBanner: false,
+ // Flutter's DEBUG ribbon stays on a debug build: it is how a locally built
+ // app is told apart from the installed release at a glance (owner,
+ // 2026-09-16). It never appears in a release build whatever this says.
+ // A preview capture that wants a clean corner passes
+ // `--dart-define=HARNESS_CLEAN_PREVIEW=true` instead of turning it off
+ // for everyone.
+ debugShowCheckedModeBanner: !const bool.fromEnvironment(
+ 'HARNESS_CLEAN_PREVIEW',
+ ),
// The design system's own `buildAppTheme` — see the note where a second,
// hand-written `ThemeData` used to shadow it, in `lib/theme/app_theme.dart`.
// Harness Desktop is dark-only: one theme, no `darkTheme`/`themeMode` to