Skip to content

fix(hopper): name the TCC-disclaimed runtime in Apple Events denial guidance - #11636

Closed
Jackzigen wants to merge 1 commit into
morluto:mainfrom
Jackzigen:fix/hopper-apple-events-tcc-attribution
Closed

Jackzigen wants to merge 1 commit into
morluto:mainfrom
Jackzigen:fix/hopper-apple-events-tcc-attribution

Conversation

@Jackzigen

Copy link
Copy Markdown
Contributor

Fixes #11597.

What

When a client launches MCP servers through a TCC-disclaiming helper (Claude Desktop's disclaimer helper), 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 carries com.apple.security.automation.apple-events, so both steps of the current guidance are dead ends.

This PR:

  • states the attribution split in HOPPER_APPLE_EVENTS_AUTHORIZATION_MESSAGE (adds: when the client disclaims TCC responsibility, macOS holds REA's runtime responsible);
  • rewrites HOPPER_APPLE_EVENTS_AUTHORIZATION_REMEDIATION to 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;
  • aligns the installation doc's "If macOS denies Apple Events" passage with the same order;
  • pins the new wording with a projection test (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);
  • full test:fast source group — no new failures vs. a stashed baseline (pre-existing environment failures are unchanged);
  • npx oxlint on the touched files — 0 errors.

Guidance-only change: no behavioral or schema change; the denial classification, category, and retryability are untouched.

…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
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-16T01:10:09.286766Z
We couldn’t complete this review. Comment @codex review to try again.
7fe54bf PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@greptile-apps

greptile-apps Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The change reaches the troubleshooting flow for Hopper Apple Events authorization denials.

Update the existing macOS acceptance test before merging.

Findings

  1. P1 macOS recovery test fails ▶
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.

Summary

Updates Hopper’s Apple Events denial guidance to explain when macOS holds REA’s runtime responsible instead of the client.

  • Apple Events denial guidance names the runtime macOS holds responsible.

Reviews (5) · Last reviewed commit: "fix(hopper): name the TCC-disclaimed run..." · Reviewed by Greptile

@Diego-9612

Copy link
Copy Markdown

Thanks for picking this up! As the reporter of #11597, the new wording matches what I observed.

Two small notes:

  1. The message says "node/bun". I only verified node (official Node.js 26.13.1, hardened runtime); bun is untested on my side.
  2. The remediation starts with "First identify which process macOS actually holds responsible" but doesn't say how. A practical hint could help, e.g. "if the client is not listed under Automation", or that log stream --predicate 'process == "tccd"' shows responsible=... node.

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.

@Diego-9612

Copy link
Copy Markdown

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 7fe54bf, built with Node 24.22.1 (.nvmrc) via npm ci && npm run build:cached.

Results

Check Result
npm run test:focused -- src/domain/analysisErrorProjection.test.ts ✅ 113/113 passed
New test against the base wording (HEAD~1 version of analysisErrorPresentation.ts) ✅ Fails as expected: expected 'Allow the application that starts REA…' to contain 'TCC-disclaiming helper'
Real denial: PR build launched through Claude Desktop's helper (/Applications/Claude.app/Contents/Helpers/disclaimer --pgroup -- node <branch>/scripts/rea.mjs search /bin/ls --pattern usage --format json) ✅ provider_unavailable, launch_rejection: {boundary: "apple_events_authorization", reason: "not_authorized"}, retryable: false, and the new message and remediation are returned
tccd during that run AccessRequestIndirect: Policy disallows prompt for /Users/<user>/.nvm/versions/node/v24.22.1/bin/node; access to kTCCServiceAppleEvents denied (same attribution as in #11597, now with a second official Node build)
Control: same PR build without the disclaimer helper (started from Claude Code) ✅ Hopper works: search finds usage: ls … at 0x100004d8e

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 retryable: true for the same launch.

Two optional suggestions

  1. "node/bun": I have only verified node (official builds 26.13.1 and 24.22.1, both hardened runtime without the Apple Events entitlement). bun is untested on my side.
  2. "First identify which process macOS actually holds responsible": the remediation does not say how. A short hint could make it actionable, for example: "If the client is not listed under Automation, or log stream --predicate 'process == "tccd"' shows responsible=… node, …".

Not covered here: Bun, other MCP clients that disclaim responsibility, and the doctor warning idea from the issue (proposal 3).


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.";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P1 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.

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.

@morluto morluto added area: runtime Process capture and runtime observation bug Something isn't working provider: hopper Analysis provider / engine: hopper labels Nov 22, 2026
@morluto

morluto commented Nov 24, 2026

Copy link
Copy Markdown
Owner

Thank you for this contribution! Issue #11597 has already been fixed and closed on main via PR #12309 (commit 0c672c19a9), which updated HOPPER_APPLE_EVENTS_AUTHORIZATION_REMEDIATION and the apple_events_authorization rejection in src/hopper/HopperErrors.ts as well as docs/getting-started/installation.md to explain TCC-disclaiming clients like Claude Desktop and runtime attribution. Closing this PR as already landed.

@morluto morluto closed this Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: runtime Process capture and runtime observation bug Something isn't working provider: hopper Analysis provider / engine: hopper

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Hopper Apple Events denial blames the client when Claude Desktop's disclaimer helper makes node the responsible process

4 participants