[codex] fix declarative provider auth updates and Ollama Cloud model selection#8499
[codex] fix declarative provider auth updates and Ollama Cloud model selection#8499AiRC-ai wants to merge 4 commits intoaaif-goose:mainfrom
Conversation
Signed-off-by: Abhijay Jain <Abhijay007j@gmail.com>
Signed-off-by: Abhijay Jain <Abhijay007j@gmail.com>
Signed-off-by: Ryan Cox <ryancox@GoDSyNcs-MBP.godsync.com>
Signed-off-by: Ryan Cox <ryancox@GoDSyNcs-MBP.godsync.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0aea068501
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if custom_file.exists() { | ||
| std::fs::remove_file(custom_file)?; | ||
| } | ||
| None |
There was a problem hiding this comment.
Persist disabled auth overrides for fixed providers
When requires_auth is turned off for a non-editable declarative provider, this path removes the shadow file and writes no replacement override, so the setting is not persisted. On the next reload, load_provider falls back to the bundled fixed config (which is requires_auth: true for providers like ollama_cloud), so users cannot actually keep auth disabled and the checkbox state snaps back after refresh.
Useful? React with 👍 / 👎.
Summary
This stacks the declarative-provider auth update flow with two follow-up fixes needed to make the Ollama Cloud configuration path work end to end.
Changes included:
ollama_cloudso the full live cloud model list is shown instead of an over-filtered subsetRoot cause
There were two separate issues in the provider flow:
Impact
This makes the Ollama Cloud provider flow usable from the desktop settings UI:
Update Providerpersists the API key for the fixed declarative providerValidation
source bin/activate-hermit && cd ui/desktop && pnpm run typecheckjust package-uiNotes
The first two commits are the
#8191-equivalent declarative-provider fixes on top ofmain; the last commit is the follow-up for the refreshed model picker and Ollama Cloud model list behavior.