Skip to content

Optimistic-UI honesty, E2E dogfood harness, and in-app guided tour - #1

Merged
HomenShum merged 3 commits into
mainfrom
audit/optimistic-ux-wave1
Jun 9, 2026
Merged

HomenShum merged 3 commits into
mainfrom
audit/optimistic-ux-wave1

Conversation

@HomenShum

Copy link
Copy Markdown
Owner

What

  • Optimistic-UI honesty (Wave 1): mutations stop swallowing failures — chat send failed-state + retry, message-edit made optimistic, proposal-approve surfaces CAS conflicts in a persistent banner, job cancel/retry + addResearchRows get pending/failure UX; chat bubbles keyed by clientMsgId (kills the confirm-swap remount). messages.update returns a discriminated {ok,reason}.
  • E2E dogfood: Playwright + memory-mode harness (no backend/keys) — chat + guided-tour specs pass in real Chromium; backend reactivity/CAS specs scaffolded behind E2E_CONVEX_URL.
  • In-app guided walkthrough: dependency-free spotlight tour; auto-starts on first visit in both memory mode and the live shared room; ? to replay; seen-flag (no nag); keyboard + reduced-motion + mobile-graceful. Demo-mode badge + DEMO.md run-of-show.

Verified

Notes

  • Several touched files carried pre-existing working-tree edits from concurrent work; only this change-set is committed.
  • Full grounded audit in docs/audit/.

🤖 Generated with Claude Code

HomenShum and others added 3 commits June 9, 2026 00:49
Wave 1 (honest-status + optimism): messages.update returns a discriminated {ok,reason}; RoomStore wrappers stop swallowing failures (chat send failed-state + retry, message-edit made optimistic, proposal approve surfaces CAS conflicts in a persistent banner, job cancel/retry + addResearchRows get pending/failure UX); chat bubbles keyed by clientMsgId to kill the confirm-swap remount. Stable data-testids added across chat, proposals, note, wall, trace, tabs, left-rail.

E2E dogfood: Playwright + memory-mode harness (no backend/keys) — chat optimistic send/edit + guided-tour specs pass in real Chromium; backend reactivity/CAS specs scaffolded and gated on E2E_CONVEX_URL.

Guided walkthrough: dependency-free spotlight tour (GuidedTour.tsx) auto-starts on first demo-room visit, replays via the header ? button, persists a seen-flag, keyboard + reduced-motion + mobile-graceful; poll-based measure self-heals against panel animation. Demo-mode badge + DEMO.md run-of-show. Verified: build, typecheck (app+convex), 173 unit tests, 4 E2E all green.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
noderoom.live root = live shared Q3DEMO (stage/second-device wow, verified two-client cross-sync); noderoom.live/?mode=memory = safe isolated public-QR build. Includes one-command revert to memory-only.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
… too

Previously gated to host/memory (canRunCollab); now also fires for anonymous joiners of the live Q3DEMO room, keyed on the seeded 'Q3 variance' sheet so it never triggers in a blank room. One-shot via a ref; still respects the seen-flag and the ? replay button.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@vercel

vercel Bot commented Jun 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
noderoom Error Error Jun 9, 2026 8:16am

Request Review

