The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 22:00 UTC
fix(desktop): grant camera and microphone entitlements to the signed macOS app (#22170)
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Theo Browne committed
Oct 20, 2026 at 00:02 UTC
b232fa9f8ad9485e46282aec6897f4ce2aa559a3
2 files changed
+14
scripts/build-desktop-artifact.test.ts
+2
@@ -2226,6 +2226,8 @@ it.layer(NodeServices.layer)("build-desktop-artifact", (it) => {
2226
assert.include(entitlements, "<string>webcredentials:clerk.example.com</string>");
2227
assert.include(entitlements, "<string>webcredentials:example.clerk.accounts.dev</string>");
2228
assert.include(entitlements, "<key>com.apple.security.cs.allow-jit</key>");
2229
+ assert.match(entitlements, /<key>com\.apple\.security\.device\.camera<\/key>\s*<true\/>/u);
2230
+ assert.match(entitlements, /<key>com\.apple\.security\.device\.audio-input<\/key>\s*<true\/>/u);
2231
assert.notInclude(entitlements, "keychain-access-groups");
2232
assert.notInclude(entitlements, "com.apple.developer.web-browser.public-key-credential");
2233
});
scripts/build-desktop-artifact.ts
+12
@@ -1406,6 +1406,14 @@ ${associatedDomains}
1406
<true/>
1407
<key>com.apple.security.cs.disable-library-validation</key>
1408
<true/>
1409
+ <!-- The hardened runtime denies camera and microphone to the app and every
1410
+ child process, with no prompt, unless the app claims these. Terminals
1411
+ and coding agents inherit the app's TCC identity, so without these a
1412
+ command like ffmpeg or imagesnap gets silent access-denied. -->
1413
+ <key>com.apple.security.device.camera</key>
1414
+ <true/>
1415
+ <key>com.apple.security.device.audio-input</key>
1416
+ <true/>
1417
</dict>
1418
</plist>
1419
`;
@@ -2883,6 +2891,10 @@ export const createBuildConfig = Effect.fn("createBuildConfig")(function* (
2891
"T3 Code connects to devices on your local network for remote environments and commands run by terminals and coding agents.",
2892
NSScreenCaptureUsageDescription:
2893
"T3 Code captures the active window when you use the window capture shortcut.",
2894
+ NSCameraUsageDescription:
2895
+ "T3 Code lets commands run by terminals and coding agents use the camera.",
2896
+ NSMicrophoneUsageDescription:
2897
+ "T3 Code lets commands run by terminals and coding agents use the microphone.",
2898
// macOS lists an app under Default web browser only when it opens web
2899
// pages as documents as well as http and https links (see protocols).
2900
CFBundleDocumentTypes: [