Skip to content

feat: report OS login-item status - #3588

Draft
setchy wants to merge 1 commit into
mainfrom
feat/auto-launch-login-item-status
Draft

setchy wants to merge 1 commit into
mainfrom
feat/auto-launch-login-item-status

Conversation

@setchy

@setchy setchy commented Nov 1, 2026

Copy link
Copy Markdown
Member

Summary

Part of OpenSpec change 04-clean-up-dependencies-and-electron-debt (tasks 2.2–2.5).

  • Add GET_LOGIN_ITEM_SETTINGS to the typed IPC contract. The main handler returns openAtLogin plus macOS status or Windows executableWillLaunchAtLogin, and skips the read in development and on Linux so a dev build cannot show a false warning.
  • Add useLoginItemStatus, which reads on settings mount and re-reads on window focus. A failed read returns null, so the screen never claims the item is active.
  • Show a warning in System settings when the stored preference is on but the OS reports requires-approval, not-found, not-registered, or a disabled Windows startup entry.
  • Document the platform behavior and signed-build requirement in CONTRIBUTING.md.

Verification

  • pnpm check passes.
  • Targeted tests pass: main system handler (18), preload (14), hook, and System settings (41 across the affected files).
  • pnpm i18n:check passes with the new English keys.

Notes

Draft for review. The contract cleanup in #3587 is separate; this PR is based on main and should merge cleanly after it.

Read the operating system's login-item state through a new GET_LOGIN_ITEM_SETTINGS IPC event and surface mismatches in System settings. macOS reports not-registered, enabled, requires-approval, or not-found; Windows reports whether the executable will launch at login. The read is skipped in development and on Linux to avoid false warnings.
@sonarqubecloud

sonarqubecloud Bot commented Nov 1, 2026

Copy link
Copy Markdown

@setchy setchy added the enhancement New feature or enhancement to existing functionality label Nov 1, 2026
@setchy setchy changed the title feat(auto-launch): report OS login-item status feat: report OS login-item status Nov 1, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or enhancement to existing functionality

Development

Successfully merging this pull request may close these issues.

1 participant