Repository navigation
Sub-50ms: total optimistic coverage + grounded Linear research, zero-flicker verified offline - #6
Merged
Conversation
…m, judged with code citations 7-agent workflow: 3 research (performance.dev breakdown, Linear sync-engine posts, RAIL/INP) + 3 code audits + 1 judge. Key finding: the literal 'sub-50ms' lives in Artman's talks, not a blog; the documented budget is the 100ms cause-and-effect threshold (RAIL: input <50ms -> response <100ms). NodeRoom meets it on every hand interaction via 5 optimistic mutations; 4 P1s close the at-scale gap (per-artifact queries, render memo/slices, lazy TipTap, upload worker). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…ints locally, zero-flicker verified offline Per the sub-50ms thesis (Convex OptimisticLocalStore): rolled-back-atomically + replayed semantics make zero flicker structural IF updates are shape-parity-exact and replay-idempotent. Added: addResearchRows (exact deterministic mirror of the server row builder), createArtifact/upload (placeholder id + echo guard), job cancel/retry (server-guard-mirroring status flips), deepened resolveProposal (approve paints the cell too — killed a visible two-phase flick). Fixed real replay bug: sendMsg now guards on clientMsgId (retrySend duplicated bubbles). Judged skip: startFreeAuto (idempotent-reuse path would paint a phantom job). Factored withCellApplied shared by hand-edit + approve paths. Proof: context.setOffline(true) -> chat painted 75ms, cell 85ms with network physically unavailable; reconnect flushed to exactly 1 bubble + identical cell value. 192/192 tests, live-DOM verified on noderoom.live (index-BphkbPrB). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
HomenShum
added a commit
that referenced
this pull request
Jun 29, 2026
…board nav (#6) onto the fleet editor Reconciles PR #81 with the concurrent commit 94c2986 (Nebius) that replaced the #71 cell editor and dropped #6. Rebased onto main's editingId/.r-cell-editor editor (kept intact) + layered additively: - #18: row-density presets (Compact clips, Default/Comfortable wrap; persisted per artifact) + name-box/value-bar (selected cell A1 + full value) + .num nowrap. - #6 (restored): grid keyboard grammar - arrows move the active cell, Tab moves, Enter/F2 opens the fleet's editor (beginEdit), gated on locked/proposed/merged. Verified live: namebox A1 / valuebar CardioNova; compact->nowrap, comfortable->normal; ArrowDown moves sel (cardionova->mercury), Enter opens .r-cell-editor; no console errors. Typecheck/build clean. Co-Authored-By: Claude Opus 4.8 <[email protected]>
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Closes the perceived-latency loop from the sub-50ms research: every UI-surfaced mutation now paints locally, with zero-flicker reconcile guaranteed by Convex's atomic rollback + our shape-parity/replay-idempotent updates (per
[email protected]OptimisticLocalStoresemantics).Added optimistic updates (
src/app/store.tsx)addResearchRows— exact client mirror of the server's deterministic row builder (same slugs, suffix-dedup, defaults)createArtifact/uploadArtifact— placeholder-id insert + echo guard; authoritative id swaps atomicallycancel/retry— status flips mirroring the server's own transition guardsresolveProposaldeepened — approve paints the cell value too (killed a visible two-phase flick)sendMsgreplay guard onclientMsgId—retrySendcould duplicate bubbles for the in-flight window (Convex replays optimistic updates on new server data)startFreeAuto— idempotent-reuse may return an existing job; an optimistic insert would paint a phantom (guaranteed flicker)Proof (not asserted)
context.setOffline(true)→ chat painted 75ms, cell edit 85ms with the network physically unavailable (incl. Playwright overhead); reconnect flushed queued mutations to exactly 1 bubble + identical cell value. 192/192 unit tests, typecheck clean, live-DOM verified on noderoom.live (index-BphkbPrB).Also
docs/audit/SUB50MS_RESPONSIVENESS.md— grounded research (the literal "sub-50ms" lives in Artman's talks; documented budget is the 100ms cause-and-effect threshold / RAIL input<50ms), 19-row judged technique map, P1 plan (per-artifact queries, render memo, lazy TipTap, upload worker).🤖 Generated with Claude Code