GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix provider JSON editor save flow by rafaelmoreiraai · Pull Request #255 · lidge-jun/opencodex

Conversation

@rafaelmoreiraai

@rafaelmoreiraai rafaelmoreiraai commented Jul 22, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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
All reactions
  • 👍 1 reaction
@rafaelmoreiraai
Fix provider JSON editor save flow
40ed1d1
@github-actions

github-actions Bot commented Jul 22, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

✅ Target branch corrected

This pull request now targets dev.

The [WRONG BRANCH] title prefix has been removed. Its existing draft status has been preserved.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot changed the title Fix provider JSON editor save flow [WRONG BRANCH] Fix provider JSON editor save flow Jul 22, 2026
@rafaelmoreiraai
rafaelmoreiraai changed the base branch from main to dev July 22, 2026 04:33
@github-actions github-actions Bot changed the title [WRONG BRANCH] Fix provider JSON editor save flow Fix provider JSON editor save flow Jul 22, 2026
Ingwannu
Ingwannu requested changes Jul 22, 2026
View reviewed changes

@Ingwannu Ingwannu left a comment

Copy link
Copy Markdown
Owner

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.

All reactions
@lidge-jun
lidge-jun marked this pull request as ready for review July 22, 2026 23:31
@lidge-jun
lidge-jun self-requested a review as a code owner July 22, 2026 23:31
@lidge-jun
lidge-jun merged commit ef882b1 into lidge-jun:dev Jul 22, 2026
3 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@lidge-jun

lidge-jun commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Post-merge Sol review note: This PR was merged then reverted from dev after a thorough Sol code review found 3 high-severity issues:

  1. Non-atomic save operation exposing intermediate configurations
  2. Incomplete field preservation list (missing mcpServers, desktopExecutor, etc.)
  3. 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.

All reactions

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
@lidge-jun
devlog: update PR #255 analysis — Sol FAIL verdict, REBUILD_ON_DEV
9db4024
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
@lidge-jun
devlog: finalize overnight PR review — 3 merged, 6 rebuild, 1 keep-open
fa212c7
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.
lidge-jun added a commit that referenced this pull request Jul 23, 2026
@lidge-jun
devlog: mark PR #255 rebuild as DEFERRED — needs atomic batch endpoint
d869965
agentHits pushed a commit to agentHits/opencodex that referenced this pull request Sep 17, 2026
@lidge-jun
devlog: update PR lidge-jun#255 analysis — Sol FAIL verdict, REBUILD_…
7b148db
…ON_DEV

3 high-severity blockers: non-atomic save, incomplete field preservation,
TypeScript compilation failure. Good idea, needs proper implementation.
agentHits pushed a commit to agentHits/opencodex that referenced this pull request Sep 17, 2026
@lidge-jun
devlog: finalize overnight PR review — 3 merged, 6 rebuild, 1 keep-open
d2221f7
Sol reviewed all 10 PRs. Results:
- Merged: lidge-jun#286 (500→400), lidge-jun#296 (Cursor Router), lidge-jun#302 (Kiro hardening)
- Rebuild-on-dev: lidge-jun#255, lidge-jun#283, lidge-jun#293, lidge-jun#301, lidge-jun#298, lidge-jun#299
- Keep open: lidge-jun#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
@lidge-jun
devlog: mark PR lidge-jun#255 rebuild as DEFERRED — needs atomic batc…
8421ef4
…h endpoint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Ingwannu Ingwannu Ingwannu requested changes
@lidge-jun 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

Labels

None yet

Projects

None yet

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.

3 participants

@rafaelmoreiraai @lidge-jun @Ingwannu
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.