Skip to content

feat: review template packages inline before publishing - #196427

Merged
Patrick-Erichsen merged 23 commits into
mainfrom
template-inline-publishing
Nov 11, 2026
Merged

Patrick-Erichsen merged 23 commits into
mainfrom
template-inline-publishing

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Landed as c1ecbca6ca50 through the repository’s supported inherited-failure process. The exact reviewed head was d6f087009ef3; the unrelated chat speed-setting failure remains recorded below. Native landing audit.

What Problem This Solves

Template review opens an editable modal outside the conversation, and generic detail pages hide the actual package requirements and automation prompts.

User Impact

Review the assembled Template in the requesting conversation, inspect its contents, and explicitly select Publish. The card and detail pages match the approved Paper D-series.

  • The handoff ends with the native card alone. The creation skill explicitly forbids an extra “Template ready for review” message or repeated summary.
  • The top-right status indicator progresses from gray Unpublished to yellow Pending (tooltip: “Awaiting security review”), then green Published only after matching registry confirmation. Pending offers View submission; confirmed publication offers Copy link.
  • Read-only detail pages show workspace destinations and original archive files, pinned skill documents, plugin requirements, connection settings, readable schedules, and full automation prompts.
  • Bundled skills read their exact reviewed archive document without a registry lookup. Bundled plugins show their folder/source without an invented version. Automation previews preserve the authored enabled/paused setting; omission follows the existing enabled default.

Why This Change Was Made

Sidebar and inline review share one draft owner, so revisions, requesting conversations, connection changes, and navigation stay bound to the reviewed package. Publication uses that exact immutable archive. Failed and uncertain outcomes remain explicit; an uncertain upload never automatically resubmits.

The presentation stays deferred. Shared template styling replaces duplicated sheets, including the lazy hover reference, while preserving the approved dimensions and appearance. The retired editable-modal state, debounce timer, and UI editing operations are removed; the Gateway choices contract remains intact. The latest main integration preserves its Firefox transcript container around both conversation content and the sidebar review.

Evidence

The new captioned recording attached below covers every list/detail page, file scrolling, the Pending tooltip, registry confirmation, copying the link, and a narrow viewport. It uses the rebuilt production UI with synthetic Gateway/registry data. No public package or live model publication was performed.

Original editable modal:

Before: editable modal

Approved detail-page comparison:

D-series detail pages

Publication-state comparison:

Publication states before and after

Workspace destination repair:

Installed names alongside unchanged archive paths

The attached screenshots and recording show the approved card, automation detail, and Pending tooltip. Subsequent repairs remove unused modal code, preserve the upstream transcript container, and restore the catalog’s existing single-line excerpts; the card design is unchanged.

Validation

  • Draft building 17/17; publication 30/30, plus the final selection assertion replay 1/1. Covers exact multipart archive bytes, registry observations, authority/revision changes, and physical socket loss after upload.
  • Creator flow/owner/review 35/35 across the final passing selections. Includes pinned and bundled previews, no bundled registry calls, retained publication outcomes, and requester/revision ownership.
  • Rebuilt production walkthrough 2/2; catalog hover/preview navigation and paused automation 2/2. The three previously unexplained browser cases—personal backgrounds, capability-menu height, and native conversation navigation—pass on the integrated source 3/3. These passing replays do not establish a causal fix for the historical failures.
  • UI/core types, the repaired Gateway test typecheck, scoped lint/format, stylesheet lint, and the controller guard pass. Test allocation shrinks 671 → 660; the shared scalar is unchanged.
  • Final paired production asset check passes against main 34fcaa5dbbd186a0bc11778587d5595b4b0b422d: Chat 1,302,561 B gzip, New Session 803,916 B gzip; 121 stylesheet requests. CSS 326,866 B gzip / 1,686,635 B raw, versus main 326,931 / 1,686,650. Main already exceeds the fixed CSS ceilings; this change reduces both measures and passes the check's existing inherited-debt rule. No size limit is raised.

The final repair replay passes 26/26 catalog and production-Gateway HTTP tests. The unchanged mobile catalog test first reproduced the two-line styling regression; the stylesheet fix restores the existing one-line assertion at all four widths. Final owner/review checks pass 18/18, native transcript review 2/2, and the upstream transcript-clearance check passes in Chromium (Firefox is unavailable locally). Current type/lint/format checks and the test-line gate pass, with 13 lines of slack.

CI 43065942095 on f6883b768676 completed with three failed leaves: four catalog clamp cases fixed above; an Android probe deadline test with identical Android/runtime/build inputs to its actual main baseline; and a fresh-visit HTTP setup timeout that remains causally unexplained. All three HTTP cases pass in the bounded local replay, which does not establish a causal fix for the hosted timeout. New-head CI is evaluated independently. Historical CI 42949654804 and its three unexplained browser cases are not relabeled green or used to waive current checks.

