mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2440] [Issue]: 11-PROV-RUNTIME-chatgpt-local-auth skips live ChatGPT model discovery #1194
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#1194
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Promansis on GitHub (Jun 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2440
Originally assigned to: @SpicyMarinara on GitHub.
Summary
11-PROV-RUNTIME-chatgpt-local-authparity gap: the refactor ChatGPT local auth path does not attempt live ChatGPT Codex model discovery.Expected behavior
When listing models for an
openai_chatgptconnection, Marinara should use local Codex ChatGPT auth to call the ChatGPT Codex models endpoint, normalize returned models, and fall back to the curated static catalog only if live discovery fails or returns no models.Actual behavior
The refactor always returns the static
openai_chatgptcatalog forconnection_models/llm_list_models; it does not call the ChatGPT Codex/modelsendpoint.Steps to reproduce
openai_chatgptconnection using local Codex ChatGPT auth.Impact area
Environment
Logs, screenshots, or video
Static proof only. No private auth files inspected.
Legacy evidence:
packages/server/src/services/llm/openai-chatgpt-auth.ts:fetchOpenAIChatGPTModelscalls${OPENAI_CHATGPT_CODEX_BASE_URL}/models?client_version=..., applies local ChatGPT headers, caps response size, and normalizesslug/idplus display names at lines 259-287.packages/server/src/routes/connections.routes.ts:openai_chatgptmodel listing tries livefetchOpenAIChatGPTModels()and falls back toMODEL_LISTS.openai_chatgptonly on failure or empty results at lines 392-400.Refactor evidence:
src-tauri/src/commands/storage/llm.rs:fetch_provider_modelsreturnsprovider_model_catalog(provider)immediately foropenai_chatgptat lines 942-952.src-tauri/src/commands/storage/llm.rs:connection_modelsandllm_modelsuselookup_llm_models, so this static-only result feeds both model-list paths at lines 224-264 and 365-376.Regression notes
Worked in legacy
mainper #2410 source definition for11-PROV-RUNTIME-chatgpt-local-auth.Additional context
Surface:
11-PROV-RUNTIME-chatgpt-local-auth.Tracked from #2410 Batch 13.
Acceptance criteria:
openai_chatgptusing local Codex ChatGPT auth.idandnamefields.connection_models.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Jun 6, 2026):
Fixed in refactor with commit 3ddf471e.
Behavior changed:
Verification:
Note: cleared generated Rust target artifacts after the first storage test compile hit no-space-left-on-device; no source files were removed.