Skip to content

feat(macOS): disclaim tcc permissions for pty host process#321762

Draft
deepak1556 wants to merge 1 commit into
mainfrom
robo/disclaim_pty_host
Draft

feat(macOS): disclaim tcc permissions for pty host process#321762
deepak1556 wants to merge 1 commit into
mainfrom
robo/disclaim_pty_host

Conversation

@deepak1556

Copy link
Copy Markdown
Collaborator

Fixes #307364

@deepak1556 deepak1556 added this to the 1.126.0 milestone Jun 17, 2026
@deepak1556 deepak1556 self-assigned this Jun 17, 2026
Copilot AI review requested due to automatic review settings June 17, 2026 14:16

Copilot AI left a comment

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.

Pull request overview

This PR introduces a macOS-focused disclaim option for VS Code’s Electron UtilityProcess wrapper and enables it for the terminal pty host utility process, aiming to change how macOS attributes TCC permission prompts for that process.

Changes:

  • Added an optional disclaim flag to IUtilityProcessConfiguration.
  • Threaded disclaim through to electron.utilityProcess.fork(...).
  • Enabled disclaim: true when starting the pty host utility process.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/vs/platform/utilityProcess/electron-main/utilityProcess.ts Adds disclaim to the utility process configuration and forwards it into the Electron utilityProcess.fork options.
src/vs/platform/terminal/electron-main/electronPtyHostStarter.ts Sets disclaim: true for the pty host’s utility process startup configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

macOS: Child processes cannot access TCC-protected resources (Photos, Speech Recognition, Location, Contacts, etc.)

2 participants