@HomenShum
HomenShum merged commit 601bf56 into main Jun 9, 2026
2 of 5 checks passed
HomenShum added a commit that referenced this pull request Jun 17, 2026
…reRecords (#1)

Both make a capture land in the Trace tab; together they cover the agent path
(Firecrawl, in-Convex) and the exact-box worker path (Browserbase, off-Convex).

#2 — agent-run captures auto-render:
- RoomTools gains an optional recordCapture() (core/types); only the server port
  implements it, so memory/browser ports are unaffected.
- ConvexRoomTools.recordCapture: stores each screenshot in Convex storage, then
  captures:record → a captureRecord (renders in the Trace tab via byRoom).
- captureSourceFirecrawlTool now calls rt.recordCapture(...) after the capture, so
  when the room agent uses capture_source the screenshots+values show up in Trace.

#1 — Browserbase worker → captureRecords (exact boxes):
- captures.ts: token-gated public mutations workerUploadUrl + ingest (CAPTURE_WORKER_
  TOKEN). The off-box Browserbase worker can't use a room session, so it authenticates
  with a shared token.
- capture-live.ts: a Convex sink — when CAPTURE_WORKER_TOKEN + CAPTURE_ROOM_ID +
  (CAPTURE_CONVEX_URL|VITE_CONVEX_URL) are set, it uploads screenshots to Convex storage
  and ingests a captureRecord (boxes preserved → renders with the highlight overlay);
  otherwise it writes the static bundle as before.

Verified: convex dev --once deployed (functions ready) · app tsc clean · convex tsc
clean · capture vitest 11/11 · design floor SHIP (P0=0 P1=0) · trace e2e 6/6 · box
overlay render is e2e-tested (.r-tracevu-box) and byRoom emits the same attachments
shape. NOT live-run from the sandbox: an agent-run capture (#2 needs a room agent run)
and the Browserbase worker (#1 needs Browserbase keys + CAPTURE_WORKER_TOKEN in the
worker shell) — both are deployed + typechecked; trigger them with keys set.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
HomenShum added a commit that referenced this pull request Jun 21, 2026
…box/row)

Never render the sample narrative inside a LIVE room — show real data or an
honest "not available" state. Offline (memory mode) keeps the full seed demo.

- Pulse roster: people = live members; agents = live agents pointing to Jobs
  (honest empty states); cost view = "metered server-side" note (no live cost).
- Presence bar: agents count from live members; cost segment → live job count
  opening Jobs (cost isn't streamed to mobile).
- Rooms switcher: live = the one connected room (active + check); switchRoom is
  a no-op in live (was toasting a non-existent sample room — Bug #1).
- Inbox tab: reads ctx.inboxItems (live proposals) instead of D.INBOX — the
  biggest leak; the data was already wired but the screen bypassed it.
- Files row preview + RowSheet: display ctx.row (live cells when bound); the
  "N to review" pill + "N fields not source-backed" prose derive from it.
  Offline parity preserved exactly ("2 to review" / "Two fields").
- Plan/Evidence/Coach sheets: in a live room render an honest "open on desktop"
  card (terra's rule — deep artifact work stays on desktop); full sample sheets
  offline.

Verified: tsc 0 errors; vite build clean; two adversarial review passes (all
gates PASS, no bugs); offline DOM unchanged (cream surface, "2 to review",
Inbox sample items). Still sample in live (needs a MobileLive backend extension,
not gated): Home recents/favorites/briefings and Capture event-meta/note/extract.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
HomenShum added a commit that referenced this pull request Jun 22, 2026
…en-source) via SFN_MODEL_ID env

gpt-4.1-mini is closed-source OpenAI; the honest-lane probe should default to a current open-source model. z-ai/glm-5.2 is the #1 agent-route entry in src/nodeagent/models/modelCatalog.ts (1M context, Apache-licensed weights, routed via OpenRouter). SFN_MODEL_ID env still overrides per-run. Re-run results vs gpt-4.1-mini: glm-5.2 live runtime = 1.000/3 mean (all stop=done, no step_budget exhaust, no fabrications) vs gpt-4.1-mini 0.925/3 (NB-03 fabricated a comma-joined cite.file). The skill-as-diagnostic surfaced a real model x runtime fit difference.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
HomenShum added a commit that referenced this pull request Jun 28, 2026
feat(grid): soft-wrap + dynamic row height + auto-grow cell editor (web-design audit #1/#2/#6)
HomenShum added a commit that referenced this pull request Jun 28, 2026
…lies + memoized markdown

Web-design audit batch 2 (chat surface, 5.5/10) - the brief's #1 anti-pattern.
- Desktop: cap .r-chat / .r-agent-unified-stream .r-md at 68ch (line-height 1.6) so long
  replies read as a column, not full-panel sprawl (Perplexity/ChatGPT/Claude).
- Mobile: agent replies render full-width (drop messenger bubble radius/border/bg); the
  gradient bubble stays only for the user's own messages.
- Perf: memoize MarkdownBody parse ([text]) so the transcript doesn't re-parse every token.

Verified live: .r-chat .r-md max-width 579px (=68ch), line-height 21.6px, no console errors.
Typecheck clean, build OK.

Deferred to the next chat pass: Stop/Regenerate during streaming (#4), jump-to-latest +
inline citations (#15), code-fence buffering + copy button (#8 remainder).

Co-Authored-By: Claude Opus 4.8 <[email protected]>

This branch had an error being deployed

1 failed deployment
Preview — 066d57e8 Deployed Jun 9, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant