GeezerVison is showing github.com — Fix provider JSON editor save flow by rafaelmoreiraai · Pull Request #255 · lidge-jun/opencodex
Conversation
What changed
- Save raw provider JSON through individual
POST /api/providers requests instead of the disabled full-config PUT /api/config path.
- Apply
codexAutoStart through /api/settings and delete providers removed from the JSON draft.
- Preserve redacted provider state (API keys, key pools, headers, Google mode, and model input caps) when a provider is overwritten from the dashboard.
Why
The dashboard exposes a raw provider JSON editor, but its Save button submitted a full config PUT. The management API intentionally rejects that request because the GET response redacts credentials, leaving the editor unable to save.
Validation and platform scope
Validated on Windows only:
bun run build:gui
bun x tsc --noEmit
- End-to-end save-flow simulation against the local management API, confirming provider rows and configured API keys remain intact.
The implementation is TypeScript and does not intentionally add Windows-specific behavior, but macOS and Linux have not been tested. Maintainers should verify the dashboard save flow on those platforms before merging.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
chatgpt-codex-connector[bot] reacted with thumbs up emoji
|
✅ Target branch corrected
This pull request now targets dev.
The [WRONG BRANCH] title prefix has been removed. Its existing draft status has been preserved.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
github-actions
Bot
changed the title
Fix provider JSON editor save flow
[WRONG BRANCH] Fix provider JSON editor save flow
Jul 22, 2026
github-actions
Bot
changed the title
[WRONG BRANCH] Fix provider JSON editor save flow
Fix provider JSON editor save flow
Jul 22, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This draft is not safe to merge yet. Saving providers one-by-one, then deleting, then updating settings is non-atomic: a middle failure leaves a partially mutated config. More importantly, the editor starts from the redacted safeConfigDTO but only preserves a small subset of omitted provider fields, so a save can silently discard valid configuration such as reasoning maps, modality metadata, project/location, and thinking model settings. Please implement a single server-side validated/atomic update path that preserves all omitted fields. No malware or backdoor behavior was found.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
|
Post-merge Sol review note: This PR was merged then reverted from dev after a thorough Sol code review found 3 high-severity issues:
- Non-atomic save operation exposing intermediate configurations
- Incomplete field preservation list (missing mcpServers, desktopExecutor, etc.)
- TypeScript compilation failure (TS2352)
The core idea (preventing credential loss in the JSON editor) is valuable and will be rebuilt with an atomic batch config endpoint and typed DTO merge policy. See devlog analysis for details.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
lidge-jun
added a commit
that referenced
this pull request
Jul 23, 2026
3 high-severity blockers: non-atomic save, incomplete field preservation,
TypeScript compilation failure. Good idea, needs proper implementation.
lidge-jun
added a commit
that referenced
this pull request
Jul 23, 2026
Sol reviewed all 10 PRs. Results:
- Merged: #286 (500→400), #296 (Cursor Router), #302 (Kiro hardening)
- Rebuild-on-dev: #255, #283, #293, #301, #298, #299
- Keep open: #249 (Cloudflare tunnel)
Typecheck + full test suite pass (3574/3574) after all merges.
agentHits
pushed a commit
to agentHits/opencodex
that referenced
this pull request
Sep 17, 2026
…ON_DEV
3 high-severity blockers: non-atomic save, incomplete field preservation,
TypeScript compilation failure. Good idea, needs proper implementation.
Reviewers
lidge-jun
Awaiting requested review from lidge-jun
lidge-jun is a code owner
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|