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.

Merge branch 'worktree-agent-adf945bb7b0dbe882' into phone-overnight-polish

deee0bd60cdedaf
diff --cc mobile/lib/viewer/direct_link.dart
index e89b92550,77d5bccea..07349d780
--- a/mobile/lib/viewer/direct_link.dart
+++ b/mobile/lib/viewer/direct_link.dart
@@@ -30,14 -30,9 +30,10 @@@ class DirectLink implements PeerLinkCli
String password, {
void Function(String stage)? onProgress,
String? displayName,
+ String? label,
}) async {
- final String token;
- try {
- token = await auth.accessToken();
- } on DirectAuthException catch (error) {
- return CliLinkConnectResult(error: error.message);
- }
+ final start = await _start();
+ if (start.failed != null) return start.failed!;
final result = await linkWithPassword(
machineId: machineId,
password: password,
diff --cc mobile/lib/viewer/password_link.dart
index 5d8915675,289176b78..70850d4e3
--- a/mobile/lib/viewer/password_link.dart
+++ b/mobile/lib/viewer/password_link.dart
@@@ -82,14 -81,15 +82,16 @@@ Future<PasswordLinkResult> linkWithPass
identity,
channel,
onProgress,
+ label,
);
try {
- await channel.ready;
- return await run.drive().timeout(
- timeout,
- onTimeout: () => const PasswordLinkFailed('TIMEOUT'),
- );
+ // ⚠️ The dial is inside the timeout, not in front of it: a socket dialled into a network
+ // that swallows packets waits out the OS's own TCP timeout — over a minute on iOS — and the
+ // form said "connecting" for all of it.
+ return await () async {
+ await channel.ready;
+ return run.drive();
+ }().timeout(timeout, onTimeout: () => const PasswordLinkFailed('TIMEOUT'));
} catch (_) {
return const PasswordLinkFailed('CONNECTION_ERROR');
} finally {