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.
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.
Suggest gpt-6.1-terra for Main and gpt-6-luna for Utility through Codex
provider metadata, while preserving explicit model lists and the live
account catalog.
Change the final onboarding action to Continue and close the wizard without
creating another chat. The existing model-gate event resumes the held message
in its original chat. Update the onboarding guide and ready-screen capture.
Add regressions for recommended and explicit model selection, configured
catalog order, held-message dispatch and completion without a pending chat.
Validation: 244 focused Python tests, three onboarding Node tests and the
OAuth reconnect check passed. Verified on the dedicated instance that
Continue closes the wizard and preserves the selected chat and chat list.
Keep reasoning effort, reasoning summary, and answer verbosity editable below the Codex quota before and after connection, including reconnects and selection of another provider. Reuse the existing controls and save behavior.
Use theme text and muted-text colors for provider details to prevent the connected-state green from leaking into settings. Document the visibility contract and cover connection, selection, and reconnect states in the existing JavaScript regression.
Validation: 221 OAuth and plugin-scan tests passed, along with the JavaScript regression and git diff --check. Verified the connected Codex panel and corrected colors in the live Web UI at localhost:32081.
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.
Reuse the shared button-feedback helper to briefly show a green checkmark after copying a sign-in code, while preserving existing notifications and automatic reset.
Cover successful copies, clipboard failures, and missing codes in the reconnect regression test; update plugin documentation.
Validation: 218 OAuth tests and 3 plugin scan tests passed, along with the Node reconnect test and a live UI check of clipboard contents, success styling, and icon reset.
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.
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.
Handle rejected Codex refresh tokens with a clear authentication error and
an actionable toast that opens OAuth settings. Stop retrying marked tokens
and offer Reconnect without requiring a manual disconnect; successful
sign-in replaces credentials while cancellation preserves model choices.
Display device challenge codes in a selectable box with an accessible copy
button and success/error feedback. Keep recovery behavior inside _oauth
and document the connection lifecycle.
Validation: 221 Python checks and the Node frontend regression passed.
Verified recovery navigation, reconnect cancellation, clipboard copying,
keyboard access, and desktop/mobile layouts at localhost:32081 using
simulated OAuth responses.
request_codex opened a new TCP and TLS connection to the Codex
backend for every main and utility model call. Send through a
module-level keep-alive requests.Session with cookie persistence
disabled, so each request still carries only its explicit headers.
Point the request-header test stub at the session and document the
contract.
Validation: 246 OAuth, model-config, onboarding and plugin-contract
tests passed with this change alone on the original base in the
Docker framework runtime. Earlier container measurements showed
connection reuse saving 50-80 ms per chatgpt.com request.
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.
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.
Translate reported Responses token counts and details into Chat usage fields.
Honor include_usage with a terminal empty-choices chunk, and request it by
default for Codex main-model Chat calls while preserving explicit options.
Forward failures, retain incomplete finish reasons, reject premature stream
termination and close the upstream stream on completion or cancellation.
Keep Responses requests and proxy access controls unchanged.
Verified 211 broader tests plus 17 final focused Chat checks. A Docker framework
bridge probe preserved captured Codex usage exactly through Context window
accounting; the restarted runtime is healthy. No preset was changed to test
the Codex Chat compatibility endpoint.
Keep session and thread IDs stable per chat and agent, preserve caller metadata through both proxy routes, and derive bounded default cache keys from caller-supplied sessions without replacing explicit keys.
Default Codex to local Responses state to avoid the rejected store=true probe while retaining native tool calls.
Validation: 274 focused tests passed in a clean checkout. Live WebUI checks showed 64-65% completed-turn cache hits and four successful upstream requests for two terminal-and-response turns.
Route OpenAI, Azure, GitHub Copilot, and GitHub Copilot OAuth explicitly through Chat Completions. Keep Codex/ChatGPT and xAI Grok OAuth explicitly on Responses.
Make Chat Completions the LiteLLM transport default for omitted, blank, default, auto, or unknown modes so new providers avoid unsupported Responses endpoints unless they explicitly opt in.
Render API keys, access tokens, client secrets, and similar non-password credentials as masked text inputs so browsers do not offer to save them as passwords. Preserve readable placeholders and reveal controls while leaving genuine password fields unchanged.
Preserve completed SSE output items when the final Codex response envelope omits them so non-streaming utility calls retain their generated text. Add focused regression coverage for the native output-item path.
Keep generic Responses tool schemas provider-neutral and apply the strict text-only response contract at the Codex OAuth request boundary.
Preserve tool-policy filtering by tightening only an already-advertised response tool, with focused regression coverage for both generic and Codex paths.
Introduce the x-icon custom element and migrate first-party WebUI and bundled plugin markup while retaining legacy Material icon compatibility. Defer icon-font readiness until the splash-installed document is parsed so Firefox does not leave icons transparent. Centralize chat message collapse handling, avoid false Show More controls on short user messages, and align grouped-message pagination styling. Update DOX and add regression coverage for the icon and collapse behavior.
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.
Normalize the legacy reasoning_effort field at the Codex Responses proxy boundary so it cannot reach the upstream endpoint in an unsupported shape.
Preserve an explicit native reasoning object and cover alias conversion and precedence with regression tests.
Simplify provider cards and model-slot copy, align model pickers with the main model configuration UI, and infer a sole connected OAuth provider only when it does not silently replace a different saved provider.\n\nAdd focused static coverage for the updated picker and provider-default behavior.
Ensure the Codex OAuth Responses proxy forwards list-shaped input for empty continuation turns while preserving string prompts as user input items. Add regression coverage for the gpt-5.5 continuation case and document the proxy contract.
Send current Codex client metadata and compatibility headers on proxied Responses requests so ChatGPT OAuth calls pass upstream call checks.
Return Codex model slugs as the primary list while preserving model metadata for descriptions in the OAuth settings UI.
Render the OAuth model provider select as unchosen when the stored model slot still points at a non-connected or non-OAuth provider. This avoids showing Codex/ChatGPT as selected while the model input remains disabled, keeping account-backed model selection explicit.
Stop seeding stale Codex OAuth model metadata so connected accounts use the upstream /models response instead of the retired gpt-5.2-codex default.
Use gpt-5.5 as the Codex proxy fallback model, omit the fake legacy client version when Codex CLI is unavailable, and remove the stale Copilot fallback entry.
Add focused OAuth regressions for the current default model, upstream model-list behavior, and Copilot fallback ordering.
Stop auto-populating Main and Utility models when an OAuth account is already connected or newly connected.
Add a connected-account gate state that routes users to model configuration instead of choosing provider defaults silently.
Update OAuth notifications, chat gate copy, DOX contracts, and focused static regressions for the explicit model-selection flow.
Move missing-model setup out of the welcome screen and into an in-thread gate that preserves the pending prompt, survives refresh, and auto-dispatches after a usable model is configured.
Reuse existing onboarding, OAuth account settings, and advanced model configuration surfaces instead of duplicating provider forms. Connected OAuth accounts can now populate Main and Utility defaults when no chat model is configured.
Update model readiness checks, focused static regressions, and DOX contracts for the new deferred setup flow.
Rename the Gemini OAuth provider surface to Google Cloud Gemini so the OAuth provider list points users toward the required Google Cloud project setup.
Align model-provider metadata, usage-plan copy, README wording, and static assertions while keeping the Gemini API OAuth mechanics unchanged.
Update the OAuth settings poller to wait for the provider interval, carry slow_down interval updates forward, and respect provider expiration times so GitHub Copilot device-code auth can complete after browser authorization.
Dispatch the legacy device-login endpoint by provider_id and add regressions plus DOX guidance for provider-aware device polling.
Move device-code, manual callback, and setup controls into the provider row that started the OAuth flow so pending state stays anchored to its provider.
Add static coverage and plugin DOX guidance for inline provider detail rendering.
Remove the static OAuth API-key placeholder from provider defaults and gate the runtime dummy key on provider connection status.
This keeps unconnected OAuth providers blank in API-key surfaces while preserving the local proxy shim for connected account-backed providers. Update OAuth docs and regressions for the new contract.
Add connected-account provider dropdowns for Main and Utility model slots in OAuth settings. Keep model search and selection scoped to each slot's chosen provider so multiple connected OAuth accounts can be used independently.
Add a shared provider-registry-backed OAuth status summary for the status API and discovery cards. Redesign the OAuth settings modal around provider rows, inline usage, provider details, and account-backed model slots while keeping legacy Codex compatibility fields intact.
Convert Chat Completions image_url content parts into Responses API input_image parts instead of normalizing multimodal messages down to text.
Keep text-only content lists as plain text and add OAuth bridge regression tests for image passthrough.
Add Main and Utility Codex model selectors to the OAuth plugin config and persist them through the existing model config API.
Clean up the OAuth config layout by removing the redundant Check Models action, moving the available model list above Advanced, softening borders, and removing repeated account labels.
Show account quota usage bars on the welcome dashboard Codex card and add static coverage for the selector, model list, and quota UI.