You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Desktop: make startup warmups cancellable and user-session scoped #8123
PR #8013 improves macOS desktop startup by deferring non-critical warmups. The direction is good, but follow-up cleanup should make the delayed warmup lifecycle explicit and user/session-scoped instead of leaving cancellation semantics spread across views/services.
Problem
Several post-interactive warmups are scheduled as delayed Task { sleep; work } blocks from different owners:
StartupWarmupCoordinator owns some DB/service/chat warmups and exposes cancel(), but no production caller currently cancels it on sign-out/reset.
DesktopHomeView schedules additional delayed side-effectful work such as Agent VM provisioning, conversation warmup, file indexing, and proactive monitoring.
CrispManager owns its own delayed initial poll.
This makes it easy for old delayed tasks to wake after sign-out, onboarding reset, auth-user switch, or app lifecycle changes.
Desired outcome
Create a single cancellable, user/session-scoped startup warmup owner (or equivalent lifecycle model) so delayed post-interactive work is:
tied to the signed-in user/session it was scheduled for,
cancelled on sign-out/reset/app termination where appropriate,
protected by post-delay cancellation/auth checks,
covered by focused scheduler/lifecycle tests rather than only policy-constant tests.
Notes
PR #8013 should keep only the minimal safety fixes needed to preserve the startup performance win. This issue tracks the broader lifecycle architecture cleanup.
Activity
Scope desktop startup warmups to user sessions (#8159)