Repository navigation
Conversation
Classify explicit operator, origin, and auth configuration denials at the shared reconnect policy. Preserve transport backoff across successful HTTP health probes while retaining outage and stale-opening recovery. Guide users to explicit Connect after access changes.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR pauses retries after explicit access or configuration denials and preserves transport backoff while HTTP health checks remain successful. Example: A reachable Gateway rejects a browser handshake with OPERATOR_ACCESS_DENIED.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it addresses retry churn still present on main, explicitly revises an earlier recovery choice, and introduces no concrete defect found in this review. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherGateway handshake errors enter the shared reconnect policy; the browser adapter publishes retry state, and page activation uses HTTP reachability to recover interrupted connections. flowchart TD
A[Gateway handshake response] --> B[Shared reconnect policy]
B --> C[Browser transport]
C --> D[Application connection state]
D --> E[Login recovery panel]
F[HTTP reachability probe] --> G[Page activation owner]
D --> G
G --> C
Technical reviewBest possible solution: Keep retry classification in the shared policy and use the existing transport deadline to preserve backoff while retaining observed-outage recovery. Do we have a high-confidence way to reproduce the issue? Current-main source shows that OPERATOR_ACCESS_DENIED remains retryable and successful health probes can replace a client during backoff; the PR records parent-failing synthetic browser regressions, but this read-only review ran no target code. Is this the best way to solve the issue? The implementation is focused: it extends the existing terminal policy, consumes the application store's existing retry deadline, and preserves the established stale-opening and restored-reachability paths. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 058ef8863a28. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +6, Tests +142, Docs +6, Other +163. Total +317 across 10 files. Added test files: 1. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 2, 2026, 12:07 PM ET / 17:07 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
Classify explicit operator, origin, and auth configuration denials at the shared reconnect policy. Preserve transport backoff across successful HTTP health probes while retaining outage and stale-opening recovery. Guide users to explicit Connect after access changes.
What Problem This Solves
Fixes repeated Control UI connection attempts when the Gateway denies operator access, including healthy HTTP probes that reset the transport's reconnect backoff.
User Impact
Access denials stop automatic retries and explain how to sign in as a different user or obtain administrator-granted access before choosing Connect. Disallowed browser origins and missing Gateway token/password configuration also pause retries. Temporary failures keep capped exponential backoff with jitter; observed network restoration and stalled socket openings retain fast recovery.
Why This Change Was Made
The Gateway already sends the typed
OPERATOR_ACCESS_DENIEDdetail. The shared retry policy omitted it, while successful periodic HTTP probes repeatedly replaced the client and reset its backoff. Reuse the existing retry deadline to preserve transport-owned pacing and the existing login panel for recovery. No protocol, schema, config, or cache changes.Runtime production code grows by six lines: four terminal-code entries, one net reachability line, and copy formatting. The separate reusable measurement script measures synthetic browser transport; it does not claim Gateway registration or database timings.
Evidence
src/plugins/embedding-providers.tsandsrc/plugins/install-transaction.ts; both reproduce on exact parent8051834a3ded5bc2a566c0fecbe98ad66b6f2555.EmbeddingProviderCreateOptionsbecame unused in refactor(embeddings): separate invocation contracts from host creation #190394 (f90d6c00407a);resolvePluginInstallTransactionlost its final external production caller in fix(plugins): avoid repeating failed update rollbacks #191182 (c108c2ce145f). These are main regressions, not failures introduced by this patch. Final performance results are below.Five interleaved baseline/candidate pairs per workload, fresh browser contexts, 10 real seconds per sample; allocation sampling ran separately. Median (p95):
A/A task CPU was 267.2–294.1ms for denial and 275.9–284.0ms for transient failure. The work-count reduction is deterministic; timings are browser-thread measurements on a shared host. The benchmark command is
node --import ./scripts/tsx.mjs scripts/perf/control-ui-connect-retry-measure.ts --base-build <frozen-base> --candidate-build <frozen-candidate> --output-dir <proof>; no Gateway CPU or database timings are claimed. Focused regression file times: shared policy <0.1s, page activation ~0.2s, browser denial/recovery ~10s (21s including invocation setup).The 142-line regression allocation covers the end-to-end denial/recovery boundary, explicit terminal code policy, and the interaction between real client backoff and HTTP recovery. Focused e2e also verifies the browser import boundary. Rejected admission never reads session databases or workspaces, so large storage fixtures cannot exercise additional work on this path. No live data was used.
Exact-head CI exception
Run 41485440672, attempt 1, completed with 71 successful checks and one failed root job,
checks-ui-e2e (1/4), plus its aggregate. The failure is the unrelated cron narrow-edit footer fixture: it expects height growth at 390px, but the short Save/Cancel buttons fit on one row (63.140625px before and after). The same assertion fails on exact parent8051834a3ded5bc2a566c0fecbe98ad66b6f2555; cron sources are unchanged through CI's main parent and tested merge. The layout-dependent assumption entered #152135 (0d43ba6f18d1) and has already been repaired on main in #191290 (2811699d21d7). This is fixture-introduction attribution, not a claim about its first historical failure date. No CI rerun was used to chase green. Landing uses the authorized inherited-failure exception at the reviewed head; it does not relabel failed CI green.