Skip to content

chore: add Codex CLI detection to ai-safety check#28159

Merged
aqrln merged 1 commit intoprisma:mainfrom
ryanzen9:chore/add-codex-detection
Sep 29, 2025
Merged

chore: add Codex CLI detection to ai-safety check#28159
aqrln merged 1 commit intoprisma:mainfrom
ryanzen9:chore/add-codex-detection

Conversation

@ryanzen9
Copy link
Copy Markdown
Contributor

This PR adds detection logic for Codex CLI via CODEX_SANDBOX environment variable
to aiAgentConfirmationCheckpoint(), ensuring dangerous Prisma operations are
not executed by Codex without explicit user consent.

Detected variable:

  • CODEX_SANDBOX (present when running in Codex CLI sandbox mode)

@ryanzen9
Copy link
Copy Markdown
Contributor Author

Hello, it looks like the CI build failed due to a network timeout unrelated to the code. Would someone be able to re-run the job? Thank you!

@jkomyno
Copy link
Copy Markdown
Contributor

jkomyno commented Sep 29, 2025

Hello, it looks like the CI build failed due to a network timeout unrelated to the code. Would someone be able to re-run the job? Thank you!

Hi! Sure, I have restarted the CI

Copy link
Copy Markdown
Member

@aqrln aqrln left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thank you!

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Sep 29, 2025
@aqrln aqrln added this to the 6.17.0 milestone Sep 29, 2025
@aqrln aqrln merged commit eeb25a4 into prisma:main Sep 29, 2025
780 of 788 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants