Repository navigation
refactor: present Secrets reads and saves with native Solid actions - #180418
Conversation
Keep request admission and write settlement in the existing Secrets owner. Observe admitted reads, scope optimistic saving to its presentation, and release pending presentation on Gateway replacement or route departure.
|
🦞👀 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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR replaces manual Secrets loading and save presentation with Solid readiness, actions, and scoped optimistic feedback. Example: Save PUBLIC_URL=https://new.example.test and receive a rejected response.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: the maintainer-directed refactor preserves the existing Secrets authority, and inspection found no actionable introduced defect. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI Secrets page accepts list, edit, bulk-save, and delete interactions; its plain TypeScript owner admits Gateway requests and records outcomes, while Solid renders rows, dialogs, and pending feedback. flowchart LR
A[Secrets controls] --> B[Secrets page owner]
B --> C[Secrets store operations]
C --> D[Gateway RPC]
B --> E[Owner projection]
E --> F[Solid readiness and actions]
F --> A
G[Router and Gateway lifecycle] --> B
Technical reviewBest possible solution: Retain the existing Secrets request owner and complete the scoped browser lifecycle proof for the native presentation refactor. Do we have a high-confidence way to reproduce the issue? This is a behavior-preserving refactor, with no original failing-product reproduction claimed; inspection confirms the existing manual loading and busy presentation on main. Is this the best way to solve the issue? The change follows the existing Solid recipe, observes admitted reads without duplicating RPCs, and keeps request authority and actual write settlement in the established owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d731b3fef073. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +65, Tests +127. Total +192 across 5 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 October 22, 2026, 4:10 AM ET / 08:10 UTC. |
|
Merged via squash.
|
…penclaw#180418) Keep request admission and write settlement in the existing Secrets owner. Observe admitted reads, scope optimistic saving to its presentation, and release pending presentation on Gateway replacement or route departure.
What Problem This Solves
Secrets loading and save feedback now use native Solid readiness and actions, with pending presentation released when the Gateway changes or the user leaves the page.
User Impact
The Secrets dialog keeps its existing appearance, validation, permissions, confirmation, error messages, retry behavior, and draft retention. Navigating away or reconnecting does not wait for an admitted save to settle. The existing owner still decides whether a request may run and records its actual result.
Why This Change Was Made
Replace the hand-built revision signal with the shared owner projection, observe admitted list receipts under
Loading, and scope optimistic saving to the current store. A synchronous router subscription releases presentation before Solid can park page cleanup; it does not cancel the write or issue another RPC.Evidence
Both normalized UI builds passed. The strict paired performance check passed with no warnings or violations: startup JavaScript is 316,219 → 316,238 bytes gzip (+19), chat boot 1,439,258 → 1,439,282 (+24), and new-session boot 1,016,089 → 1,016,102 (+13). All changes are below the 64-byte build-variance allowance; startup raw bytes and CSS are unchanged.
Direct Node/Playwright proof passed on both builds: a failed list read recovers through Retry with exactly two list requests; a held save disables its controls; a rejected save shows the error and retains the draft. The head also passed a successful retry, displaying the returned row and closing the dialog. Before/after images below use only synthetic data and were inspected and delivered in chat.
tsgo:ui, scoped lint/format, andgit diff --checkpassed. Isolated review reported no actionable P0–P2 findings. The changed files were reviewed in isolation; the existing store implementation was inspected locally.The two focused Bun test files did not reach assertions locally. The first attempt stalled before loading Vitest; the second reached Vitest but failed to start its worker (
Timeout waiting for worker to respond). The attempts were stopped by the repository wrapper, and no local test pass is claimed. PR CI supplies the missing unit-test evidence.The canonical
pnpm deadcode:knipcheck exited 1 with the same 13 heartbeat-file findings as the exact-base check; the command output is byte-identical. It reports no changed Secrets path.The broader static scan (
pnpm dlx --package [email protected] knip --config config/knip.config.ts --production --no-progress --reporter compact --no-config-hints --exclude duplicates) reported 13 unused files, 19 unused exports, and 10 unused exported types. No changed Secrets path was reported, and all reported paths/configuration have unchanged blobs against the base. That broader command was not replayed on the base, so its export/type findings are not claimed as baseline-proven.Solid audit and change size
onSettled1 → 1; ordered router-retirement subscription 0 → 1Loading0 → 1Revealgroup introducedcreateRoot,getOwner,runWithOwner, and productionflushremain 0Production lines: 824 → 889 (+65). Test lines: +127. The growth is the receipt/action/lifetime boundary plus two page-level scenarios; the plain Secrets owner remains the sole request and write authority. Effects, render effects,
untrack, direct DOM listeners, and DOM queries remain zero in the changed production files. No baseline or dependency changes.