Skip to content

feat(cli): report manual self update failures to telemetry with a bounded error code #2243 - #2244

Merged
nc9 merged 2 commits into
mainfrom
feat/self-update-error-telemetry
Nov 22, 2026
Merged

nc9 merged 2 commits into
mainfrom
feat/self-update-error-telemetry

Conversation

@nc9

@nc9 nc9 commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Closes #2243

A failed manual squirrel self update, or a failed update accepted at the startup banner prompt, now sends exactly one existing error event (no server change, no new event name) with the pre-update version.

  • error_type: self_update:<CODE> (banner: self_update_prompt:<CODE>). error_message: fixed text per code, no raw output.
  • Codes (the path's own): ATTESTATION_FAILED, SIGNATURE_FAILED, SIGNATURE_REQUIRED, CHECKSUM_MISMATCH, DOWNLOAD_FAILED/ABORTED/TIMEOUT, NETWORK_ERROR, UPDATE_IN_PROGRESS, UNMANAGED_INSTALL, UNSUPPORTED_PLATFORM, MANIFEST_NOT_FOUND, NO_MANIFEST, INVALID_RELEASE/JSON/KEY/BIN_DIR, INSTALL_FAILED, SYMLINK_FAILED. Anything else, or a thrown exception: UNKNOWN.
  • Success sends nothing (recovery = next event's new version; commented in code). Same opt-out gate as the auto path.

Verification: tests in tests/self/updater.test.ts (3 fail on origin/main, all 109 pass now); typecheck, lint, format:check clean; test-suites --check and changelog check OK; full cli suite: 4658 pass, 0 fail.

Agent skill: no change needed.

@nc9
nc9 marked this pull request as ready for review November 22, 2026 10:41
@nc9
nc9 merged commit 7d61fa8 into main Nov 22, 2026
10 checks passed
@nc9
nc9 deleted the feat/self-update-error-telemetry branch November 22, 2026 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CLI: report manual self update (and banner-prompt update) failures to telemetry with a bounded error code

1 participant