Repository navigation
fix(ui): preserve profile avatars under Control UI base paths - #119308
fuller-stack-dev merged 5 commits into
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 5, 2026, 2:16 AM ET / 06:16 UTC. ClawSweeper reviewWhat this changesThe PR makes profile-avatar requests use an explicit same-origin Control UI base path while retaining canonical root routes for WebSocket and cross-origin gateway setups. Merge readinessKeep open. This focused fix remains necessary on current main, and the exact head resolves the mounted-Control-UI avatar path without reviving the earlier WebSocket-path inference or session-layout changes. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI derives authenticated avatar URLs from its gateway connection, then the gateway authorizes and serves the profile image. When a reverse proxy mounts the UI under a public path, the browser URL and gateway route admission must use the same path contract. flowchart LR
A[Profile and sidebar] --> B[Avatar URL resolution]
C[Control UI base path] --> B
D[Gateway connection origin] --> B
B --> E[Avatar HTTP request]
E --> F[Gateway route admission]
F --> G[Authenticated profile image]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +34, Tests +91. Total +125 across 9 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the explicit same-origin base-path contract after exact-head validation, preserving canonical root avatar routes for WebSocket and cross-origin gateways. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main computes a mounted UI base path but routes profile avatars at host root, while the gateway admits only the root path. No independent live proxy deployment was run in this read-only review. Is this the best way to solve the issue? Yes. Carrying the already-resolved Control UI base path to the avatar owner is narrower and safer than inferring an HTTP mount from an arbitrary WebSocket pathname. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 77f7560b4184. 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
HistoryReview history (3 earlier review cycles)
|
ccc6aae to
6d50f34
Compare
# Conflicts: # ui/src/styles/components.css
|
@clawsweeper re-review Exact head: Applied the prior rank-up moves:
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Land-ready maintainer evidence for exact head
Remaining proof gaps: none for the changed routing contract. |
|
Merged via squash.
|
…aw#119308) * fix(ui): preserve active session status layout * fix(ui): preserve avatar paths and fork lineage * fix(ui): preserve avatars under control UI base paths
Summary
/api/users/<id>/avatarcanonical for root,/ws, and cross-origin gateways/wilfredRoot cause
The browser-generated avatar URL ignored the Control UI's explicit public mount path. In a same-origin
/wilfreddeployment it requested host-root/api/users/..., which bypassed the only proxied path and returned 404 before reaching OpenClaw. The earlier attempted repair incorrectly treated arbitrary WebSocket paths such as/wsas HTTP API mounts.Tests
/wilfredgit diff --check