mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
fix user settings in sandbox broken in recent change (#885)
This commit is contained in:
@@ -356,7 +356,9 @@ export async function start_sandbox(sandbox: string) {
|
|||||||
// mount user settings directory inside container, after creating if missing
|
// mount user settings directory inside container, after creating if missing
|
||||||
// note user/home changes inside sandbox and we mount at BOTH paths for consistency
|
// note user/home changes inside sandbox and we mount at BOTH paths for consistency
|
||||||
const userSettingsDirOnHost = USER_SETTINGS_DIR;
|
const userSettingsDirOnHost = USER_SETTINGS_DIR;
|
||||||
const userSettingsDirInSandbox = getContainerPath(userSettingsDirOnHost);
|
const userSettingsDirInSandbox = getContainerPath(
|
||||||
|
`/home/node/${SETTINGS_DIRECTORY_NAME}`,
|
||||||
|
);
|
||||||
if (!fs.existsSync(userSettingsDirOnHost)) {
|
if (!fs.existsSync(userSettingsDirOnHost)) {
|
||||||
fs.mkdirSync(userSettingsDirOnHost);
|
fs.mkdirSync(userSettingsDirOnHost);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user