Repository navigation
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 26, 2026, 4:24 PM ET / 20:24 UTC. ClawSweeper reviewWhat this changesThis PR makes the Control UI use the runtime configuration capability as the sole settings writer, adding connection-epoch and snapshot-freshness fences so stale Gateway callbacks or concurrent writes cannot overwrite another account’s preferences, sidebar state, or locale. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 4 items remain Keep this PR open for explicit maintainer handling. The branch has substantial targeted regression coverage and passed the supplied automated gates, but it changes Control UI preference/session reconciliation across Gateway reconnects and provides no independently inspectable after-fix runtime UI proof; the existing Priority: P2 Review scores
Verification
How this fits togetherThe Control UI receives Gateway connection snapshots, creates a runtime configuration owner, reconciles server-backed preferences and sidebar state, and sends configuration patches back to the Gateway. This PR changes how those snapshot updates and writes are tied to a physical Gateway connection so obsolete callbacks cannot affect a newer connection or account. flowchart LR
A[Gateway connection snapshot] --> B[Runtime configuration owner]
B --> C[Authoritative configuration snapshot]
C --> D[Preference and sidebar reconciliation]
D --> E[Queued settings patch]
E --> F[Gateway configuration write]
B --> G[Connection epoch fence]
G --> D
G --> E
Before merge
Agent review detailsSecurityNone. PR surfaceSource +280, Tests +1441. Total +1721 across 5 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Before merge, add redacted real Control UI evidence that starts from an existing loaded session, reconnects the Gateway while preference/sidebar changes occur, and demonstrates that the new account’s settings persist without inheriting the prior account’s sidebar state. Do we have a high-confidence way to reproduce the issue? No high-confidence live reproduction is available in the supplied review context. The changed ownership, snapshot, stale-callback, and queued-write paths are clear from the supplied diff and targeted tests, so the reported failure mode is source-reproducible but not independently reproduced here. Is this the best way to solve the issue? Unclear: centralizing physical writes in the existing runtime configuration capability is the right ownership direction and avoids a parallel writer, but a real reconnect-and-write scenario is still needed to establish that the epoch fence covers the browser/runtime ordering seen by users. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against c66ca2fbb2b0. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Maintainer review update: do not merge this head. I reproduced the precise Control UI reconnect concern from the ClawSweeper review against the actual reviewed commit The remote Git HEAD and all five changed source blobs were verified against the published commit. The actual production build passed, including 654 precompressed Control UI sidecars and the performance budget. The browser opened real After an orderly restart of that same isolated Gateway and state directory:
I preserved and independently decoded the real I am preserving this focused PR and will repair the canonical preference owner so edits made during an actual disconnect are retained until a current-epoch authoritative snapshot arrives, then drain through the sole runtime configuration writer. I will rerun the same real two-page reconnect and preserve final screenshots before requesting a fresh review. The currently green hosted CI is not a substitute for the failed real product scenario. |
|
Maintainer update: still blocked; do not merge the currently published I independently ran the actual production-built Control UI and two real authenticated Chromium tabs against a dedicated, loopback-bound Gateway and its real After the Gateway restart, the Appearance and General tabs both physically submitted their preserved offline preference writes using the same real source revision:
Independently preserved original evidence:
The remote runner intentionally uses a synthetic |
|
Closing in favor of the boundary-correct replacement: #114286. Both live two-tab reconnect proofs against this PR's approach failed (head The replacement fixes it at the ownership boundary instead:
Evidence and proof runs are on #114286. |
What Problem This Solves
Fixes an issue where users changing Control UI Settings, sidebar sessions,
locale, or chat preferences could lose updates, inherit the previous account's
private sidebar, or permanently stop saving after a same-client Gateway
reconnect, an already-loaded snapshot, or a concurrent configuration write.
Why This Change Was Made
Make the existing runtime configuration capability the sole physical Settings
writer. Carry the authoritative snapshot's actual physical connection epoch
through the owner, and fence subscriptions, sidebar projections, queued
writes, and stale callbacks by that same runtime, source object, content
hash, and epoch.
An already-loaded authoritative reconnect snapshot now permits the first
real preference writes immediately; a retained old-connection snapshot
still cannot bypass the refresh barrier. A permanently stalled previous
write queue is retired with its connection. A genuine foreign-owner CAS
conflict rebuilds from complete current configuration and retries once.
This change does not modify provider/SSE contracts, authentication, approval
policy, public Gateway protocol, SQLite state/schema, plugin/catalog trust,
or public CLI compatibility.
User Impact
Settings changes complete and physically persist when users reconnect or run
multiple sessions. The current account retains its own sidebar and locale;
delayed callbacks or dead writes from an old connection cannot corrupt or
block it. Concurrent Skills and MCP configuration owners retain their data.
Evidence
mainbase:c66ca2fbb2b038f4796abfa76bd52dcc3b675b02.049e0ea2ad566aabc43763da3ec6f08d1f1b2d18.42 failed / 104 passed, exit 1.
reconnect P1. With all three production files still identical to the
rejected commit, the new targeted regression produced 2 failed cases
and zero physical writes, exit 1. The root cause is fixed rather than
waived; the preserved rejected-review artifact is
06e5087639bf9b22879612b52fed06f364d3eaac5162c008127b5ed7a503f7d2.all 13 affected UI suites, including both newly merged Skills view and
runtime-capability suites: 303/303 passed, exit 0.
stale callbacks and prove both new-owner
systemandfrphysicalconfig.patchwrites. Foreign CAS, repeated content hashes, hashlessacknowledgements, no-op, failed authoritative reload, updater suspension,
Skills/MCP writer ownership, and sidebar privacy remain covered.
gpt-5.6-solhigh official structured review:019fa00e-4873-7f02-8717-3ff08afc2f56; PASS, zero findings,patch is correct, confidence 0.91, artifact SHA-25607242d002706c4a8968e4dc0845f1663a906036be1b65e847923b12324be40c4.tbx_01kyg0xne76f61m7t3we1s98jb, Actions run30218488698:PASS, original wrapper exit 0,
commandMs=274654,totalMs=306335, nativeexitCode=0, and zero warnings or errors.Both strict type-checks, formatting, package, architecture, SDK,
translation, and 245-rule lint guards passed. The temporary full checkout
correctly overlays the exact five committed source blobs onto synthetic
current base
c66; the six synchronized transport items are not claimedas six changed product files or a remote checkout of the local commit.
Historical ten-session results are accurately historical; the new
one-Gateway, ten-GPT-5.4, medium-sized-task scenario will set
retryCount: 0and run after the verified merge.corrected source, current Skills consumers, and exact commit were each
independently verified.