ClawSweeper’s final review covers d6f087009ef3e1eb8db3d122fa51b011a0741cd5 and reports no actionable findings. The retired editable-review machinery and obsolete debounce/modal assertions are removed, and there are no unresolved inline review threads.

The final broad changed-file check passes after the current-main integration: all 13 selected test type graphs, UI types, controller/i18n/declaration/line guards, scoped lint/format/styles, and all three unused-export scans (zero findings). The earlier failed local audit and hosted Gateway setup timeout remain recorded as historical evidence; their old runs are not relabeled green.

Final CI 43070824692 on d6f087009ef3 completed: 60 successful jobs, 22 unselected/skipped jobs, and one failed test leaf plus its CI aggregate. All seven browser leaves and all Android checks passed. The remaining chat speed-setting test missed its first mock request within the existing one-second wait, before its later-selection scenario began. Its 27 determining source/build objects, including the complete session-owner subtree, are identical to the actual CI main baseline 85b3c4a4cf80; it does not mount the changed Template presentation. The exact case passes on scheduled main (325ms) and locally (35ms), which does not establish a causal fix for the hosted failure. The repository’s supported inherited-failure landing process retains this failed result and checks current security/review authority; no limits, timeouts, assertions, or protections are weakened.

Publication receipt recovery survives renderer remount, not a full browser reload or Gateway restart. This PR adds no durable receipt storage. Earlier responsive/sidebar, requester-routing, and HTTP transport proof remains applicable where inputs are unchanged.

inline-template-publishing.mp4

Current inline template review

Plain-English automation preview

Pending security-review tooltip

@clawsweeper

clawsweeper Bot commented Nov 10, 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.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui gateway Gateway runtime agents Agent runtime and tooling size: XL labels Nov 10, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 10, 2026
@clawsweeper

clawsweeper Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR replaces editable Template review modals with read-only inline package details and registry-confirmed publication status.

Example: Publish @maker/research-brief version 0.1.0 from its conversation.

  • Before: An editable modal presents the package, and submission dismisses the review.
  • After: The conversation retains an inspectable card showing Pending, then Published after matching registry confirmation.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Inspectable UI evidence and production-transport coverage support a coherent change with the prior blocker resolved and no actionable findings.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected production-UI screenshots demonstrate inline review, package drilldowns, automation prompts, and Pending feedback with disclosed synthetic Gateway data; recorded real-HTTP owner coverage exercises upload outcomes and pre-effect authority rejection.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Review interrupts the conversation, and package details do not expose enough information to inspect requirements and automation prompts before publishing.
Reason: The maintainer-directed presentation change makes the reviewed package inspectable in context while retaining explicit human publication.

Merge readiness

✅ Ready for maintainer review

This PR provides useful inline Template inspection and publication tracking; the previous blocker is fixed, and no new actionable defect was found.

Priority: P2
Reviewed head: d6f087009ef3e1eb8db3d122fa51b011a0741cd5

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Template creator connects agent-authored private drafts to human review in Control UI; Gateway handlers build the reviewed archive and submit it through the existing ClawHub client.

flowchart LR
  A[Agent proposal] --> B[Private draft]
  A --> C[Inline review descriptor]
  C --> D[Control UI review]
  B --> E[Gateway draft owner]
  D --> E
  E --> F[Archive builder]
  F --> G[ClawHub registry]
  G --> E
Loading

Technical review

Best possible solution:

Retain the shared draft owner, read-only inline presentation, exact-artifact publication checks, and explicit uncertain outcomes.

Do we have a high-confidence way to reproduce the issue?

This is a feature change; current main still contains the editable-modal workflow that this PR replaces.

Is this the best way to solve the issue?

The implementation reuses the existing draft, archive, publication, and inline-view owners, and the latest repair completes removal of the superseded UI editing path.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 0c103b02991a.

