Commit Graph
4 Commits
Author SHA1 Message Date
Darryl Pentz e71b84b5c8 fix(codex-auth): let the sign-in callback bind somewhere a container can reach
`_start_callback_server` hardcodes 127.0.0.1. On a desktop install that is exactly
right — the browser finishing the flow is on the same machine. On a server install
it cannot work: a container publishes its port to the container's external
interface, and a listener on the container's own loopback never sees that traffic.
The redirect lands on a closed port, the flow times out after five minutes, and
ChatGPT sign-in is impossible for every containerized deployment, including the
project's own docker recipe.

The bind address is now read per flow from COWORKER_OAUTH_CALLBACK_HOST, defaulting
to 127.0.0.1, so nothing changes for desktop users. REDIRECT_URI is untouched: it
describes where the browser goes, not where we listen, so the registered redirect
stays valid and needs no re-registration.

An empty value falls back to loopback rather than becoming "listen everywhere" —
the one mistake here that would widen exposure silently.

Tests assert the bind address through the call rather than by binding for real: the
port is fixed at 1455, so a machine running the Codex CLI (its usual holder) or a
container publishing that port would otherwise fail them for unrelated reasons.
2026-09-04 21:19:05 +02:00
Rohit C Prasad 5c8a60e7ee Fix session auto-titling on plan-backed sessions
The plan backend 400s on max_output_tokens/temperature/top_p — strip them in the provider; autotitle failures now log at warning, not invisible debug.
2026-08-24 14:48:21 -07:00
Devika Verma 19561abeb6 Subscription catalog: add the 5.6 tiers (Sol/Terra/Luna); Sol becomes the recommended model 2026-08-21 16:10:51 -07:00
Devika Verma e4f7e53ebb Provider: ChatGPT-subscription sign-in (OAuth PKCE, tokens local-only)
Browser sign-in on the registered loopback port; tokens in the SecretStore profile.
Rides the Responses provider for conversion/streaming; refresh-on-expiry and on-401.
REST: signin (background + status poll), status, signout; oauth rows in providers list.
2026-08-21 15:18:45 -07:00