Repository navigation
Conversation
…request Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CN7rKG2PbHZnCtCWmFAP2w
…s/:id/events) Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CN7rKG2PbHZnCtCWmFAP2w
… client as second tab Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CN7rKG2PbHZnCtCWmFAP2w
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CN7rKG2PbHZnCtCWmFAP2w
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
|
This branch was successfully 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
A page that didn't start an answer can show it as it is written: a second tab, a page reloaded mid-answer, and the answer to a signal, a held message or a schedule. Optional and labelled experimental. Without
liveStreamson the runtime nothing changes.liveStreamson the runtime (LiveStreams):publish/subscribekeep a running answer's stream where another request can read it; optionalnotify/listencarry per-chat events. Every turn's stream is copied into it underrunId:fencingToken.memoryLiveStreams()in core, for one long-running server.resumable-streamand two pub/sub commands.runtime.streamChat/GET chats/:id/stream: the running answer from its start, asuseChatreads it on resume.204when nothing is running.runtime.watchChat/GET chats/:id/events: server-sent events (hello,started,ended,changed), so a page needs no poll loop.404when the store can't notify.guides/live-updates, reference and route tables, pointers from the queue, signals, chat UI, streaming and Vercel pages. Changeset: patch for core and server.Tested
packages/core/src/live-stream.test.ts: each case against the in-memory store and againstresumable-streamover a stand-in pub/sub. Second reader gets the answer from its start; a held turn's answer is readable; events for started / ended / changed; a failed publish doesn't stop the answer.apps/example/src/live-stream.smoke.ts(pnpm --filter @intentface/latch-example smoke:live-stream, needs a Redis atREDIS_URL, defaultredis://127.0.0.1:6390): two runtimes with their own connections to a real Valkey and one database, three tabs driven by the AI SDK's chat client (AbstractChat+DefaultChatTransport). A tab on the other instance shows the first half of an answer before it is finished; the sending tab, also watching, shows each message once; a tab opened mid-answer catches up; a signal's answer is read live by all three. Not run in CI.Not tested
useChatandEventSourcein a browser. The guide's snippet follows the logic the smoke runs, but has not been run.Known limits
hellocovers a running answer.🤖 Generated with Claude Code
https://claude.ai/code/session_01CN7rKG2PbHZnCtCWmFAP2w