v1.4.442

danielmiessler/Fabricv1.4.442Mar 26, 2026by github-actions[bot]

AI Summary

The Codex client module has been refactored to separate OAuth logic, resulting in cleaner code and improved maintainability.

Key Highlights

  • Extracted all OAuth and authentication logic into a dedicated module.
  • Removed dead code including JWT parsing utilities and unused OAuth types.
  • Improved test coverage for the client module with new error mapping tests.

Full Release Notes

## Changes

### PR [#2075](https://github.com/danielmiessler/Fabric/pull/2075) by [ksylvan](https://github.com/ksylvan) and [mikaelpr](https://github.com/mikaelpr): refactor: extract OAuth and auth logic from Codex client module

- Refactored the Codex client module by extracting all OAuth and authentication logic into a dedicated module, improving separation of concerns.
- Removed the OAuth flow, PKCE handling, and token refresh logic from `codex.go`, streamlining the client's core responsibilities.
- Removed the auth transport round-trip retry logic, simplifying the HTTP transport layer.
- Removed JWT parsing and token expiry utilities, along with unused OAuth types and helper structs, reducing dead code in the package.
- Added a test for `SendStream` HTTP error mapping and channel close behavior, improving test coverage for the client module.