Repository navigation
Conversation
…tops the stream keeps earlier steps (#388)
…ailed step save's error (#388)
…he result resolves (#388, #428) onStepEnd only holds the step. prepareStep saves it with the next pending message in one mutation, and a transform after the user's saves the last one before `finish` reaches the caller. A provider error is forwarded to onError and ends the step as failed instead of aborting the stream.
…streams to it (#150, #168) A pendingMessageId option claims the message before the model is called. A second claim while one runs, or once the answer is saved, throws AlreadyClaimedError; a failed or lapsed claim continues the answer in a new pending message. Streams record the pending message they write to, step saves move the link, a timeout fails only that message, and recovery reads only its streams.
…, and batch saves retry without replaying (review)
…ool step, and an approval continuation don't break the claim (review)
…ration's last save, and recover a lapsed attempt in the takeover (review)
… reference is found and saved (review)
…ing it, and find a batch whose reference was lost (review)
…submitting (review)
…keeps its prompt (review)
…ps its prompt (review)
…a lost batch isn't confused with a newer one (review)
… lost batch is found exactly (review)
…search open (review)
…nd two batches for one prompt (review)
…m, not by stepOrder (review)
…saved, and check failed batches when finding a lost one (review)
…ved nothing (review)
…tion streamed (review)
…a stream's link follow its pending message (review)
…newer prompt (review)
…sage's order (review)
commit: |
This branch has not been 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.
Draft for discussion of #150 and #168. Not for merging yet.
pendingMessageIdlets a generation fill a pending message the caller saved, at most once, with its stream linked to that message. Claims live in a newclaimstable.example/convex/batchuses it for batch answers.PRIMITIVES.md.