feat(telemetry): carry app_version on instance_started (#681)

app_version was attached only to feedback events; every other allowlist stripped it, so the install base could not be segmented by release. One property on the once-per-boot census event covers it. Fixes #674.
This commit is contained in:
SnapOtter
2026-07-30 09:40:53 +08:00
committed by GitHub
parent fe21f352f6
commit b6c69b7aeb
6 changed files with 15 additions and 3 deletions
+7
View File
@@ -10,6 +10,7 @@ vi.mock("../../../apps/api/src/lib/deploy-mode.js", () => ({
deployMode: mockDeployMode,
}));
import { APP_VERSION } from "@snapotter/shared";
import { gatherSystemProperties } from "../../../apps/api/src/lib/system-info.js";
describe("gatherSystemProperties", () => {
@@ -47,6 +48,12 @@ describe("gatherSystemProperties", () => {
expect(gatherSystemProperties().gpu_present).toBe(false);
});
it("carries the app version so release adoption is measurable", () => {
mockDeployMode.mockReturnValue("embedded");
mockExistsSync.mockReturnValue(false);
expect(gatherSystemProperties().app_version).toBe(APP_VERSION);
});
it("passes through deploy mode and os platform", () => {
mockDeployMode.mockReturnValue("embedded");
mockExistsSync.mockReturnValue(false);