Codex unusable for Laravel projects

Resolved 💬 4 comments Opened Aug 24, 2025 by larskoole Closed Nov 27, 2025

What version of Codex is running?

codex-cli 0.23.0

Which model were you using?

gpt-5 (any)

What platform is your computer?

Darwin 24.6.0 x86_64 i386

What steps can reproduce the bug?

// web.php

Route::put('/', function () { return 'works!'; });
// Default Pest v4 test

<?php

test('returns a successful response', function () {
    $response = $this->put('/');

    $response->assertStatus(200);
});

Then run php artisan test

What is the expected behavior?

Codex runs php artisan test.
Output should be the test passing.

What do you see instead?

The test ends up failing with a 419 error.
This indicates that the put it tried to do was missing a CSRF token.
But this shouldn't happen because the env key APP_ENV is testing which disables CSRF.

Its also talking about MacOS seatbelt, no clue what that means.

<img width="1679" height="428" alt="Image" src="https://github.com/user-attachments/assets/7a36fc5e-c72c-435a-b7b3-c8f4e05e1a4e" />

Additional information

It does work with Gemini CLI, Claude Code, and Junie.
It doesn't work with Codex CLI or Copilot in agent mode on PHPStorm.

My expectations are this just works out of the box but it cant even run my test suite.

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