polydev-ai 1.10.20 → 1.10.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cliManager.js +5 -3
- package/package.json +1 -1
package/lib/cliManager.js
CHANGED
|
@@ -1136,11 +1136,13 @@ This is a known issue with @google/gemini-cli@0.3.4 and older Node.js versions.`
|
|
|
1136
1136
|
console.log(`[CLI Debug] Codex using model: ${model}`);
|
|
1137
1137
|
}
|
|
1138
1138
|
|
|
1139
|
-
//
|
|
1140
|
-
//
|
|
1139
|
+
// Use read-only sandbox to prevent agentic file/exec operations
|
|
1140
|
+
// --full-auto forces workspace-write (bad), so use -a never + --sandbox read-only instead
|
|
1141
|
+
// This makes Codex just answer the question without running commands or writing files
|
|
1141
1142
|
const directPrompt = `Answer this question directly from your knowledge. Do not execute any commands, read any files, or use any tools. Provide a concise, expert response.\n\n${prompt}`;
|
|
1142
1143
|
args.push(
|
|
1143
|
-
'
|
|
1144
|
+
'-a', 'never',
|
|
1145
|
+
'--sandbox', 'read-only',
|
|
1144
1146
|
'--ephemeral',
|
|
1145
1147
|
'--skip-git-repo-check',
|
|
1146
1148
|
'--cd',
|