Repository navigation
fix(nostr): preserve profile rows across settings refreshes - #182289
Conversation
Keep fixed channel facts and profile fields mounted while owner snapshots change. Preserve the existing synchronous request authority and lazy plugin boundary, and compose native status classes with Solid class objects.
|
🦞👀 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 preserves Nostr channel and profile DOM rows across refreshed settings snapshots. Example: A settings refresh changes the profile name from Alice to Refreshed.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR makes a focused repair to Nostr settings row retention that current main still needs, with no actionable introduced defect found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Nostr settings plugin consumes host snapshots through its existing synchronous controller and renders channel facts, profile metadata, and the profile editor into the Control UI. flowchart LR
A[Host settings snapshots] --> B[Nostr controller]
B --> C[Presentation signal]
C --> D[Channel facts]
C --> E[Profile section]
C --> F[Profile editor]
F --> B
Technical reviewBest possible solution: Retain the plugin's existing controller and render stable channel and profile rows, as this PR does. Do we have a high-confidence way to reproduce the issue? Current-main source creates fresh row objects and recomputes profile JSX from refreshed snapshots, matching the reported node replacement; no target code was executed during this read-only review. Is this the best way to solve the issue? The patch removes the identity churn at its presentation owner without introducing caches or changing controller authority, and the added regression checks both node retention and refreshed values. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2924588f01c1. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -12, Tests +28. Total +16 across 3 files. Added test files: 0. View PR surface stats
LabelsLabel 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 October 24, 2026, 2:22 AM ET / 06:22 UTC. |
|
Merged via squash.
|
…#182289) Keep fixed channel facts and profile fields mounted while owner snapshots change. Preserve the existing synchronous request authority and lazy plugin boundary, and compose native status classes with Solid class objects.
What Problem This Solves
Nostr settings rebuilt their fact arrays and the profile helper output on each host snapshot, remounting unchanged channel/profile rows. Render fixed channel facts directly and keep the profile section mounted with stable field names, so refreshed values update the existing DOM. Status classes now use Solid's class object form.
Request admission, cancellation, busy/error/draft state, hidden-modal publication, and the settings-only plugin activation boundary remain with their existing owners. No host internals or new SDK surface are used. The profile image remains keyed by URL so an error-hidden image is retired when the URL changes.
Evidence
false/false/false→true/true/true; updated text visible; no browser errorsprofile.test.tsx, pinned Bun, one workerpnpm tsgo:uiand focused Nostr browser typecheckgit diff --checkUnused files (1) src/gateway/assistant-human-mentions.tsalso fails under the same command on exact base23db299b15b; no Nostr findingsThe four production TSX files and coupled reactive modules were audited. Existing save/import flags are authoritative synchronous owner facts; this foreign mount has no retirement handshake, so adding presentation actions would introduce a competing busy lifetime. There are no async render reads, manual lazy component loaders, snapshots/clones in rendering, or context wrapper deviations to migrate. Accounts already use semantic account IDs; profile fields now use the fixed field names. No host boot files changed; the plugin bundle is measured independently, and it shrank by 363 bytes gzip. The shared plugin guard/baselines are owned by the companion W-S2-PLUGINS lane.
Before (built plugin, synthetic profile):
After (same synthetic profile):