Files
codex/codex-rs/windows-sandbox-rs
zm-oai bc75380d6a Explain Windows sandbox logon policy failures (#62593)
## Why

When Windows security policy blocks the sandbox account from signing in,
commands cannot start. The runner error previously gave users only the
failing API call and the numeric error code.

## What changed

For `ERROR_LOGON_TYPE_NOT_GRANTED` (1385), explain the policy denial and
point users to the “Allow log on locally” and “Deny log on locally” settings.
Advise users on managed PCs to contact their administrator.

## Testing

Add a regression test that checks the error explanation and verifies that
the denial does not trigger a sandbox credential refresh.

GitOrigin-RevId: b638bf3d103dc4aec72f2f9c13cb2c8825594e96
2026-11-19 21:22:42 +00:00
..