Repository navigation
fix(gateway): claim malformed plugin icon routes - #119559
vincentkoc merged 1 commit into
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 5, 2026, 9:19 AM ET / 13:19 UTC. ClawSweeper reviewWhat this changesThe PR makes malformed plugin and catalog icon URLs return their route-owned 404 response instead of falling through to the Control UI SPA. Regression provenancePossible regression — probable (reproduction; reviewed change). No predecessor PR is attributed. Merge readinessKeep this PR open: current main still conflates a malformed reserved icon route with an unrelated route, and the proposed parser-level ownership fix correctly prevents Control UI SPA fallback without changing valid icon handling. Priority: P2 Review scores
Verification
How this fits togetherGateway request stages send reserved plugin and catalog icon paths to the icon handler before the Control UI fallback. The handler authenticates and resolves valid icons, while malformed paths should end with the icon endpoint’s own response. flowchart LR
A[Browser icon URL] --> B[Gateway request stages]
B --> C[Icon route parser]
C -->|Unrelated path| D[Control UI fallback]
C -->|Reserved malformed path| E[Owned 404 response]
C -->|Reserved valid path| F[Authentication and icon resolver]
F --> G[Validated icon response]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +4, Tests +23. Total +27 across 2 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Land the parser-boundary repair after the normal exact-head merge gate so malformed reserved icon routes retain ownership and unrelated paths continue to reach the Control UI. Do we have a high-confidence way to reproduce the issue? Yes, with high confidence from source and the supplied production-handler loopback transcript: current main retains the nullable parser and the pre-fallback dispatch order, while the exact head returns 404 for the same malformed URLs. Is this the best way to solve the issue? Yes. Recording matched-versus-invalid state at the icon parser is the narrowest canonical fix; changing Gateway stage order or Control UI fallback would duplicate endpoint policy and affect unrelated paths. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d85920c03e25. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Maintainer validation is complete at exact head
|
|
Merged via squash.
|
* origin/main: (130 commits) refactor(qa): consolidate scenario runtime helpers (openclaw#119623) fix(telegram): bind Mini App auth to dashboard launches refactor(agent-core): unify session projection and compaction summaries (openclaw#119639) fix(codex): allow natural reactions in the current conversation (openclaw#119649) refactor(providers): deduplicate bundled model catalogs (openclaw#119627) fix(ui): observe the active service worker after asset refresh (openclaw#119622) fix(agents): strip echoed base64 image payloads so photo-heavy turns no longer hit the per-turn output cap (openclaw#119488) improve: make state-heavy test suites faster (openclaw#119617) perf(agents): add concurrency benchmark (openclaw#119569) fix(browser): visibly report failed pairing and tab-sharing actions (openclaw#119526) refactor(lobster): consolidate embedded workflow execution (openclaw#119630) fix(plugin-sdk): stabilize tuple-derived API baseline ordering (openclaw#119635) docs(skills): make full-authority maintainer runs unattended (openclaw#119629) fix(managed-child): honor process groups that vanish before cleanup (openclaw#119614) fix(ci): stop label-driven automation churn (openclaw#119610) fix(media): keep the ttl sweep out of the managed outgoing tree (openclaw#119127) fix(claws): remove owner-qualified skills (openclaw#119606) fix(clawrouter): show stable error for malformed usage responses (openclaw#119580) fix(gateway): claim malformed plugin icon routes (openclaw#119559) fix(telegram): preserve truthful empty-content delivery (openclaw#88810) ...
What Problem This Solves
Fixes an issue where malformed plugin and catalog icon URLs could fall through to the Control UI and return the SPA HTML with a
200response.Why This Change Was Made
Icon route parsing now distinguishes an unrelated path from a matched route with invalid input, while preserving the existing method and authentication checks. Both icon route variants use the same closed parser state, following the route-ownership pattern established by #85261.
User Impact
Malformed icon URLs now receive the route-owned
404 Not Foundresponse instead of the Control UI HTML.Evidence
pnpm test src/gateway/plugin-icon-http.test.ts: 32 focused tests passed.pnpm exec tsx proof-live.ts: the same loopback HTTP call chain ran the production icon handler followed by the production Control UI handler on the pinned base and exact head.proof-live.ts
AI-assisted: built with Codex
Punchcard-Session: clear-orchard-lantern-bc