Skip to content

Conversation

@tibo-openai
Copy link
Collaborator

@tibo-openai tibo-openai commented Jan 8, 2026

This PR reorders the sandbox-denied heuristic in codex-rs/core/src/exec.rs so quick-reject exit codes (2/126/127) short-circuit before keyword scanning.

This prevents normal shell errors like permission denied or command not found from being misclassified as sandbox denials, and it looks like a regression because git history shows the original quick-reject intent (Aug 3/Oct 9 commits) was to skip those exit codes before any keyword checks, but the Oct 20 tools workflow refactor moved the check after keyword matching without an intentional behavior change.

References:

@tibo-openai tibo-openai marked this pull request as ready for review January 8, 2026 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants