Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions codex-rs/core/gpt_5_codex_prompt.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion codex-rs/core/src/exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion codex-rs/core/src/tools/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub struct ToolInvocation {
pub payload: ToolPayload,
}

#[derive(Clone)]
#[derive(Clone, Debug)]
pub enum ToolPayload {
Function {
arguments: String,
Expand Down
Loading