Versioned install path causes TCC re-prompts on every Claude Code update (breaks MDM PPPC; CoWork scheduled actions may be affected)
Summary
Claude Code installs each version to ~/.local/share/claude/versions/
Install Claude Code, version A.
Use it in a way that triggers any TCC-protected scope (in my case: Media Library).
Allow the prompt.
Update Claude Code to version B (new versions/
Evidence
From my user TCC.db after a 2.1.139 → 2.1.152 update:
sqlite3 "$HOME/Library/Application Support/com.apple.TCC/TCC.db"
"SELECT client, client_type, service, auth_value, datetime(last_modified, 'unixepoch') FROM access WHERE service='kTCCServiceMediaLibrary' ORDER BY last_modified DESC;"
/Users/
client_type=1 = TCC identifies the requester by absolute path. The older com.anthropic.claude-code row (client_type=0) shows Claude Code was previously identified by bundle ID. The layout changed at some point and lost that stable identity.
Impact This affects more than IT fleet deployment:
MDM PPPC profile can't be made stable. A PPPC config profile granting Claude Code TCC scopes has to identify the binary by bundle ID (doesn't exist) or path (changes per version). No stable identity to match — admins can't pre-grant TCC permissions at the MDM layer. Real for our ~750-user Jamf deployment. CoWork scheduled actions may be affected. If CoWork inherits Claude Code's binary identity or a similar versioned install layout, scheduled/unattended runs would hit a TCC prompt with no user available to click Allow — silently failing or hanging on each version bump. Worth verifying internally; flagging it because if it does apply, the failure mode is silent. User-facing prompts label the requester with a version string. "2.1.152 would like to access Apple Music" looks suspicious enough that I spent real time identifying it on my own machine. At fleet scale this generates IT tickets and trains users to click Don't Allow on legitimate prompts.
Proposed fixes (any one would work)
Ship Claude Code as a code-signed .app bundle with a stable bundle ID. Install the actual binary at a stable path and treat the versioned directory as implementation detail behind it. TCC must see the stable path as the binary's identity, not as a symlink dereferenced to the version dir. Publish a stable designated code requirement (output of codesign -d -r-) that admins can use in PPPC profiles to match Claude Code by signed identity across versions.
Environment
macOS Sequoia 15.x, Apple Silicon Claude Code 2.1.152, installed via the official installer Jamf-managed corporate fleet (~750 users) Anthropic plan: Team
Update: confirmed reproduction, severity higher than initially reported This is now confirmed to be actively breaking Cowork scheduled tasks, not just "may be affected" as noted in the original report.
Observed behavior:
Cowork scheduled task (daily-standup-prep, cron 30 6 * * 1-5) ran successfully Jun 8, then shows "Skipped" on Jun 9 and Jun 10 — correlating directly with a version bump between Jun 8 and Jun 9. Machine is on 24/7, never sleeps. The skip is not a wake/sleep issue. Manually triggering the same task while the user is present succeeds — consistent with TCC prompting at unattended run time and getting no response.
The update frequency makes this much more severe than originally described. Claude Code updates multiple times per day. The "manually re-run after each update to re-authorize TCC" mitigation is not viable — it would require constant manual intervention throughout the day. The scheduled task feature is effectively non-functional on macOS for any task that touches TCC-protected resources. No viable workaround exists at this update cadence short of a fix to the install path. PPPC/MDM pre-grant is still a dead end without a stable bundle ID or designated code requirement.
Any update here? This has been broken for over a month for me.
Same. Every new session asks at least 2x. A mac with mutiple open sessions that restores after an idle period can ask 15+ times .
Still reproducing on 2.1.245 / macOS 26.6.2 (25G83), Apple Silicon, native install.
Adding two findings that narrow the diagnosis, because I think the root cause in the original report is stated more broadly than the evidence supports.
1. The binary is correctly signed, and a stable designated requirement already exists.
The report proposes publishing a DR for PPPC matching, and #62240/#41297 both suggest the binary is unsigned. Neither holds on the current build:
$ codesign -dv ~/.local/share/claude/versions/2.1.245
Identifier=com.anthropic.claude-code
CodeDirectory v=20500 flags=0x10000(runtime)
TeamIdentifier=Q6L2SF6YDW
Info.plist=not bound
$ codesign -d -r- ~/.local/share/claude/versions/2.1.245
designated => identifier "com.anthropic.claude-code" and anchor apple generic
and certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */
and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */
and certificate leaf[subject.OU] = Q6L2SF6YDW
Hardened runtime, valid Developer ID, stable identifier, and a DR with no version component — usable in a PPPC profile as-is. The signing side is fine.
2. The real defect is Info.plist=not bound — and the correctly bundled artifact already ships alongside it.
versions/<version> is a bare Mach-O with no enclosing bundle, so TCC ignores the signing identifier and falls back to path identification. But the install tree also contains:
~/.local/share/claude/
├── ClaudeCode.app/Contents/MacOS/claude ← proper bundle, same identifier, same team
└── versions/
├── 2.1.243 ← bare Mach-O, executed
└── 2.1.245 ← bare Mach-O, executed
ClaudeCode.app carries the same com.anthropic.claude-code identifier and the same Team ID. The correctly packaged artifact is being built and shipped — the launcher just executes the unbundled versioned binary instead. That makes this a packaging/launcher bug, not a signing or entitlements one, and the fix is correspondingly smaller than the three options in the original report: execute the existing bundle, or bind an Info.plist into the versioned binary.
3. Denying does not converge — there is no terminal state for the user.
Worth separating from the "permissions reset" framing. My TCC.db before cleanup, 242 rows, all client_type=1, one set per version:
| Service | Rows |
|---|---|
| kTCCServiceSystemPolicyNetworkVolumes | 84 |
| kTCCServiceMediaLibrary | 74 |
| kTCCServiceSystemPolicyDesktopFolder | 41 |
| kTCCServiceFileProviderDomain | 32 |
| kTCCServiceSystemPolicyDocumentsFolder | 7 |
| kTCCServiceSystemPolicyAppData | 4 |
228 of 242 are auth_value=0. I denied nearly every prompt, and the prompt returned anyway — the denial is recorded against a path that stops being the active binary within a day, and the next version arrives with no record at all. Allow and Don't Allow are equally non-terminal. That's a stronger user-facing claim than "grants don't persist": there is no answer that ends the prompting.
For contrast, from the same table on the same machine:
com.cmuxterm.app|0|kTCCServiceMediaLibrary|2
client_type=0, one row, stable across every update that app has ever shipped. That is what the bundled path produces.
4. Version churn, measured.
From the TCC row timestamps, ~50 versions between 2026-06-27 and 2026-08-25, including same-day double bumps (2.1.231→2.1.232 on Aug 14, 2.1.236→2.1.237 on Aug 20). Five distinct TCC scopes × that cadence is the prompt volume users are actually seeing.
5. Orphan rows accumulate permanently.
Disk cleanup appears to have been fixed since #48311 — only the last 2–5 versions are retained. TCC.db has no such cleanup: all ~50 versions since June had live rows pointing at paths deleted weeks ago. The Privacy & Security pane fills with version-number entries that can only be cleared by direct sqlite manipulation.
For anyone else hitting this, the orphans can be pruned (back up TCC.db first; terminal needs Full Disk Access):
DELETE FROM access WHERE client LIKE '%/.local/share/claude/versions/%';
This is cosmetic only — it does not stop the prompts, since the cause is the unbundled execution path.
Still reproducing on 2.1.280 / macOS 27.0 (26A428), Apple Silicon, native install. This is the same machine as my previous comment. Three updates since then:
1. The rows came back after cleanup.
On 2026-08-25 I deleted all 242 rows for ~/.local/share/claude/versions/* from TCC.db. Four weeks later, the Full Disk Access pane has these entries again:
2.1.246, 247, 248, 250, 251, 252, 257, 258, 259, 260, 261, 263, 265, 266, 267, 268, 269, 270, 272, 273, 274, 275, 276, 278, 280
That is 25 versions in 29 days, and each one is a separate TCC client. The installer now keeps only 3 binaries on disk (2.1.276, 2.1.278, 2.1.280). So 22 of the 25 entries point at paths that no longer exist, and the pane shows them with a blank "?" icon.
2. ClaudeCode.app is no longer in the install tree.
My previous comment said the bundled artifact ships next to the versioned binaries. That is no longer true on this machine. ~/.local/share/claude/ now contains only versions/. So the fix "execute the existing bundle" is not available as-is. The binary still has the same issue:
$ codesign -dv ~/.local/share/claude/versions/2.1.280
Identifier=com.anthropic.claude-code
TeamIdentifier=Q6L2SF6YDW
Info.plist=not bound
The signing identity is stable. TCC does not use it because no Info.plist is bound, so TCC identifies the binary by path. Each update gives a new path, so the result is one new TCC client per update.
3. Possible fixes, from smallest to largest:
- Bind an Info.plist into the Mach-O (
-sectcreate __TEXT __info_plist) so TCC keys on the bundle ID. - Execute from a stable path (for example
versions/current) and replace the file in place on update, not a new file per version. - Ship and execute a real
.appbundle again.
The issue has been open since 2026-05-29. The opener confirmed on 2026-06-10 that it breaks Cowork scheduled tasks. There is still no maintainer response in the thread.
got the same problem, it's so annoying
Still reproducing on 2.1.295 / macOS 27.0.1 (26A434), Apple Silicon, native installer. Adding unified-log evidence of how tccd identifies the binary on macOS 27, plus confirmation that ClaudeCode.app ships as a hard link to the versioned binary but is never executed.
Symptom: about 3 min after the 2.1.294 → 2.1.295 auto-update, no prompt appeared, only a notification:
Data Access Blocked — "2.1.295" tried to access your data from other apps and was blocked.
1. tccd sees the bundle ID but keys the decision on the path, and auto-denies
log show --predicate 'subsystem == "com.apple.TCC"' around the event (paths shortened):
AUTHREQ_ATTRIBUTION: responsible={identifier=com.anthropic.claude-code, responsible_path=~/.local/share/claude/versions/2.1.295}, accessing={identifier=com.anthropic.claude-code, binary_path=~/.local/share/claude/versions/2.1.295}, requesting={identifier=com.apple.sandboxd}
AUTHREQ_SUBJECT: subject=~/.local/share/claude/versions/2.1.295
-[TCCDAccessIdentity staticCode]: static code for: identifier ~/.local/share/claude/versions/2.1.295, type: 1
AUTHREQ_CTX: function=TCCAccessRequest, service=kTCCServiceSystemPolicyAppDataDetailed, preflight=no
Service kTCCServiceSystemPolicyAppDataDetailed does not allow prompting for unentitled binaries; returning denied.
Publishing <TCCDEvent: type=Create, service=kTCCServiceSystemPolicyAppDataDetailed, identifier_type=Path, identifier=~/.local/share/claude/versions/2.1.295>
What this adds for macOS 27:
- The service is now
kTCCServiceSystemPolicyAppDataDetailed, not...AppDataas in earlier reports. - For a bare binary, no prompt is shown at all. tccd auto-denies, so users can't grant this even if they want to. "Allow" and "Don't Allow" aren't even offered.
sandboxdraises the request, so the CLI is touching another app's sandbox container.- A new path-identified record is created for every version.
2. The bundle is the same file, but the launcher bypasses it
$ ls -li ~/.local/share/claude/versions/2.1.295 ~/.local/share/claude/ClaudeCode.app/Contents/MacOS/claude
285952786 -rwxr-xr-x@ 2 239695888 Oct 8 16:49 …/ClaudeCode.app/Contents/MacOS/claude
285952786 -rwxr-xr-x@ 2 239695888 Oct 8 16:49 …/versions/2.1.295
$ /usr/libexec/PlistBuddy -c "Print :CFBundleIdentifier" ~/.local/share/claude/ClaudeCode.app/Contents/Info.plist
com.anthropic.claude-code
$ readlink ~/.local/bin/claude
~/.local/share/claude/versions/2.1.295
$ codesign -dv ~/.local/share/claude/versions/2.1.295
Identifier=com.anthropic.claude-code
CodeDirectory v=20500 flags=0x10000(runtime)
Info.plist=not bound
TeamIdentifier=Q6L2SF6YDW
ClaudeCode.app is present on this install, and its executable is the same inode as the versioned binary. But ~/.local/bin/claude points at the versions/ path, so TCC resolves the unbundled path (type: 1). Pointing the launcher at ClaudeCode.app/Contents/MacOS/claude would give TCC a stable bundle identity, though it may also need an Info.plist and the right entitlement to pass the "unentitled binaries" check.
3. Cadence
2.1.293 (Oct 7 15:25) → 2.1.294 (Oct 8 02:39) → 2.1.295 (Oct 8 16:49): three new path identities in about 25 h.
4. Side note on macOS 27.0.1
I couldn't produce the TCC.db table others posted. On this machine ~/Library/Application Support/com.apple.TCC/ returns No such file or directory, while /Library/Application Support/com.apple.TCC/ returns Operation not permitted.
Still happening on 2.1.308 — this makes the native install unusable for unattended setups.
My setup: a Mac mini running six Claude Code background sessions (claude --bg --remote-control), which I drive from my phone. Because each auto-update installs a new binary under ~/.local/share/claude/versions/
4 releases in 3 days (2.1.305 → 2.1.308), each one adding a new row in Privacy & Security › Files and Folders, plus a new set of prompts. Sessions started at different times run different versions side by side (I currently have 2.1.305, 2.1.306 and 2.1.308 running at once), so the prompts multiply. The prompts only show up on the Mac’s screen. When I’m remote, the sessions just stall until I can physically get to the machine. Granting access to ClaudeCode.app, including Full Disk Access, does nothing: the sessions run from the versioned path, not from the bundle.
The only workaround is disabling auto-updates, which means giving up fixes. That’s not acceptable for a paid tool whose selling point is running autonomously.
This has been reported at least ten times (#53703, anthropics/claude-code#66216, #70094, #74064, #90748, #94878, anthropics/claude-code#101084…) with no response from Anthropic. The fix is well understood: run the session process from the stable, signed ClaudeCode.app path (it already exists as a hard link) so TCC grants survive updates.
Please prioritize this, or at least acknowledge it and give a timeline.
Fresh evidence on 2.1.308 / macOS 27.0.1 (26A434), Apple Silicon, native installer, with background sessions (claude daemon / agent view). Below are four findings I haven't seen in this thread, followed by an index of the duplicate reports.
1. ClaudeCode.app lags behind the version that is actually running
$ readlink ~/.local/bin/claude
~/.local/share/claude/versions/2.1.308
$ ls -li ~/.local/share/claude/versions/* ~/.local/share/claude/ClaudeCode.app/Contents/MacOS/claude
9286508 -rwxr-xr-x@ 2 274428784 Oct 21 18:56 ClaudeCode.app/Contents/MacOS/claude
9174824 -rwxr-xr-x@ 1 272984176 Oct 20 23:24 versions/2.1.306
9286508 -rwxr-xr-x@ 2 274428784 Oct 21 18:56 versions/2.1.307
9391398 -rwxr-xr-x@ 1 274675680 Oct 22 00:39 versions/2.1.308
The bundle's executable is a hard link to 2.1.307, but the launcher and the daemon run 2.1.308. So the bundle was not re-linked on the 2.1.308 update on this machine, and "just point the launcher at ClaudeCode.app" would have run a stale version. The bundle has now been seen in three different states on three machines in this thread: matching the current version (koshiro), absent (ct-mahendra), and one version behind (here). Whatever the fix is, the executed bundle has to be updated atomically with the version switch.
2. The daemon self-restarts onto each new path, and orphans old-version workers
From ~/.claude/daemon.log:
[2026-10-21T23:14:02Z] [supervisor] binary at ~/.local/bin/claude changed (versions/2.1.306 → versions/2.1.307) — self-restarting for upgrade
[2026-10-22T04:39:26Z] [supervisor] binary at ~/.local/bin/claude changed (versions/2.1.307 → versions/2.1.308) — self-restarting for upgrade
That is two new TCC path identities 5.5 h apart. After the second restart, one 2.1.307 worker was reparented to launchd and is still alive next to the 2.1.308 workers:
PID PPID ARGS
2807 1 claude bg-pty-host ... -- ~/.local/share/claude/versions/2.1.307 --bg-spare ...
17096 8498 claude bg-pty-host ... -- ~/.local/share/claude/versions/2.1.308 --bg-spare ...
8498 1 ~/.local/bin/claude daemon run ... (daemon, 2.1.308)
So the "several versions running side by side" that @freedomanonyme reported happens on a single machine with nothing unusual going on.
3. tccd keys native installs by path, which contradicts the agent-view docs
tccd's reply dump on this machine (log show --info --predicate 'process == "tccd"') contains:
kTCCServiceSystemPolicyAppDataDetailed
auth_value=3
TCCD_MSG_IDENTITY_VERIFIER_CODE_REQUIREMENT_KEY="identifier "com.anthropic.claude-code" and anchor apple generic and ... leaf[subject.OU] = Q6L2SF6YDW"
TCCD_MSG_IDENTITY_ID_KEY="~/.local/share/claude/versions/2.1.282"
TCCD_MSG_IDENTITY_TYPE_KEY=1
last_modified=1790354897 # 2026-09-25
tccd has the stable code requirement in the same record, but the identity is still type 1 (path). That path points at a binary deleted weeks ago; only 2.1.306–2.1.308 remain on disk.
The agent view docs note added via #63037 says that "with the native installer the Privacy & Security entry appears as 'Claude Code' and the grant persists across updates". That does not match this machine or the reports indexed below.
The current binary is still unbundled:
$ codesign -dv ~/.local/share/claude/versions/2.1.308
Identifier=com.anthropic.claude-code
CodeDirectory v=20500 flags=0x10000(runtime)
Info.plist=not bound
TeamIdentifier=Q6L2SF6YDW
#61314 ("background agent binary lacks bundle ID, causing TCC permission churn on upgrades") was closed on 2026-05-27 with "Addressed by a merged fix. Please reopen with a fresh repro if you still see this on a current version." On 2.1.308 the background-agent binary is still a bare Mach-O with no bound Info.plist, and tccd still holds path-typed records for native-install paths.
4. Who gets the grant depends on how the daemon was launched
My daemon was started from a terminal, and tccd attributes its workers to that terminal app:
AttributionChain: responsible={identifier=dev.commandline.waveterm, responsible_path=/Applications/Wave.app/Contents/MacOS/Wave, binary_path=~/.local/share/claude/versions/2.1.308},
accessing={identifier=com.anthropic.claude-code, binary_path=~/.local/share/claude/versions/2.1.308}
So in this setup the grants land on the terminal. When Claude Code is its own responsible process, for example under launchd, remote-control or scheduled tasks, I'd expect the versioned path to become the identity and produce the "2.1.xxx would like to access…" prompts. I haven't verified that case. If it holds, it would explain why some reports name the terminal and others name a version number, and why the bug is hard to reproduce from an interactive shell.
5. Index of reports with this root cause
I went through the tracker. I count ~85 issues since Sep 2025 with the same root cause: a bare Mach-O at versions/<version> (or the Desktop app's versioned embedded CLI), so TCC identifies it by path and every update creates a new client. Most were closed by the stale bot or bot-closed as duplicates of each other, which forms a chain #30608 / #34655 / #12433 → #49282 → #63671 / #63130 / #86706 / #74068. None of them has a maintainer acknowledging the root cause.
Still open (28): #12433 #49282 #63130 #67045 #74068 #80899 #86706 #87144 #88576 #89722 #90267 #90412 #90748 #90787 #91854 #93532 #93929 #94683 #94878 #97338 #98208 #98422 #99408 #99838 #100479 #101084 #103681 #104167
Closed (57), mostly by the stale bot or bot-dedup: #7492 #27322 #30608 #33202 #34655 #36675 #38722 #41101 #41297 #42546 #43562 #43583 #46859 #48311 #49613 #51800 #51911 #53703 #54016 #54691 #57679 #58713 #59104 #59608 #60211 #60344 #60978 #61314 #62129 #62240 #63667 #65564 #66216 #69351 #70094 #70430 #72445 #72550 #74028 #74064 #74234 #74831 #76080 #76246 #76615 #77081 #77623 #77734 #79053 #79674 #79867 #84948 #85586 #86091 #86715 #88805 #100256
TCC services hit across these reports include Files & Folders (Desktop/Documents/Downloads), Network Volumes, Media Library, App Data / "Data Access Blocked", Full Disk Access, App Management, Automation, Accessibility, Screen Recording, Local Network and EventKit.
Ask
- Please acknowledge this issue as the canonical one, and keep the stale bot off it and its open duplicates until it's fixed. At least one report (#74028) says it was re-filed only because the bot closed the earlier ones.
- Correct the agent-view docs statement until the fix ships.
- For the fix, the options in the earlier comment still stand: bind an Info.plist into the Mach-O, execute from a stable path updated in place, or execute the bundle. Per point 1, whichever path is executed has to be the one the updater actually replaces.
2.1.310 same issue, guys come on where is the /loop? didnt claude writing 90% of the claude code then fix yourself bro i hate my claude saying boss we dont have permission after every update
Another data point, for background sessions and Screen Recording (macOS 27.0.1, native installer, Claude Code 2.1.311):
- Background sessions run under
claude bg-pty-host, which launchd starts from~/.local/share/claude/versions/2.1.311.codesign -dvon that binary givesIdentifier=com.anthropic.claude-code, Developer ID teamQ6L2SF6YDW, andInfo.plist=not bound. - TCC records that client by its path.
TCC.dbhas separatekTCCServiceScreenCapturegrants forversions/2.1.261andversions/2.1.300, and none for 2.1.311. After the update,screencapturefrom a background session fails with "could not create image from rect", and no prompt appears. - Interactive sessions in a terminal app aren't affected, because TCC attributes them to the terminal's own grant.
A stable executable path for the process macOS attributes the grant to would keep grants across updates.
Still happening on 2.1.316 (macOS 26.5, Apple Silicon, native installer).
One data point that might help with the fix: running from a fixed path is enough on its own. Since 2 June I’ve run Claude Code from a plain copy of the current binary at ~/.local/bin/claude-current, refreshed by a small launchd job (WatchPaths on versions/ and ~/.local/bin) that does cp + mv over the same path whenever the claude symlink moves. Same file path, new contents on every update.
That copy has been replaced 123 times since then (2.1.161 to 2.1.316). TCC.db has one set of 8 path keyed grants for ~/.local/bin/claude-current, all from June and July, and none of them have prompted again. Over the same period, the few times the versioned binary ran directly, it got its own new rows again (for example versions/2.1.288 in October).
So replacing one stable executable in place on update, as suggested above, seems to be all TCC needs. No bundle or Info.plist change was required for the grants to persist here.
Still happening on 2.1.318 (macOS 27.0): "2.1.318" wants to access files managed by "iCloud Drive". It comes from the claude agents background daemon, which looks like a gap in the ClaudeCode.app stable-path fix.
My interactive sessions run from a fixed-path copy of the binary (~/.local/bin/claude-current, refreshed by a LaunchAgent after each update), and since setting that up they no longer trigger prompts. The prompt above came from the daemon's process tree. What I see:
- The daemon restarts itself from the versioned path after every update. From
~/.claude/daemon.log:
Its parent is launchd (PPID 1), so it is its own TCC responsible process, and its executable is[2026-11-04T00:00:24.376Z] [supervisor] binary at ~/.local/bin/claude changed (~/.local/share/claude/versions/2.1.317 → ~/.local/share/claude/versions/2.1.318) — self-restarting for upgradeversions/2.1.318. - The warm spare hosts also run from the versioned path and do not re-exec through
ClaudeCode.app. They show up inpsasclaude bg-pty-host … -- ~/.local/share/claude/versions/2.1.318 --bg-spare …, with theirbg-sparechildren. Only hosts for sessions spawned directly (--resume,--session-id) run as~/.local/share/claude/ClaudeCode.app/Contents/MacOS/claude --bg-pty-host …, which matches themacDisclaimResponsibilityre-exec guarded byCLAUDE_BG_TCC_DISCLAIMED. - The prompt appeared at 12:33:11 local time. The daemon log shows
bg claimed-spare … (slash),bg spawned 9d20dbf5 (spare)andbg spare spawned host pid=…at 11:32:45Z, i.e. 26 seconds earlier. No other Claude process started in that window.
So any session that claims a spare, and the daemon itself, still has a version-named TCC identity. Applying the same ClaudeCode.app re-exec with disclaimed responsibility to the daemon and to spare hosts would probably close the gap. I could not find a user-facing setting that moves either one to a stable path.
Following up on the comment above: routing the daemon and spare hosts through ClaudeCode.app would not close the gap on its own. The bundle executable is a hard link to versions/<ver>, and macOS reports a hardlinked binary under whichever name was looked up last, for every process running it. Any claude launch through ~/.local/bin/claude flips it back to versions/<ver>. I reproduced this on 2.1.318: a host that did re-exec through the bundle was credited to versions/2.1.318 within half a second. Reproduction and details: #74068 (comment).
Your fixed-path copy works because it is a separate file with one name. The same fix applied upstream would make the bundle executable a real copy (APFS clonefile, no extra disk space), checked by version or cdhash rather than by inode.
Filed this through /feedback as well, in case it helps staff connect the two: feedback ID 81e72ffa-7e90-49ff-a18d-0637eb34a586 (Claude Code 2.1.311, stable channel, macOS 27, Apple Silicon).
Same request as above, briefly:
- Run every process from one stable path, including
claude daemon,bg-pty-hostand thebg-sparesessions. These still run fromversions/<ver>on 2.1.311. - Make that executable a real file (e.g. an APFS clone refreshed on update), not a hard link, so the name macOS sees stays the same.
- Bind an Info.plist so TCC keys on the bundle identifier.
Status check on my side: no release note from 2.1.312 to 2.1.327 mentions this, and the thread still has no reply from Anthropic.