Repository navigation
fix(ui): Secrets looks empty when its inventory request fails - #199116
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 shows the Secrets empty-state message only after the inventory owner has accepted a successful read. Example: The first secrets.store.list request fails with “Could not read the Secrets inventory”.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it fixes a verified misleading Secrets state that remains on main, with directly inspected visual evidence and no actionable introduced defects. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI Secrets page presents Gateway inventory results through a plain TypeScript store owner and Solid readiness boundaries; the view renders loading, errors, accepted entries, or confirmed emptiness. flowchart LR
A[Secrets settings page] --> B[Secrets page owner]
B --> C[Gateway inventory request]
C --> D[Entries and successful read flag]
D --> E[Solid Secrets view]
E --> F[Rows or confirmed empty state]
E --> G[Error and Retry]
G --> B
Technical reviewBest possible solution: Use the existing inventory owner’s loaded flag to distinguish an unread inventory from a successfully confirmed empty one. Do we have a high-confidence way to reproduce the issue? Yes: current-main source resolves a failed first read to the initial empty entries array, and the supplied before screenshot shows the resulting contradictory message; this review did not execute a reproduction. Is this the best way to solve the issue? The patch is the smallest complete fix: it consumes an existing owner fact at the rendering boundary while preserving loading, Retry, accepted data, and confirmed-empty presentation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 794d8e7e023f. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +2, Tests +66. Total +68 across 3 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:12 PM ET / 19:12 UTC. |
vyctorbrzezowski
left a comment
There was a problem hiding this comment.
Reviewed the view guard, inventory-owner lifecycle, existing regression coverage and both published captures. A failed initial Secrets read now keeps the real error and Retry without asserting an empty inventory. Confirmed empty results and accepted data retain their existing behavior. This reuses the owner's loaded flag and adds no read, write, persistence, or permission change. Published failure/retry coverage and current-head CI passed; no additional source changes were needed.
|
Merged in 9b7335e. Reviewed the view guard, inventory-owner lifecycle, existing regression coverage and both published captures. A failed initial Secrets read now keeps the real error and Retry without asserting an empty inventory. Confirmed empty results and accepted data retain their existing behavior. This reuses the owner's loaded flag and adds no read, write, persistence, or permission change. Published failure/retry coverage and current-head CI passed; no additional source changes were needed. Verified human coauthorship is preserved. |
…aw#199116) Show the Secrets empty state only after an accepted inventory read. Preserve the actual error and retry path without changing secret values, storage, or permissions. Co-authored-by: vyctorbrzezowski <[email protected]>
What Problem This Solves
Fixes: Secrets says “No secrets yet” when its first inventory request fails, contradicting the error and suggesting that saved secrets are missing.
User Impact
User impact: a failed first read shows the real error and Retry action without a false empty-state message. Confirmed empty inventories and previously accepted data remain visible where appropriate. No secret values, storage, permissions, or write behavior change.
Why This Change Was Made
The inventory owner already records whether a read succeeded. The empty state now consumes that existing fact rather than treating its initial empty array as a successful result. No new error state, recovery UI, or request is added.
Evidence
Real Control UI with synthetic mock-Gateway responses, light theme at 1280×900. The red rectangles mark the false empty-state card before and the same region after. The real error and Retry remain unchanged.
Before
After
e33981dc1462f63c63c13513cf1f74ecd8726dc1and passes after the fix. It follows pending read → failure → Retry → confirmed empty inventory.loadedstays with the inventory owner.Requested and guided by @vyctorbrzezowski; implemented by RoboClaw.
Work sessions
Linked for team reference; these sessions aren’t public.