anomalyco / anomalyco/opencode
[BUG]: Homebrew upgrades create stale macOS Full Disk Access entries
@nexxeln is already working on this.
Since Sep 7, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
On macOS, upgrading the Homebrew-installed opencode CLI creates another stale opencode entry under System Settings > Privacy & Security > Full Disk Access. After several upgrades, multiple old entries remain.
Current installation and signing details:
$ which -a opencode
/opt/homebrew/bin/opencode
$ ls -l "$(which opencode)"
/opt/homebrew/bin/opencode -> ../Cellar/opencode/1.18.29/bin/opencode
$ codesign -dv --verbose=4 "$(which opencode)" 2>&1
Executable=/opt/homebrew/Cellar/opencode/1.18.29/bin/opencode
Identifier=a.out
CDHash=55ac547916d866108f4e9831e58a2263da6bb2dc
Signature=adhoc
TeamIdentifier=not set
Homebrew changes the real Cellar/opencode/<version>/bin/opencode path on every upgrade. Without a stable code-signing identity, macOS TCC appears to treat each upgraded binary as a different executable and leaves the previous Full Disk Access entries behind.
Expected: upgrades preserve a stable macOS code identity so TCC recognizes the new binary as the same application and does not accumulate stale authorization entries.
Possibly related to #46313, which reports macOS release binaries failing code-sign verification.
Plugins
None relevant.
OpenCode version
1.18.29
Steps to reproduce
- Install
opencodewith Homebrew on macOS. - Grant the CLI Full Disk Access.
- Upgrade
opencodethrough Homebrew several times. - Open System Settings > Privacy & Security > Full Disk Access.
- Observe multiple stale
opencodeentries from previous versions.
Screenshot and/or share link
Operating System
macOS 26.6.2 (arm64)
Terminal
zsh
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.