DashboardcliVersion-check helpers never throw

Version-check helpers never throw

Category: preference
Confidence: 1.00
ID: 01a08c09-71e3-7889-ab75-91e7075aaeb3
Project ID: c760f4f9-42b0-4ce0-b36d-6b8c38d770b2
Cross-project: No
Recalled in other projects: 1
Source session: 0kMkIRivT75aHEleH
Created: 2026-07-14 13:35:11
Updated: 2026-09-10 15:57:04

Cross-Project Recalls

ProjectHitsLast recalled
opencode-lore 1 1d ago

Content

checkForUpdateInBackgroundImpl() and getUpdateNotificationWithCopy() must never throw, propagate errors, or delay CLI execution. Catch database, network, parsing, cache, eligibility, and notification-construction failures at their boundaries; capture actionable unexpected errors with Sentry.captureException(), but do not report expected aborts, and record transient infrastructure failures on the version-check span when appropriate. Return null when unavailable, rate-limited, current, ineligible, stderr is not a TTY, or any error occurs. Persist last_notified only after successfully producing a notification.

Move to: