6 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
18266fbef3 Merge PR #1317 Codex client version discovery 2026-09-23 10:29:14 +08:00
ZJPex
cd7c720eb1 feat(codex): automatically discover client versions for model catalog refresh
Discover stable npm metadata during login and explicit refresh with account-scoped version fallback and cache isolation.

Guard 200 and 304 cache publication under the credential storage lock: unconditional publication previously let late responses recreate logged-out caches or overwrite newer login history.

Refs #1296
2026-09-08 18:33:02 +08:00
NoxsMedia
9e053f1298 fix(codex): normalize cached Luna reasoning levels 2026-09-02 02:00:14 +00:00
Bingxi Zhao (Frank)
9af5f890f4 fix(runtime): spell the server-side backend address as the IPv4 loopback everywhere
#784 fixed the launcher, but the same address is rendered on two other paths
that kept "localhost": the Docker entrypoint (render_environment) and the
last-resort default in web/proxy.ts. On a dual-stack host that name resolves
to ::1 first while uvicorn binds 0.0.0.0 (IPv4 only), so every rewritten
/api/* request fails to connect — the launcher and container paths are meant
to stay in sync, and after #784 they no longer did.

Also disambiguates the two same-named _optional_positive_int helpers added by
#774: catalog's drops junk from a live API response, contracts' rejects it as
cache corruption. Same name, opposite behaviour — the strict one is now
_require_optional_positive_int and says why it differs.
2026-08-06 19:30:49 +08:00
NoxsMedia
1f37e859b9 fix(codex): preserve context window metadata (#774) 2026-08-06 19:19:30 +08:00
TyrionH-is-coding
c3d1dd0b15 feat(llm): add first-party OpenAI Codex OAuth provider (#690)
Replaces the oauth_cli_kit indirection with DeepTutor's own PKCE loopback
sign-in, an account-scoped live model catalog, and a Settings card that exposes
only the OAuth surface. Credentials live in `<user-root>/private/openai-codex/`
with owner-only permissions, atomic writes, and a generation guard that stops a
late refresh from resurrecting a signed-out session; `~/.codex` is never read or
modified. A CLI path shares the same service.

A Codex token authorizes one person's ChatGPT plan, so credentials anchor to the
signing-in account's own root and the managed profile is marked `owner_bound`:
`redacted_model_access` drops it for every caller, and it is not offered as an
assignable model. Signing in publishes the profile but only activates it when no
LLM is configured yet, so it never repoints a deployment that already has one.

Also from review: reschedule the status poll so one dropped response cannot
strand the card on "waiting"; defer the catalog reload when the operator has
unsaved edits instead of discarding them; log the real cause behind the generic
provider error; stop promising a retry when the token refresh actually failed;
bind both loopback stacks since `localhost` may resolve to either; and drop the
provider metadata fields nothing consumed.
2026-07-26 22:27:54 +08:00