macOS: enable network.client entitlement so account sync works#11
Merged
Conversation
The macOS app set `com.apple.security.network.client: false` ("this app
never reaches the network") — correct for the original white-noise-only
build. The listening-time account/sync feature (the magic-link sign-in +
G-Counter sync to cascade-sync-server) was added afterwards but the
sandbox entitlement was never re-enabled, so under the App Sandbox every
outbound URLSession call fails silently and the UI just shows
"Couldn't send the sign-in link."
Flip the entitlement to true (and regenerate Cascade.entitlements). This
is the macOS counterpart of the Android INTERNET-permission fix (#10).
Verified end-to-end on macOS after the change: magic-link request,
verify/sign-in, cross-device sync pull, delete-data, and delete-account
all work against the live sync server.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Problem
On macOS the account / listening-time sync feature silently fails: every action ("Email me a link", sign in, sync, delete) ends in
Couldn't send the sign-in link.even though the sync server is healthy.Root cause: the macOS target hard-set the sandbox entitlement
which was correct for the original white-noise-only app. The listening-time account + sync feature (#7/#8) was added later but this entitlement was never re-enabled, so the App Sandbox blocks every outbound
URLSessionrequest. This is the macOS counterpart of the Android INTERNET-permission bug fixed in #10 — the macOS side was missed.Fix
Set
com.apple.security.network.client: trueinproject.ymland regenerateCascadeMac/Cascade.entitlements. One-line capability flip; no code changes.Verification
Built from this branch and driven through the real UI against the live
sync.cascade.stephens.page:🤖 Generated with Claude Code