Files
codex/codex-rs
radai 3ea7067d07 force reauth on workspace-restricted ChatGPT 401
## Summary

- detect workspace-restricted ChatGPT 401 responses before normal auth recovery
- clear active Codex-backend auth state and return an Unauthorized reauth error
- leave generic 401s, malformed bodies, and API-key auth on existing paths

## Testing

- `cargo test -p codex-core workspace_restricted --lib`
- `cargo test -p codex-core generic_or_malformed_401_uses_existing_recovery_path --lib`
- `cargo fmt`
- `git diff --check`
2026-06-23 13:48:27 -07:00
..
2026-06-23 15:25:28 +01:00