[ide-mode] Update sandbox detection logic to support macos seatbelt (#6005)

Co-authored-by: matt korwel <matt.korwel@gmail.com>
This commit is contained in:
christine betts 2025-08-11 21:09:57 +00:00 committed by GitHub
parent c0f5f6a5f6
commit 94b6199943
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 4 deletions

View File

@ -365,9 +365,6 @@ export class IdeClient {
function getIdeServerHost() {
const isInContainer =
fs.existsSync('/.dockerenv') ||
fs.existsSync('/run/.containerenv') ||
!!process.env.SANDBOX ||
!!process.env.container;
fs.existsSync('/.dockerenv') || fs.existsSync('/run/.containerenv');
return isInContainer ? 'host.docker.internal' : 'localhost';
}