Repository navigation
refactor(ui): remove retired Claws catalog dialog mode - #181005
Conversation
|
🦞👀 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 removes the retired Claws catalog dialog, search branch, unused styles, and obsolete host properties while preserving the package detail route. Example: Open /claws/packages/%40openclaw%2Fworkflow-operator.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this is a useful, maintainer-directed removal of unreachable UI code, with no actionable correctness or security findings. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI routes Claws discovery to Explore and selected package names to the existing catalog model, which requests Gateway catalog data and presents details, previews, consent, and Add results. flowchart LR
A[Claws route] --> B[Explore search]
B --> C[Package detail route]
C --> D[Catalog model]
D --> E[Gateway catalog methods]
E --> F[Detail and preview views]
F --> G[Add and agent chat]
Technical reviewBest possible solution: Land the focused page-only cleanup through the existing CI gates while retaining Explore and the current detail owner. Do we have a high-confidence way to reproduce the issue? This is a refactor rather than a reported bug; source and caller inspection establish that the removed mode is unreachable. Is this the best way to solve the issue? The diff is the smallest complete cleanup: remove the retired branch and coupled contracts while preserving the existing route, request owner, and active styles. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 78b12ecec7a0. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -302. Total -302 across 6 files. Added test files: 0. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
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 October 22, 2026, 5:44 PM ET / 21:44 UTC. |
|
Merged via squash auto-merge.
|
Supersedes #180999 with the same reviewed commit. Its initial native allocation lost its Git backlink before initialization and the retry correctly refused ambiguous metadata. The original checkout is preserved for native-owner recovery; this replacement uses a fresh native allocation.
What Problem This Solves
Claws retained an unused catalog dialog and search list after catalog browsing moved to Explore and package details moved to their own route.
User Impact
No visible behavior change. The package detail route keeps loading, retry, reconnect, file previews, Add, consent, and chat handoff behavior. Explore remains the catalog search owner.
Why This Change Was Made
The only production caller always supplies a package and used page mode. Remove the unreachable modal/list/search branch, its query/debounce plumbing, phantom host properties, and CSS used only by the deleted list. Preserve the host tag and the plain owner's current-request cancellation checks.
Evidence
pnpm tsgo:uipassed3a2f16623c12→ candidate: startup 315,724 → 315,730 B gzip; New Session 953,090 → 953,106 B; one startup CSS request unchanged. Strict comparison passed.Page production code: 964 → 817 (−147). Coupled CSS: 259 → 112 (−147). Host typings: 231 → 223 (−8). Total production reduction: 302 lines. No test LOC change. Effects, lifecycle hooks, owner APIs, and lazy route boundaries are unchanged. The replaced delay always had duration zero in the live route; its cancellation flag remains local to each admitted request.
This is the second focused family from the non-chat pages census. Large clone matches were mostly imports and live domain owners; this branch removes a confirmed retired path.