Commit Graph

8 Commits

Author SHA1 Message Date
Peter Steinberger
e7d5e7eb2b test: tighten oauth lock timeout assertion 2026-05-09 13:36:05 +01:00
Peter Steinberger
320d52a23e test: narrow oauth lock timeout coverage 2026-04-24 11:43:22 +01:00
Peter Steinberger
57326feb8d test: share oauth mock setup 2026-04-18 23:48:26 +01:00
Peter Steinberger
7bc3019691 test: share oauth workspace helpers 2026-04-18 23:32:28 +01:00
Peter Steinberger
e89e214516 test: share oauth test helpers 2026-04-18 22:46:49 +01:00
Peter Steinberger
93a6c93865 test: reuse oauth lock timeout setup 2026-04-18 20:57:17 +01:00
Peter Steinberger
aa73df571d perf: narrow auth test mocks 2026-04-18 16:23:00 +01:00
Val Alexander
f45bc09206 [codex] fix(auth): harden OAuth refresh and Codex CLI bootstrap flows (#68396)
* Harden OAuth refresh and Codex CLI bootstrap flows

- Treat near-expiry OAuth credentials as unusable for bootstrap and refresh
- Add clearer timeout and callback validation handling for OpenAI Codex OAuth
- Tighten file lock retry behavior for stale OAuth refresh contention

* fix(auth): address PR review threads

* fix(auth): adopt fresher imported refresh tokens

* test(auth): align oauth expiry fixtures with refresh margin

* fix(auth): tighten Codex OAuth bootstrap and local fallback

* Keep explicit local auth over CLI bootstrap

- Preserve existing non-OAuth local profiles during external CLI OAuth sync
- Add regression coverage for OpenAI Codex and generic external OAuth overlays

* fix(auth): distinguish oauth lock timeout sources

* fix(auth): reject cross-account external oauth bootstrap

* fix(auth): narrow refresh contention classification
2026-04-18 01:02:29 -05:00