Commit Graph
11 Commits
Author SHA1 Message Date
Alessandro Frau 2ced8b38a6 Require authentication for OAuth model proxies
Replace loopback trust with an internal process credential supplied automatically to local account-model calls. Keep configured external proxy tokens and deny tokenless requests from every source address.

Finalize local proxy credentials after model defaults are merged so legacy stored keys, inline keys, additional parameters and auth headers work without changing saved settings or account connections. Limit replacement to this process's loopback WebUI port and provider proxy path, preserving explicit credentials for other endpoints.

Keep the internal credential in the stable framework runtime module so plugin reloads do not invalidate existing model clients. No saved credential or configuration migration is required.

Isolate proxy tests from saved accounts and plugin toggles. Cover all account providers, disconnected state, custom ports, external endpoint credentials, public hostnames, forwarded headers, OAuth callback accessibility and real SDK HTTP streaming. Document the intentional requirement for external clients that previously relied on tokenless loopback trust.

Validation: 643 focused framework tests passed with 3 expected failures for two pre-existing backup/A2A issues, plus 52 isolated host checks and the OAuth UI regression. A live Codex Responses call using the existing account after plugin reload returned OK; saved credentials and configuration remained byte-for-byte unchanged.
2026-11-16 19:11:08 +01:00
Alessandro b5652a8c11 chore(oauth): bump Codex client version to 0.166.0
Update the default Codex client version from 0.165.0 to 0.166.0 for
upstream request headers and model catalog discovery. Keep the OAuth
plugin contract in sync; saved version overrides retain precedence.

Validation: 222 OAuth and plugin scan tests passed in the a0 framework
environment. Confirmed the bundled default in the live container;
git diff --check passed. Live upstream requests were not tested.
2026-11-01 06:55:59 +01:00
Alessandro 785ef77f05 chore(oauth): bump Codex client version to 0.165.0
Update the default Codex client version from 0.160.1 to 0.165.0 for upstream request headers and model catalog discovery. Keep the OAuth plugin contract in sync; saved version overrides retain precedence.

Validation: 221 OAuth and plugin scan tests passed in the a0 framework environment; git diff --check passed.
2026-10-28 21:05:35 +01:00
Alessandro e3269ed6d1 chore(oauth): pin Codex client version to 0.160.1
Update the default Codex client version from 0.159.2 to 0.160.1 for upstream request headers and model catalog discovery. Document explicit pinning for each adopted version while preserving saved settings overrides.

Validation: 90 tests passed across tests/test_oauth_codex.py and tests/test_plugin_scan_prompt.py; git diff --check passed.
2026-10-07 13:08:57 +02:00
Alessandro af74550409 fix(oauth): pin Codex client version to 0.159.2
Update the bundled Codex version used for upstream request headers and model discovery from 0.155.1 to 0.159.2.

Clarify that blank version overrides probe the installed CLI and do not discover new releases. Saved settings continue to take precedence.

Validation: 221 OAuth and plugin scan tests passed. The live runtime resolved 0.159.2 after updating its saved override, and model discovery returned 11 models.
2026-09-30 16:18:38 +02:00
Alessandro 4073c1d61b Update Codex version and close OAuth upstream streams
Pin the default Codex client version to 0.155.1 for upstream request
headers and model discovery.

Close upstream SSE responses when the Flask response closes, including
unread responses, cancellation, completion, and read errors. Apply cleanup
in the shared OAuth streaming helper and document its lifecycle contract.

Add regression coverage for all four closure paths, update the Copilot
streaming test stub, and isolate provider metadata tests from user config.

Validation: 275 OAuth, Responses, history, and plugin-scan tests passed;
all four cleanup cases also passed in the live framework runtime. Live
synthetic repeated requests reused 3,840 of 4,624 input tokens.
2026-09-23 16:13:22 +02:00
Alessandro c9ab7c5f17 Set the tested Codex client version by default
Ship 0.153.3 in the OAuth plugin defaults so new configurations can discover Codex models without an installed CLI. Preserve existing saved settings and defer the Auto resolver redesign to v2.13.

Verified 71 Codex tests and live discovery of 10 models with CLI invocation disabled.
2026-09-07 13:47:54 +02:00
Alessandro 4884e26a15 Add Codex response defaults to OAuth settings
Expose reasoning effort, reasoning summary, and answer verbosity in the Codex OAuth provider card, defaulting effort to high.\n\nNormalize provider settings and apply them to Responses requests without overriding explicit request values.
2026-07-28 16:46:38 +02:00
Alessandro e6885e6f7b Add OAuth provider registry and Gemini API OAuth 2026-06-01 14:55:08 +02:00
Cooper Gamble 2d5f7b89ec Harden Codex OAuth refresh token ownership 2026-05-29 11:10:16 +00:00
Alessandro f67564a8ae Add Codex/ChatGPT account OAuth provider
Create a generic OAuth Connections plugin with Codex/ChatGPT Account as the first provider, using OpenAI's device-code flow to persist Codex-compatible account tokens.

Expose a loopback OpenAI-compatible wrapper for models, responses, and chat completions, and point LiteLLM at the container-local Agent Zero origin.

Add a dummy API-key extension and focused tests so the account-backed provider appears configured without requiring a user-entered key.

docs: add Codex plan OAuth callout

Highlight that Agent Zero can use an existing OpenAI Codex plan through the new OAuth flow.

Add the account-backed LLM plans image and surface the section from the README navigation, while pointing toward future Gemini CLI and Claude Code integrations.

Handle Codex account SSE chat chunks

Teach the Codex/ChatGPT account bridge to extract text from OpenAI-style SSE chat completion deltas and fall back to a normal output_text response when upstream only streams chunks.

Strip user-supplied stream kwargs before LiteLLM calls so Agent Zero owns streaming mode and custom parameters cannot pass stream twice.

Add targeted tests for streamed delta extraction and reconstructed responses.

update README.md with LLM plans mention
2026-04-28 16:14:53 +02:00