Repository navigation
Conversation
|
Tested on macOS 27.0 (26A428), MacBook Pro (Mac14,6) M2 Max, Xcode 27.1, with #58, #76 and a local Comet list change also applied. The README conflict with #76 was kept as #76's text. On that tree During a 5-minute session, right-click, then End session, ended it: "session end (user)", "sleep restored", "app nap restored for 20 app(s)". The journal was clean afterwards and Insomnia kept running. Together with #76 this gives macOS 27 two ways to end early. |
End-to-end test in a VM on macOS 27.0.1End session shows in the right-click menu while a session runs, and clicking it ends the session the same way the ring does: sleep is restored, App Nap is restored, and the app keeps running. SetupA Tart VM on the maintainer's Mac mini, macOS 27.0.1 (26A434) with Xcode 27.0. Each version was built from source and installed with Main (76e517d) against this PR's head (73cfa73). The script ( Results
The menu during a session, main on top and this PR below: The orange "Sleep still held with no session" line in main's menu comes from main, not this PR. The menu opened during main's 5 s start check, before the log said the session had started. The PR's menu opened after it. Not covered
The full log is 🤖 Generated with Claude Code |
|
Thanks for this. One thing to fix before it can merge: the new test can fail on CI even when the app does the right thing. The test stops waiting before the end finishes
This happened on CI. With this head merged into main The same job passed on two reruns, so it is a timing race in the test, not a bug in the menu item. Fix: have the test wait for an explicit signal that the end finished. Or extend the wait condition so it also waits for a clean journal on disk ( Push the fix as a new commit on this branch (no rebase or force-push). CI, Greptile and the Codex review then run again on the new head. My VM test above covered 🤖 Generated with Claude Code |
End-to-end test in a VM on macOS 27.0.1, rerun at 43f7523End session still works at this head. It shows in the right-click menu during a session, and clicking it ends the session: sleep is restored, App Nap is restored, and the app keeps running. The results match the run at 73cfa73. SetupThe same VM and method as the earlier run: macOS 27.0.1 (26A434) with Xcode 27.0, each version built from source and installed with Results
The menu during a session, main on top and this PR below: As in the earlier run, main's orange "Sleep still held with no session" line comes from main: its menu opened during the 5 s start check. Not covered
The full log is 🤖 Generated with Claude Code |




Summary
Adds End session to the right-click menu during an active session, giving users a fallback for the hold-control problem reported in #60. It uses the existing restoration path and leaves Insomnia open. The reported gesture failure itself has not been reproduced or changed.
Refs #60.
Validation
73cfa73: 1,228 tests, 10 skipped, zero failures; release build with warnings treated as errors, shell checks and workflow lint passed. Greptile passed with no review findings.Limitations
The local native preview used fake power dependencies; it did not reproduce the original hold gesture failure or verify a live power-restoration click on this laptop. The implementation provides an explicit fallback rather than changing the hold control.


Confidence Score: 5/5
The PR appears safe to merge; no blocking issues were found.Summary
Adds End session to the right-click menu while a session runs. It uses the existing restoration path and leaves Insomnia open.
No new actionable issues were found. No previous review threads were supplied.
Reviews (5) · Last reviewed commit: "fix: wait for session restoration before..." · Reviewed by Greptile