Repository navigation
fix(ui): template reviews ask to enable an already-enabled feature - #199102
Conversation
Co-authored-by: vyctorbrzezowski <[email protected]>
|
🦞👀 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: needs maintainer review before merge. What this changesThis 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.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +2, Tests +162. Total +164 across 5 files. Added test files: 0. View PR surface stats
Preflight sourceSource 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
LabelsLabel changes: No label 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 November 14, 2026, 2:08 PM ET / 19:08 UTC. |
vyctorbrzezowski
left a comment
There was a problem hiding this comment.
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.
|
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. |
…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]>
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
After
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.Requested and guided by @vyctorbrzezowski; implemented by RoboClaw.
Work sessions
Linked for team reference; these sessions aren’t public.