Compare commits

...

2 Commits

Author SHA1 Message Date
jif-oai
2d3e129acb Update gpt_5_codex_prompt.md 2025-10-28 12:46:43 +00:00
jif-oai
18c9101e6f chore: update prompt to use -f for ZSH 2025-10-28 12:43:07 +00:00
3 changed files with 7 additions and 2 deletions

View File

@@ -26,6 +26,11 @@ When using the planning tool:
- Do not make single-step plans.
- When you made a plan, update it after having performed one of the sub-tasks that you shared on the plan.
## Shells
You can use shells in various different way. In general, depending of the shell you're using, follow those rules:
### Zsh
* Always use `-f` to prevent reading the startup files if you are in a sandboxed environment.
## Codex CLI harness, sandboxing, and approvals
The Codex CLI harness supports several different configurations for sandboxing and escalation approvals that the user can choose from.

View File

@@ -254,6 +254,7 @@ pub(crate) fn is_likely_sandbox_denied(
// 2: misuse of shell builtins
// 126: permission denied
// 127: command not found
const QUICK_REJECT_EXIT_CODES: [i32; 3] = [2, 126, 127];
const SANDBOX_DENIED_KEYWORDS: [&str; 7] = [
"operation not permitted",
"permission denied",
@@ -281,7 +282,6 @@ pub(crate) fn is_likely_sandbox_denied(
return true;
}
const QUICK_REJECT_EXIT_CODES: [i32; 3] = [2, 126, 127];
if QUICK_REJECT_EXIT_CODES.contains(&exec_output.exit_code) {
return false;
}

View File

@@ -29,7 +29,7 @@ pub struct ToolInvocation {
pub payload: ToolPayload,
}
#[derive(Clone)]
#[derive(Clone, Debug)]
pub enum ToolPayload {
Function {
arguments: String,