Skip to content

fix(helper): recheck normal sleep after confirming a notFound helper is gone - #24

Merged
scttbnsn merged 1 commit into
dev/m2from
fix/dil-helper-notfound-recheck
Oct 29, 2026
Merged

scttbnsn merged 1 commit into
dev/m2from
fix/dil-helper-notfound-recheck

Conversation

@scttbnsn

Copy link
Copy Markdown
Contributor

CodeRabbit on promotion PR #23: the .notFound removal path read power, then awaited the helper-absence check (launchctl plus pgrep, which can take a few seconds), and then reported success. If sleep-disable changed during that check, removal succeeded on a stale reading. It now re-reads power after the check before invalidating, the same way the unregister path does.

Verify: bash scripts/verify.sh passes. A new ClosedLidControllerTests case returns normal sleep on the first read and sleep-disabled on the second, and removal is refused with no unregister call and the lease kept. It failed before the change.

…is gone

The helper-absence check can take seconds, so removal now re-reads power before reporting success, like the unregister path.
@coderabbitai

coderabbitai Bot commented Oct 29, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f045ea0b-d30f-485e-b2c8-a806e4984dbd

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@biggest-littlest biggest-littlest left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@scttbnsn
scttbnsn merged commit 716062f into dev/m2 Oct 29, 2026
3 of 4 checks passed
@scttbnsn
scttbnsn deleted the fix/dil-helper-notfound-recheck branch October 29, 2026 15:59
@scttbnsn scttbnsn mentioned this pull request Oct 29, 2026
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.

2 participants