Repository navigation
fix(ui): preserve source config for Control UI saves - #85879
Conversation
Co-authored-by: clawsweeper[bot] <274271284+clawsweeper[bot]@users.noreply.github.com>
|
Codex review: needs maintainer review before merge. Latest ClawSweeper review: 2026-05-24 00:44 UTC / May 23, 2026, 8:44 PM ET. Workflow note: Future ClawSweeper reviews update this same comment in place. How this review workflow works
PR Surface View PR surface stats
Summary Reproducibility: yes. from source: current main edits and serializes the runtime PR rating Rank-up moves:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. Real behavior proof Mantis proof suggestion Risk before merge
Maintainer options:
Next step before merge Security Review detailsBest possible solution: Land the focused source-snapshot save fix after normal PR checks, and use a small Control UI smoke if maintainers want runtime proof beyond the regression test. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main edits and serializes the runtime Is this the best way to solve the issue? Yes, the PR uses the gateway's existing source/resolved snapshot contract instead of adding a new config mode or write-side workaround, and it keeps runtime config available for read-only surfaces. Label changes:
Label justifications:
What I checked:
Likely related people:
Codex review notes: model gpt-5.5, reasoning high; reviewed against acf265d4d51d. |
|
ClawSweeper PR egg ✨ Hatched: 🥚 common Pearl Signal Puff Hatch commandComment Hatchability rules:
Rarity: 🥚 common. What is this egg doing here?
|
|
@clawsweeper hatch |
|
🦞👀 I queued a comment sync for this PR. If the egg is hatchable, ClawSweeper will generate the image once and update the existing review comment. |
Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>
Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>
Co-authored-by: clawsweeper <274271284+clawsweeper[bot]@users.noreply.github.com>

Summary
models.providers.openai.baseUrl: ""leak intoconfig.set.agentRuntime.idand no authoredbaseUrl.Fixes #85831.
Credit: reported by @garyd9 in #85831.
Verification
node scripts/run-vitest.mjs ui/src/ui/controllers/config.test.tspnpm check:changedReal behavior proof
Behavior addressed: Saving Control UI form changes no longer persists runtime-materialized empty provider
baseUrlvalues when the authored config omitted them.Real environment tested: To be filled by executor after applying the patch.
Exact steps or command run after this patch:
node scripts/run-vitest.mjs ui/src/ui/controllers/config.test.ts;pnpm check:changed.Evidence after fix: Regression test should show
config.setraw payload keepsmodels.providers.openai.agentRuntime.idand omitsmodels.providers.openai.baseUrlwhen only the runtime snapshot containsbaseUrl: "".Observed result after fix: To be filled by executor after validation.
What was not tested: Manual browser save against a live gateway unless the executor runs an optional Control UI smoke.
ClawSweeper 🐠 replacement reef notes:
fish notes: model gpt-5.5, reasoning high; reviewed against 289b81d.