Skip to content

feat: add lid-closed mode, plug-in resume and new menu and settings layout - #10

Merged
duongdev merged 1 commit into
mainfrom
feat/lid-closed-mode
Dec 1, 2026
Merged

duongdev merged 1 commit into
mainfrom
feat/lid-closed-mode

Conversation

@duongdev

Copy link
Copy Markdown
Owner

What and why

Adds two power features for 0.4.0 and reorganizes the menu and Settings.

  • Lid-closed mode: keeps the Mac awake with the lid closed and no external display, within a power, battery and heat policy. A fail-safe agent releases the switch if the app stops. See docs/adr/0001.
  • Plug-in resume: turns a session on again when the charger is back, if unplugging ended it.
  • New menu and Settings layout. Settings and Logs windows show in the Dock while open.
  • scripts/release.sh and scripts/lid-test.sh.

How I tested it

  • swift test --package-path WakefulCore: 54 tests pass.
  • Ad-hoc and team-signed Debug builds succeed. In the ad-hoc build, lid-closed mode stays off and Settings says why.
  • Team-signed Debug build: the agent registers, and a timed session starts and ends.
  • The release build and the closed-lid hardware test are checked before the release.

Checklist

  • Tests added or updated for WakefulCore logic
  • User-facing text is in the String Catalog (the one exception is a warning that only unsigned developer builds show)
  • CHANGELOG.md updated (for user-visible changes)

@duongdev
duongdev merged commit 690e480 into main Dec 1, 2026
2 checks passed
@duongdev
duongdev deleted the feat/lid-closed-mode branch December 1, 2026 01:30
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.

1 participant