fix: return video agent receipts before runtime startup - #25
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
New conversation requests waited for a cold AgentRuntimeDO before returning run IDs. Production instrumentation measured 1,331 ms in runtime startup in the sampled request. Admission now returns HTTP 202 after UserAccountDO durably records the request, IDs, session entry, and deletion registry. A durable alarm starts the conversation runtime afterward.
Polling and session restoration can read queued admissions immediately. Delivery retries reuse the same IDs, account deletion blocks late writes, and the execution deadline remains anchored to the original admission time. Existing conversation follow-ups retain synchronous validation. The route also avoids a duplicate admin check.
Validation:
The timing-only commit was already deployed directly through Wrangler with approval. The actual latency fix has not been deployed. Production verification will follow after both PRs merge and deploy. An unrelated classifier validation failure for the prompt "Hello" was observed during local testing and is outside this change.