Repository navigation
fix(hopper): clarify hardened client automation recovery - #9916
Closed
twotnguyen wants to merge 5 commits into
Closed
twotnguyen wants to merge 5 commits into
twotnguyen wants to merge 5 commits into
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
6 tasks done
Bring the contributor branch up to current main before the structured denial change. Co-authored-by: morluto <[email protected]>
Classify the macOS helper's Apple Events refusal as a launch rejection and project it as unavailable and not retryable from the same client.
# Conflicts: # src/domain/analysisErrorPresentation.ts
1 task done
gensokyo-dev
added a commit
that referenced
this pull request
Nov 14, 2026
A hardened-runtime client without the Apple Events automation entitlement got generic Automation advice, and the projection kept retryable: true, so agents retried from the same unauthorized client. The denial is now a typed launch rejection whose message and recovery name the entitlement and the Automation setting, with retry turned off. Fixes #9879 Squashed from #9916 and rebased onto main. Co-Authored-By: morluto <[email protected]> Co-Authored-By: gensokyo-dev <[email protected]>
gensokyo-dev
added a commit
that referenced
this pull request
Nov 14, 2026
A hardened-runtime client without the Apple Events automation entitlement got generic Automation advice, and the projection kept retryable: true, so agents retried from the same unauthorized client. The denial is now a typed launch rejection whose message and recovery name the entitlement and the Automation setting, with retry turned off. Fixes #9879 Squashed from #9916 and rebased onto main. Co-Authored-By: morluto <[email protected]> Co-Authored-By: gensokyo-dev <[email protected]>
N0zoM1z0
pushed a commit
that referenced
this pull request
Nov 14, 2026
A hardened-runtime client without the Apple Events automation entitlement got generic Automation advice, and the projection kept retryable: true, so agents retried from the same unauthorized client. The denial is now a typed launch rejection whose message and recovery name the entitlement and the Automation setting, with retry turned off. Fixes #9879 Squashed from #9916 and rebased onto main. Co-Authored-By: morluto <[email protected]> Co-Authored-By: gensokyo-dev <[email protected]>
Collaborator
|
Thank you for this fix. It landed in #10499 with your authorship kept on the commit (adapted where noted in the PR), so I'm closing this PR as superseded. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #9879. When macOS refuses Hopper Apple Events, report a typed launch rejection and explain how to recover when the client lacks the hardened-runtime automation entitlement. Retrying from the same unauthorized client cannot succeed until authorization changes.
Change and contract
The launcher classifies the existing pre-handoff denial as
apple_events_authorization/not_authorized. The CLI and MCP error retainsprovider_unavailableand reportscategory: unavailable,retryable: false, anddetails.retry_action: unknown, with the rejection indetails.launch_rejection. The diagnostic cannot distinguish a missing Automation grant from a missing entitlement.The remediation points to macOS Automation settings, the client developer for a missing entitlement, or an authorizable client such as Terminal. Installation guidance describes the same options. No target execution or authorization behavior is changed.
Validation
npm run check:fast— passed.npm run test:focused -- src/domain/analysisErrorProjection.test.ts tests/acceptance/providers/hopperStartupRecovery.test.ts tests/boundary/providers/hopper/hopperClient.helperFailure.test.ts— 108 passed on macOS after the merge conflict resolution.npm run test:focused -- tests/acceptance/providers/hopperStartupRecovery.test.ts— passed after the guidance update (5 tests).Author readiness
Human owner: @twotnguyen
Before merge
type(scope): outcome.