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.

refactor: remove harness-v2 distinction and revert binary name to harness

0xken159e2e4beda19a
diff --git a/desktop/lib/core/build_identity.dart b/desktop/lib/core/build_identity.dart
index 846b4aecb..724da5c8c 100644
--- a/desktop/lib/core/build_identity.dart
+++ b/desktop/lib/core/build_identity.dart
@@ -1,3 +1,4 @@
-/// This checkout builds the separate V2 review app. CLI identity stays shared.
-const isHarnessV2 = true;
+/// V2 is an internal distinction only: the app ships as Harness, under the
+/// release bundle identifier, with updates enabled. CLI identity stays shared.
+const isHarnessV2 = false;
const desktopAppName = 'Harness';
diff --git a/desktop/test/about_section_test.dart b/desktop/test/about_section_test.dart
index fde1ea90f..25b0ad0f5 100644
--- a/desktop/test/about_section_test.dart
+++ b/desktop/test/about_section_test.dart
@@ -29,15 +29,12 @@ void main() {
buildSignature: '',
);
- Future<AppNotifier> pumpAbout(
- WidgetTester tester, {
- bool updatesEnabled = true,
- }) async {
+ Future<AppNotifier> pumpAbout(WidgetTester tester) async {
final notifier = AppNotifier(
config: AppConfig.dev,
authSession: AuthSession(),
configStore: null,
- desktopUpdater: updatesEnabled ? DesktopUpdater(enabled: true) : null,
+ desktopUpdater: DesktopUpdater(enabled: true),
);
addTearDown(notifier.dispose);
tester.view.physicalSize = const Size(900 * 2, 700 * 2);
@@ -68,26 +65,6 @@ void main() {
size: 48600000,
);
- testWidgets('the preview identifies itself and explains disabled updates', (
- tester,
- ) async {
- final notifier = await pumpAbout(tester, updatesEnabled: false);
- expect(find.text('Harness'), findsOneWidget);
- expect(find.text('Preview · updates disabled'), findsOneWidget);
- expect(
- find.text(
- 'Automatic and manual updates are disabled for this V2 preview.',
- ),
- findsOneWidget,
- );
- expect(
- find.byKey(const Key('settings-check-updates-button')),
- findsNothing,
- );
- notifier.availableUpdate = update;
- expect(await notifier.installAvailableUpdate(), isFalse);
- });
-
testWidgets('names the app, its version, and says nothing is waiting', (
tester,
) async {
diff --git a/desktop/test/desktop_updater_test.dart b/desktop/test/desktop_updater_test.dart
index 4d3da20a3..4e23e7f67 100644
--- a/desktop/test/desktop_updater_test.dart
+++ b/desktop/test/desktop_updater_test.dart
@@ -173,31 +173,28 @@ void main() {
expect(await explicitlyOff.checkOnce(currentVersion: '1.0.0'), isNull);
});
- test(
- 'V2 disables checks, downloads and applying even in release mode',
- () async {
- final updater = DesktopUpdater(releaseMode: true);
- const info = UpdateInfo(
- version: '9.9.9',
- url: 'https://fixture.invalid/update.zip',
- sha256: 'unused',
- size: 1,
- );
- expect(await updater.checkOnce(currentVersion: '1.0.0'), isNull);
- expect(await updater.downloadAndStage(info), isNull);
- expect(
- await updater.applyStaged(
- const StagedUpdate(
- version: '9.9.9',
- bundlePath: '/nonexistent/fixture.app',
- stagingDirPath: '/nonexistent',
- ),
- selfPid: 1,
+ test('a disabled updater skips checks, downloads and applying even in release mode', () async {
+ final updater = DesktopUpdater(enabled: false, releaseMode: true);
+ const info = UpdateInfo(
+ version: '9.9.9',
+ url: 'https://fixture.invalid/update.zip',
+ sha256: 'unused',
+ size: 1,
+ );
+ expect(await updater.checkOnce(currentVersion: '1.0.0'), isNull);
+ expect(await updater.downloadAndStage(info), isNull);
+ expect(
+ await updater.applyStaged(
+ const StagedUpdate(
+ version: '9.9.9',
+ bundlePath: '/nonexistent/fixture.app',
+ stagingDirPath: '/nonexistent',
),
- isFalse,
- );
- },
- );
+ selfPid: 1,
+ ),
+ isFalse,
+ );
+ });
test('checkOnce returns null when the running version is already current or newer', () async {
final url = await serveMetadataAndZip(manifestVersion: '1.0.0');
diff --git a/desktop/windows/CMakeLists.txt b/desktop/windows/CMakeLists.txt
index 7a506b6df..8847d3436 100644
--- a/desktop/windows/CMakeLists.txt
+++ b/desktop/windows/CMakeLists.txt
@@ -4,7 +4,7 @@ project(harness LANGUAGES CXX)
# The name of the executable created for the application. Change this to change
# the on-disk name of your application.
-set(BINARY_NAME "harness-v2")
+set(BINARY_NAME "harness")
# Explicitly opt in to modern CMake behaviors to avoid warnings with recent
# versions of CMake.
diff --git a/desktop/windows/runner/Runner.rc b/desktop/windows/runner/Runner.rc
index 2a9877e8f..e91e933be 100644
--- a/desktop/windows/runner/Runner.rc
+++ b/desktop/windows/runner/Runner.rc
@@ -92,9 +92,9 @@ BEGIN
VALUE "CompanyName", "com.autonomous" "\0"
VALUE "FileDescription", "Harness" "\0"
VALUE "FileVersion", VERSION_AS_STRING "\0"
- VALUE "InternalName", "harness-v2" "\0"
+ VALUE "InternalName", "harness" "\0"
VALUE "LegalCopyright", "Copyright (C) 2026 com.autonomous. All rights reserved." "\0"
- VALUE "OriginalFilename", "harness-v2.exe" "\0"
+ VALUE "OriginalFilename", "harness.exe" "\0"
VALUE "ProductName", "Harness" "\0"
VALUE "ProductVersion", VERSION_AS_STRING "\0"
END