fix: always populate user-agent (#708)

This commit is contained in:
cthomas
2026-01-27 15:02:01 -08:00
committed by GitHub
parent a426e4bae3
commit edeb344ad9
10 changed files with 45 additions and 49 deletions

View File

@@ -1,3 +1,4 @@
import { getLettaCodeHeaders } from "../agent/http-headers";
import { settingsManager } from "../settings-manager";
export interface TelemetryEvent {
@@ -399,9 +400,7 @@ class TelemetryManager {
{
method: "POST",
headers: {
"Content-Type": "application/json",
...(apiKey ? { Authorization: `Bearer ${apiKey}` } : {}),
"X-Letta-Source": "letta-code",
...getLettaCodeHeaders(apiKey),
"X-Letta-Code-Device-ID": this.deviceId || "",
},
body: JSON.stringify({