mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
[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:
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user