feat: add gated agent sessions with follow-ups and live tool traces - #32
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.
The agent API already supports durable conversations, but the dashboard cannot open or continue them. This adds a gated Sessions view for searching history, starting requests, and sending follow-ups with the existing conversation context.
sessionIdin API receipts, runs, and session responses. KeepconversationIdas a deprecated request alias and preserve stored IDs and Durable Object identities. Clients readingconversationIdfrom responses must update, including clients using the legacy response format.Streaming follows the support-agent UI pattern: progress and tool results arrive during execution, and the validated answer arrives at completion. It does not expose raw model tokens or reasoning. The observer reads durable snapshots every second and rotates its connection after 25 seconds to recheck access. Existing execution deadlines and model configuration are unchanged.
Validation: platform and live-test TypeScript checks; 493 platform unit/contract tests; 26 local Durable Object/account integration tests; 16 processor tests; 31 web unit tests; six browser scenarios using local fixtures and Chrome; web webpack production build; generated OpenAPI check. Browser coverage includes follow-up retry after uncertain admission, mid-run stream disconnect, page reload, trace restoration, failed runs, access denial, and mobile layout. No live inference or production deployment was needed for these checks. The default local Turbopack build encountered an environment port-binding restriction; the webpack production build passed.