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.

fix: name the daemon-adopted machine with the guarded hostname helper

Autonomous Devopse1472edb3afc
diff --git a/desktop/lib/state/app_state.dart b/desktop/lib/state/app_state.dart
index b8796c65a..770c7c84f 100644
--- a/desktop/lib/state/app_state.dart
+++ b/desktop/lib/state/app_state.dart
@@ -3098,7 +3098,7 @@ class AppNotifier extends ChangeNotifier {
machineId: machineId,
computerId: localComputerId ?? endpoint.computerId,
authMode: MachineAuthMode.remote,
- name: Platform.localHostname,
+ name: localHostnameOrNull(),
status: 'online',
);
machines = [...machines, machine];