feat(chat): operator-only showcase mint via the real pipeline#581
Merged
Conversation
mintShowcaseRun (internalMutation — unreachable from clients, invoked only via the sanctioned `npx convex run` deploy-key path) runs the exact startChat insert + runStreamingChat schedule for a designated existing email-backed owner, resolved from ownerEmail across known auth providers and failing closed on no match — no ownerless or fabricated runs. readRunForOperator polls the terminal state + hash. Purpose: mint the landing page's "answered example" receipt with showcase-grade content instead of the current QA-run prompt. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
HomenShum
enabled auto-merge (squash)
July 18, 2026 07:16
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Demo: walkthrough of the surfaces this PR changed is available as a workflow artifact ( |
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.
Summary
Step 1 of swapping the landing's "answered example" to showcase-grade content: an operator-only mint that runs the REAL pipeline.
mintShowcaseRun—internalMutation, unreachable from any client; invoked exclusively vianpx convex runwith a deploy key (the repo's happy-path-probe convention). MirrorsstartChat's exact insert +runStreamingChatscheduling; owner resolved fromownerEmailacross known auth providers, failing closed when no non-anonymous account matches. Nothing fabricated — quotas, ownership, privacy identical to a normal run.readRunForOperator— poll terminal state + hash.Step 2 (after merge + CI Convex deploy): mint once with a showcase prompt, verify the receipt renders, swap the one-line hash in
ChatEmptyState.Verification
npx convex codegenclean ·tsc0 errors · chatRuns shape + contract suites 50/50🤖 Generated with Claude Code