The best way to control Claude Code, Codex and more from any computer or phone
fix(mobile): report native client installs under the fleet machine label
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Oct 25, 2026 at 13:40 UTC
8b3b2eac409b6542dcfc282dd95db498ea1566ef
1 file changed
+12
-1
scripts/mobile-native-client.ts
+12
-1
@@ -799,7 +799,18 @@ const reportTelemetry = Effect.fn("nativeClient.reportTelemetry")(
799
if (!remote) return;
800
const environment = yield* HostProcess.Environment;
801
const recordedAt = yield* Clock.currentTimeMillis;
802
- const host = yield* HostProcess.Hostname;
802
+ // Same machine label as Vite task reports (infra/task-cache/src/telemetry.ts).
803
+ const fs = yield* FileSystem.FileSystem;
804
+ const machine = yield* fs.readFileString(`${home}/.agents/MACHINE`).pipe(
805
+ Effect.map((value) => value.trim()),
806
+ Effect.orElseSucceed(() => ""),
807
+ );
808
+ const host =
809
+ environment.T3_TASK_CACHE_HOST ||
810
+ machine ||
811
+ (environment.GITHUB_ACTIONS === "true"
812
+ ? `${environment.RUNNER_ENVIRONMENT || "github"}/${environment.RUNNER_OS}/${environment.RUNNER_ARCH}`
813
+ : yield* HostProcess.Hostname);
814
const client = (yield* HttpClient.HttpClient).pipe(HttpClient.filterStatusOk);
815
yield* client.execute(
816
authorized(remote, HttpClientRequest.post(remote.telemetry)).pipe(