Repository navigation
fix: avoid unavailable flash when refreshing conversations - #167097
Conversation
Keep private conversation entry in a pending state until the existing protected access probe resolves. Preserve confirmed denial, no-JavaScript fallback, public revocation, and neutral transport-error recovery without changing authorization. Co-authored-by: jacobtomlinson <[email protected]>
Co-authored-by: jacobtomlinson <[email protected]>
|
🦞👀 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: needs maintainer review before merge. Reviewed October 8, 2026, 8:53 AM ET / 12:53 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR shows a neutral loading state while conversation access is checked, then distinguishes confirmed denial from connection failures. Example: Reload an accessible private conversation
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR addresses a source-confirmed display bug that remains on current main, with no actionable correctness or security findings. Browser evidence supports the visual improvement but does not establish a real Gateway handoff. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Gateway serves a lightweight conversation reader before handing authorized browsers into the Control UI. Its access probe determines whether to navigate into the app or display the unavailable page. flowchart TD
A[Conversation reload] --> B[Gateway conversation reader]
B --> C[Loading state]
C --> D[Protected access probe]
D -->|Successful handoff| E[Control UI conversation]
D -->|Confirmed denial| F[Unavailable page]
D -->|Connection failure| G[Reload or login guidance]
Technical reviewBest possible solution: Keep pending, denied, and connection-failure presentation in the existing reader while retaining the protected handoff and public-revocation owners. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the trigger: an unavailable reader document displays its error before the asynchronous protected probe completes. The supplied before screenshot corroborates that display; no current-main runtime was executed during this read-only review. Is this the best way to solve the issue? Yes, the patch narrowly corrects presentation in the existing renderer and preserves navigation, authentication, public-reader isolation, and revocation behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 89c01cd979ef. Provenance checked
TestingProof path: in-process harness. Added test files: 2. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +19, Tests +87, Docs +3. Total +109 across 4 files. View PR surface stats
LabelsLabel changes: No label 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 HistoryReview history (1 earlier review cycle)
|
|
Merged via squash auto-merge.
|
…167097) Keep the public conversation document in a neutral loading state until its existing protected access probe resolves. Preserve successful authenticated handoff, confirmed denial, no-JavaScript fallback, and immediate public-access revocation without changing authorization or adding a hide timer. Co-authored-by: jacobtomlinson <[email protected]>
…e probe (#173820) Signed-out visitors opening a Team conversation link (for example from a RoboClaw post) saw "Could not check access" instead of a Log in prompt. Team sits behind Cloudflare Access, which answers the page's session-entry probe with a cross-origin login redirect. The probe used redirect:"error", so that redirect rejected like a network failure. Probe with redirect:"manual" and treat the opaque redirect like 401/403: show the unavailable state with the Log in button, which routes through Access and back to the conversation. Readers of public transcripts are never redirected, and the 204 operator handoff is unchanged. Regression from #167097 (47cbd73), which turned probe rejections into a blocking "Could not check access" state, on top of the redirect:"error" probe added in #166049 (8787ee0).
…e probe (openclaw#173820) Signed-out visitors opening a Team conversation link (for example from a RoboClaw post) saw "Could not check access" instead of a Log in prompt. Team sits behind Cloudflare Access, which answers the page's session-entry probe with a cross-origin login redirect. The probe used redirect:"error", so that redirect rejected like a network failure. Probe with redirect:"manual" and treat the opaque redirect like 401/403: show the unavailable state with the Log in button, which routes through Access and back to the conversation. Readers of public transcripts are never redirected, and the 204 operator handoff is unchanged. Regression from openclaw#167097 (9761331), which turned probe rejections into a blocking "Could not check access" state, on top of the redirect:"error" probe added in openclaw#166049 (e974acf).
What Problem This Solves
Fixes: refreshing an accessible conversation briefly shows “Conversation unavailable” before the signed-in conversation loads.
User Impact
Reloading a conversation shows a neutral loading state while access is checked. Confirmed denial still shows the unavailable page; connection failures offer reload or login instead of claiming access was denied. Authentication and session permissions are unchanged.
Why This Change Was Made
The public thread document rendered its unavailable result before the existing protected login-handoff probe finished. Keep that result pending until the probe resolves, including during successful navigation into the app. Preserve the readable no-JavaScript fallback and immediately show confirmed revocation in an already-open public reader. No time-based hiding or new authorization logic.
Evidence
check:changedstops at the unused exportobservePlacementAuthorityinsrc/gateway/worker-environments/placement-turn-authority.ts. Its blob is identical on the starting main commit and this candidate; no external production consumers exist on that base. The remaining selected checks were run separately. Full-repository tests and a live login-proxy deployment were not run.pnpm test <file> --maxWorkers=1:control-ui-public-session-entry.test.ts, 17.34 s wall / 2.94 s Vitest (26 tests);control-ui-public-session-refresh.test.ts, 7.59 s wall / 1.29 s Vitest (4 tests). Wrapper/startup time is included in wall time. Hosted CI run 37779535849 passed on this exact head (attempt 1): 806 seconds from run start to completion; no CI rerun was requested.Before — the access probe is still pending:
After — the same pending access probe:
Worked on by
Work sessions
View the OpenClaw team session