mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
adjust seatbelt to allow write into specific dirs under user home (#289)
This commit is contained in:
@@ -145,9 +145,11 @@ export async function start_sandbox(sandbox: string) {
|
||||
process.env.SEATBELT_PROFILE ??= 'minimal';
|
||||
const args = [
|
||||
'-D',
|
||||
`TARGET_DIR=${process.cwd()}`,
|
||||
`TARGET_DIR=${fs.realpathSync(process.cwd())}`,
|
||||
'-D',
|
||||
`TMP_DIR=${fs.realpathSync(os.tmpdir())}`,
|
||||
'-D',
|
||||
`HOME_DIR=${fs.realpathSync(os.homedir())}`,
|
||||
'-f',
|
||||
new URL(
|
||||
`sandbox-macos-${process.env.SEATBELT_PROFILE}.sb`,
|
||||
|
||||
Reference in New Issue
Block a user