Skip to content

refactor(ui): remove retired Claws catalog dialog mode - #181005

Merged
steipete merged 1 commit into
mainfrom
solid2/w-deslop-claws-catalog-retry
Oct 22, 2026
Merged

steipete merged 1 commit into
mainfrom
solid2/w-deslop-claws-catalog-retry

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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

Check Result
Focused behavior 31 existing Claws tests passed; tests unchanged
UI typecheck pnpm tsgo:ui passed
Lint/format Targeted checks passed
Independent review Scoped clean through P2
Production Knip Running on final source
Base/head bundles Same-machine base 3a2f16623c12 → candidate: startup 315,724 → 315,730 B gzip; New Session 953,090 → 953,106 B; one startup CSS request unchanged. Strict comparison passed.
Screenshots Not applicable: only unreachable rendering and unused CSS removed; retained route markup is unchanged

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.

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 22, 2026
@clawsweeper

clawsweeper Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T21:31:38.792250Z 5ac5860 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete
steipete enabled auto-merge (squash) October 22, 2026 21:39
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 22, 2026
@clawsweeper

clawsweeper Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The package detail route uses page mode while retaining an unreachable catalog dialog implementation.
  • After: The same package detail route renders directly, with Explore continuing to own catalog search.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused and source-supported cleanup with no findings; supplied validation is primarily rendered-component tests and build measurements.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored refactor is outside the ordinary contributor proof gate; supplied evidence reports existing rendered-component tests and bundle checks, while source inspection confirms the retained route markup and request behavior.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: No visible malfunction is claimed; retired dialog machinery remains alongside the active discovery and detail routes.
Reason: The maintainer-authored direction removes confirmed dead code and obsolete contracts without introducing configuration, changing defaults, or altering supported behavior.

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
Reviewed head: 5ac5860f6e055306a921e80e80d7482c8877eeb1

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Catalog dialog and list rendering keeps the original intent (f469f6d: Provide readable Claw contents and an immediate Add-to-chat handoff; later discovery navigation moved to Explore in feat: open new agent chats instantly and simplify agent selection #175291.)
  • Catalog async presentation and cancellation keeps the original intent (c400211: Present admitted catalog requests through Solid async boundaries while preventing retired replies from selecting a package after navigation or reconnection.)
  • Shared request delay helper keeps the original intent (25b7978: Share request delay and cancellation plumbing; the retained detail route always used zero delay, so the replacement preserves its cancellation semantics.)
  • Catalog host properties keeps the original intent (ff3855a: Replace the registered rendering bridge with direct Solid callers while retaining the host element; the deleted ambient properties no longer correspond to a runtime bridge.)
  • Catalog stylesheet keeps the original intent (8108c1d: Remove retired detail selectors while retaining then-existing list and consent styles; this PR removes the now-unreachable list and preserves the surviving consent and content styles.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Source -302. Total -302 across 6 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 6 40 342 -302
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 40 342 -302

Review metrics

Metric Value Why it matters
Production versus test LOC Production +40/-342; tests unchanged The net reduction removes a verified unreachable rendering path and its styles without adding another owner or test scaffolding.

Root-cause cluster

Relationship: canonical
Canonical: #181005
Summary: This PR is the author's replacement for an identical, closed predecessor.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

  • add P3: This is low-risk internal cleanup with no intended change to reachable user behavior.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is low-risk internal cleanup with no intended change to reachable user behavior.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 22, 2026, 5:44 PM ET / 21:44 UTC.

@steipete
steipete merged commit 2778c8b into main Oct 22, 2026
186 of 190 checks passed
@steipete
steipete deleted the solid2/w-deslop-claws-catalog-retry branch October 22, 2026 21:54
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui ci:full Keep ordinary native-locale CI selection on the next PR run. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant