fix: use getVersion() for feedback and telemetry version reporting (#1048)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
jnjpng
2026-02-19 16:56:59 -08:00
committed by GitHub
parent 49c96c3e46
commit 2dada876e9
2 changed files with 17 additions and 18 deletions

View File

@@ -1,5 +1,6 @@
import { getLettaCodeHeaders } from "../agent/http-headers";
import { settingsManager } from "../settings-manager";
import { getVersion } from "../version";
export interface TelemetryEvent {
type: "session_start" | "session_end" | "tool_usage" | "error" | "user_input";
@@ -254,7 +255,7 @@ class TelemetryManager {
const data: SessionStartData = {
startup_command: args.join(" "),
version: process.env.npm_package_version || "unknown",
version: getVersion(),
platform: process.platform,
node_version: process.version,
};