Skip to content

fix(ui): template reviews ask to enable an already-enabled feature - #199102

Merged
vyctorbrzezowski merged 1 commit into
mainfrom
fix/defensive-ui-template-readiness
Nov 15, 2026
Merged

vyctorbrzezowski merged 1 commit into
mainfrom
fix/defensive-ui-template-readiness

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: saved Template reviews tell users to turn on Templates while configuration is still loading—or when Templates is already enabled in the Gateway-served page configuration.

User Impact

User impact: saved drafts open for review when Templates is enabled, without a false trip to Settings. Genuine disabled-feature and access/failure guidance remains; publishing still requires the existing explicit action and Gateway permissions.

Why This Change Was Made

Template review now uses the same availability owner as the Templates page instead of treating a missing full configuration snapshot as disabled. Pending configuration stays quiet, and the existing Gateway-served configuration is sufficient to show the review. No additional configuration request, recovery banner, cache, or state owner is introduced.

Evidence

Real Control UI, synthetic saved draft and matching mock-Gateway viewer, dark theme at 1440×900. Both captures use the same enabled configuration supplied by the Gateway-served page. Red rectangles mark the incorrect warning before and the working review after.

Before

Before: Templates is enabled, but its saved review asks the user to turn it on

After

After: the same saved draft opens for review without a configuration detour

  • Proof baseline: main at e33981dc1462f63c63c13513cf1f74ecd8726dc1. The bootstrap-enabled regression fails on that baseline and passes with the fix without issuing a full config read. The pending-config regression also fails on main with screenshot capture disabled; its negative assertion waits for the real lazy renderer rather than just its outer placeholder.
  • Owning browser suite: 7 passed, covering pending enabled/disabled/failed configuration, Gateway-served configuration, the existing review flow, and narrow-card layout (35.41 seconds). These browser cases exercise real routing and lazy inline rendering; CI time is not yet available. No live Gateway or registry publication was performed.
  • Focused creator/route unit suites: 28 passed (2.76 seconds). UI types, focused lint, formatting, and diff checks passed. Browser proof uses the real app and mock external responses, not a replacement component.
  • Original review availability: feat: create templates directly from chat #195730; inline review: feat: review template packages inline before publishing #196427. The actual disabled and unavailable branches are preserved.
  • Self-review and pr-simplify complete: the duplicate feature-availability read is removed; production net +2 lines is the distinction between unknown and disabled. Existing test files own the regressions. Independent automated review and broad PR CI are not claimed complete. This draft is for Vyctor’s review, not authorized for merge.

Requested and guided by @vyctorbrzezowski; implemented by RoboClaw.

Work sessions

Linked for team reference; these sessions aren’t public.

@clawsweeper

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

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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 clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR lets saved Template reviews use the existing display configuration and suppresses disabled-feature warnings while configuration is unknown.

Example: The Gateway-served configuration enables Templates and the conversation contains the saved “Research Brief” draft.

  • Before: The review asks the user to turn on Templates because a full configuration snapshot is absent.
  • After: The saved draft renders its review card with the existing Publish action.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A useful, focused repair with inspectable browser evidence and relevant regressions; broad code CI remains unrun on this draft.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots exercise the real Control UI with a synthetic saved draft and Gateway responses, showing the incorrect warning replaced by review under bootstrap-enabled configuration; live Gateway and registry publication are expressly outside this narrow presentation proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A saved Template review tells users to enable an already-enabled feature or displays that diagnosis before configuration arrives.
Reason: The maintainer-authored direction restores consistent availability reporting while preserving disabled-feature recovery, permissions, and explicit publication.

Merge readiness

✅ Ready for maintainer review

Keep open: this PR fixes a current-main review-availability bug with a focused change; no actionable defects were found.

Priority: P2
Reviewed head: cdcb94cd9aa2542c49ec4f8d57e4950f2592bcb2

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI combines saved draft descriptors, runtime configuration, and Gateway capabilities to show a private Template review through the existing creator flow.

flowchart TD
  A[Saved draft descriptor] --> D[Review availability]
  B[Display configuration] --> C[Existing Templates availability reader]
  C --> D
  E[Gateway capabilities and scopes] --> D
  D --> F[Inline review or guidance]
  F --> G[Existing creator flow]
Loading

Technical review

Best possible solution:

Use the existing Templates availability reader, distinguish unknown configuration from disabled configuration, and preserve the current review and publication owners.

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

Current-main source establishes the absent-snapshot path, and supplied before/after browser captures show its visible consequence; no target code was executed during this read-only review.

Is this the best way to solve the issue?

This is the smallest complete repair: it removes the competing availability read and updates both consumers of the new loading result without adding requests, caches, or configuration.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 8a438e799b4e.

Provenance checked

  • Draft availability selection changes intended behavior with a stated reason (68647db: Chat-authored reviews required enabled Templates and an active administrator connection, with guidance when review could not start.)
  • Inline review warning keeps the original intent (c1ecbca: Render exact-archive review inside the requesting conversation and explain genuine availability failures.)
  • Immediate review handoff feedback keeps the original intent (68647db: Explain disabled Labs or insufficient access without loading the creator runtime or touching the saved draft.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Patrick Erichsen: Raw commit 68647db adds ui/src/pages/templates/draft-navigation.ts:25 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 68647dbe133c; files: ui/src/pages/templates/draft-navigation.ts)

PR surface

Source +2, Tests +162. Total +164 across 5 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 3 17 15 +2
Tests 2 162 0 +162
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 179 15 +164

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.

Review metrics

Metric Value Why it matters
Production versus regression coverage Production +17/-15 lines; tests +162/-0 lines The small production change reuses an existing owner; added coverage exercises delayed configuration, bootstrap availability, lazy rendering, and handoff feedback.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: The false disabled-feature diagnosis obstructs saved Template review, with limited impact outside this optional workflow.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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.

Reviewed November 14, 2026, 2:08 PM ET / 19:08 UTC.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 15, 2026 05:20

@vyctorbrzezowski vyctorbrzezowski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the availability owner, both consumers, the regression coverage and the published before/after captures. Saved template reviews now use the same availability result as the Templates page, including Gateway-served configuration, while pending reads stay distinct from disabled or failed states. Explicit publishing, viewer permissions and connection guards are unchanged. The existing source-served browser proof covers enabled, disabled, failed and pending configuration; current-head CI passed. No additional source changes were needed.

@vyctorbrzezowski
vyctorbrzezowski merged commit 1d1d2b5 into main Nov 15, 2026
169 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the fix/defensive-ui-template-readiness branch November 15, 2026 05:33
@vyctorbrzezowski

Copy link
Copy Markdown
Member

Merged in 1d1d2b5.

Reviewed the availability owner, both consumers, the regression coverage and the published before/after captures. Saved template reviews now use the same availability result as the Templates page, including Gateway-served configuration, while pending reads stay distinct from disabled or failed states. Explicit publishing, viewer permissions and connection guards are unchanged. The existing source-served browser proof covers enabled, disabled, failed and pending configuration; current-head CI passed. No additional source changes were needed.

Verified human coauthorship is preserved.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 16, 2026
…penclaw#199102)

Reuse the existing Templates availability owner for saved draft review, including bootstrap configuration. Distinguish pending configuration from a disabled feature without adding reads or changing publish permissions.

Co-authored-by: vyctorbrzezowski <[email protected]>
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 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: S 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.

2 participants