perf(desktop): pause background timers when pane/window is not visible
- electron/main.ts: try/catch wrapping for hasOAuthSessionCookie/hasLivePortalSession,
guard setInterval with !settled, named handler for cleanup on window close
- agents/index.tsx: usePaneVisible() gates 500ms nowMs ticker
- cron-jobs-section.tsx: usePaneVisible() gates 1s countdown + poll, immediate load on visible
- floating-pet.tsx: document.visibilityState guards legacy backend polling
- vitest.setup.ts: window/document mocks for jsdom test environment
- vitest.config.ts: @ alias for module resolution in tests
Fixes: #73082, #51927, #53902, #69645
Cherry-picks 5f9cc0cb6, 7efb46c05, 94c9919c2 onto performance/desktop-cpu-memory branch.