Repository navigation
Conversation
…uidance When a client launches MCP servers through a TCC-disclaiming helper (for example Claude Desktop's disclaimer helper), macOS attributes the Apple Event to REA's runtime instead of the client. The client never appears under System Settings > Privacy & Security > Automation, so the previous remediation (allow the application that starts REA / ask the client developer for the entitlement) sends the user down a dead end: the client is not the responsible process and already carries the entitlement. State the attribution split in the denial message, lead the remediation with identifying the responsible process, and route TCC-disclaimed launches to clients that keep responsibility (Claude Code, Terminal). Align the installation doc's Apple Events passage with the same order, and pin the wording with a projection test. Fixes morluto#11597
Codex Review Summary: ❌ FailedThis 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. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
[Medium impact] The change reaches the troubleshooting flow for Hopper Apple Events authorization denials. Update the existing macOS acceptance test before merging. Findings
Fix with agent prompt### Issue 1
src/domain/analysisErrorPresentation.ts:undefined-79
The new wording breaks the macOS acceptance test in `tests/acceptance/providers/hopperStartupRecovery.test.ts`. It still requires both `client developer` and `Retrying from the same unauthorized client will not succeed until authorization changes`, neither of which appears in the new message. Update those assertions alongside the wording so the test passes and reaches its cleanup and recovery checks.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.SummaryUpdates Hopper’s Apple Events denial guidance to explain when macOS holds REA’s runtime responsible instead of the client.
Reviews (5) · Last reviewed commit: "fix(hopper): name the TCC-disclaimed run..." · Reviewed by Greptile |
|
Thanks for picking this up! As the reporter of #11597, the new wording matches what I observed. Two small notes:
I have the affected setup (macOS 26.6.2, Hopper 6.6.2-demo, Claude Desktop 5.11492.5) and can run this branch against the minimal reproduction in #11597 if that helps. |
|
Thanks for picking this up! I reported #11597, and I verified this branch on the affected setup. Environment: macOS 26.6.2 (arm64), Hopper Disassembler 6.6.2-demo, Claude Desktop 5.11492.5. PR head Results
For comparison, the 6.9.0 release returns the old generic remediation ("Check the Hopper launcher and target details, then retry opening the target.") with Two optional suggestions
Not covered here: Bun, other MCP clients that disclaim responsibility, and the |
|
|
||
| const HOPPER_APPLE_EVENTS_AUTHORIZATION_REMEDIATION = | ||
| "Allow the application that starts REA under System Settings > Privacy & Security > Automation. If the client lacks the com.apple.security.automation.apple-events entitlement, ask the client developer to add it or start REA from a client macOS can authorize, such as Terminal. Retrying from the same unauthorized client will not succeed until authorization changes."; | ||
| "First identify which process macOS actually holds responsible: a client that launches MCP servers through a TCC-disclaiming helper (for example Claude Desktop's disclaimer helper) hands responsibility to REA's runtime, so the client never appears under System Settings > Privacy & Security > Automation and allowing it cannot help. In that case start REA from a client that keeps TCC responsibility, such as Claude Code or Terminal. Otherwise allow the application that starts REA under System Settings > Privacy & Security > Automation; a hardened-runtime client also needs the com.apple.security.automation.apple-events entitlement before macOS will prompt, so ask its developer to add it. Retrying from the same unauthorized launch will not succeed until authorization changes."; |
There was a problem hiding this comment.
The new wording breaks the macOS acceptance test in tests/acceptance/providers/hopperStartupRecovery.test.ts. It still requires both client developer and Retrying from the same unauthorized client will not succeed until authorization changes, neither of which appears in the new message. Update those assertions alongside the wording so the test passes and reaches its cleanup and recovery checks.
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/domain/analysisErrorPresentation.ts
Line: 79
Comment:
**macOS recovery test fails**
The new wording breaks the macOS acceptance test in `tests/acceptance/providers/hopperStartupRecovery.test.ts`. It still requires both `client developer` and `Retrying from the same unauthorized client will not succeed until authorization changes`, neither of which appears in the new message. Update those assertions alongside the wording so the test passes and reaches its cleanup and recovery checks.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.|
Thank you for this contribution! Issue #11597 has already been fixed and closed on |
Fixes #11597.
What
When a client launches MCP servers through a TCC-disclaiming helper (Claude Desktop's
disclaimerhelper), macOS attributes the Apple Event to REA's runtime (node) instead of the client. The client never appears under System Settings > Privacy & Security > Automation and already carriescom.apple.security.automation.apple-events, so both steps of the current guidance are dead ends.This PR:
HOPPER_APPLE_EVENTS_AUTHORIZATION_MESSAGE(adds: when the client disclaims TCC responsibility, macOS holds REA's runtime responsible);HOPPER_APPLE_EVENTS_AUTHORIZATION_REMEDIATIONto lead with identifying the responsible process, and routes TCC-disclaimed launches to clients that keep responsibility (Claude Code, Terminal) — the recovery confirmed working in the issue;names the TCC-disclaimed runtime in an Apple Events denial remediation).Verification
npx vitest run src/domain/analysisErrorProjection.test.ts— 113/113 (including the new test);test:fastsource group — no new failures vs. a stashed baseline (pre-existing environment failures are unchanged);npx oxlinton the touched files — 0 errors.Guidance-only change: no behavioral or schema change; the denial classification, category, and retryability are untouched.