Provenance checked

  • Same-conversation authoring and explicit publication changes intended behavior with a stated reason (c9a7947: Create and review reusable packages in the existing agent conversation, with publication requiring an explicit human action.)
  • Chat-origin review handoff changes intended behavior with a stated reason (68647db: Let ordinary agent conversations prepare private proposals and hand their exact draft IDs to human review without another model turn.)
  • Deferred creator loading keeps the original intent (aa65a0e: Keep creator implementation and copy out of chat boot while preserving shared admission and issued-write lifetimes.)
  • Compact package preview presentation keeps the original intent (2d54096: Inspect recommended Template contents without losing the conversation or stacking resizing dialogs.)
  • Bundled skill archive contents keeps the original intent (4e69d15: Preserve complete bundled skill folders and bind inspection and consent to reviewed archive bytes.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Previous blocker resolved: The repair removes updateChoices, editTimer, modalOpen, reviewRead, close/reopen, and presentationLifetime, while retaining the public Gateway choices contract. (ui/src/pages/templates/creator-flow.ts:62, d6f087009ef3)
  • Shared draft ownership: Sidebar handoff and inline hydration reuse a matching connection, agent, draft, and session owner; remount retains revision and publication facts. (ui/src/pages/templates/creator-flow.ts:259, d6f087009ef3)
  • Publication boundary: Status observation checks attempt identity, package, version, and artifact digest; publication retains the live-authority check immediately before upload. (src/gateway/server-methods/templates-drafts.ts:133, d6f087009ef3)
  • Transport and authority coverage: The retained production-handler tests use the real HTTP client and a local server to cover exact uploaded bytes, revoked authority, mismatched receipts, and physical socket loss after upload; the PR records passing results. (src/gateway/server-methods/templates-drafts.test.ts:574, d6f087009ef3)
  • Consumed registry contract verified: This PR consumes ClawHub's publish-attempt protocol. Its authenticated GET handler returns the attempt, name, version, digest, and normalized publication states expected by OpenClaw; the dependency's repository guidance was read. (convex/httpApiV1/packagesV1.ts:2318, 9eff61d0da22)
  • Visual evidence inspected: Inspected the prepared before/after images and current attached screenshots showing inline review, automation details, workspace destinations, and the Pending tooltip. Video inspection was unavailable because scratch downloading failed and ffmpeg is absent; this is a reviewer infrastructure limit. (d6f087009ef3)

Likely related people:

  • Patrick Erichsen: Raw commit c9a7947 adds ui/src/pages/claws/creator-flow.ts:82 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: c9a7947148bb; files: ui/src/pages/claws/creator-flow.ts)
  • Vincent Koc: Raw commit aa65a0e adds ui/src/pages/templates/creator-publication.ts:46 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: aa65a0ed16aa; files: ui/src/pages/templates/creator-publication.ts)
  • Peter Steinberger: Raw commit e76ebe6 adds ui/src/pages/claws/creator-flow.ts:79 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e76ebe68919c; files: ui/src/pages/claws/creator-flow.ts)

PR surface

Source +1038, Tests +662, Docs -2, Other +9. Total +1707 across 47 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 32 3132 2094 +1038
Tests 11 1152 490 +662
Docs 3 19 21 -2
Config 0 0 0 0
Generated 0 0 0 0
Other 1 9 0 +9
Total 47 4312 2605 +1707

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This is a useful, bounded improvement to Template inspection and publication feedback.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

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.

History

Review history (6 earlier review cycles)
  • reviewed 2026-11-10T04:22:55.510Z sha 6f8b898 :: needs changes before merge. :: [P1] Share the sidebar flow with the inline draft review | [P2] Observe the flow before filtering by its session | [P2] Release presentation independently of a pending publication | [P2] Migrate the existing routing and creator browser tests | [P3] Update the bundled skill's review instructions
  • reviewed 2026-11-11T01:13:13.559Z sha 16cc5ff :: needs changes before merge. :: [P2] Preserve revision invalidation when hydrating an existing draft | [P2] Bring the introduced stylesheet growth within the enforced budget
  • reviewed 2026-11-11T01:48:25.179Z sha b0f1c1c :: needs changes before merge. :: [P3] Classify reviewed files by their workspace destinations | [P3] Update the linked draft guide for read-only review
  • reviewed 2026-11-11T02:12:14.308Z sha 8285b27 :: needs changes before merge. :: [P3] Update the public creator guide for read-only review
  • reviewed 2026-11-11T02:48:48.888Z sha de90b28 :: needs maintainer review before merge. :: none
  • reviewed 2026-11-11T17:20:17.118Z sha f6883b7 :: needs changes before merge. :: [P2] Remove the retired editable-review machinery

Reviewed November 11, 2026, 12:50 PM ET / 17:50 UTC (Revision 7).

@openclaw-barnacle openclaw-barnacle Bot reopened this Nov 10, 2026
@clawsweeper clawsweeper Bot removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Nov 10, 2026
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 11, 2026
@Patrick-Erichsen
Patrick-Erichsen enabled auto-merge (squash) November 11, 2026 17:55
@Patrick-Erichsen
Patrick-Erichsen merged commit c1ecbca into main Nov 11, 2026
173 of 180 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the template-inline-publishing branch November 11, 2026 18:13
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 12, 2026
)

* templates: observe bound registry publication attempts

* ui: present read-only template review in the native transcript

* ui: simplify inline template publish action

* feat(templates): expose pinned package and automation review details

* fix(ui): match inline template review to D-series designs

* fix(templates): apply approved publication status and actions

* refactor(ui): defer inactive template sidebar review

* refactor(ui): share template styles within existing asset limits

* fix(ui): retain template draft revision across card remounts

* fix(templates): classify review files by workspace destination

* docs(templates): explain revisions to read-only review

* docs(templates): describe inline publication review

* perf(ui): defer unused template review startup work

* test(ui): supply the application router in sidebar fixtures

* test(templates): reconcile the publication test allocation

* perf(ui): share deferred template presentation styles

* refactor(ui): remove retired template review editing state

* fix(ui): preserve catalog description clamping with shared styles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui docs Improvements or additions to documentation gateway Gateway runtime P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL 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