feat(runtime): remote runtime with full TUI parity and production readiness#2749
Merged
Conversation
c74ce71 to
77e084c
Compare
…toolsets, and pause
… connection loss/restored events
- Use constant-time comparison for bearer token to prevent timing attacks - Remove duplicate Authorization header in runAgentWithAgentName - Fix context cancellation in StreamSessionEvents (was cancelling too early) - Add missing Authorization header to StreamSessionEvents - Fix backoff calculation to avoid underflow when attempt==1 - Use request context instead of Background() in ready endpoint - Add safe type assertions in QueueStatus to prevent panics
…sage The AddMessage and UpdateMessage methods were calling UpdateSession with stale session objects, which could overwrite concurrent changes. The store methods already persist the changes, so the UpdateSession calls are unnecessary and potentially harmful.
…ent for interface compatibility
77e084c to
dc7a37e
Compare
rumpl
approved these changes
May 11, 2026
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
This PR implements 20 incremental steps to bring the remote runtime to full TUI parity and production readiness, building on top of the wire protocol scaffolding introduced in #2723.
Batch 1 — Feature parity (19 commits)
Every
ErrUnsupportedinRemoteRuntimeis now gone.50de1adGET /v1/sessions/:id/events0215b65b90e7c8GET /v1/sessions/:id/toolsd081fdbf9c333ae960c6789eb319f90424/health,/ready4234c21+48d32a2Batch 2 — Production readiness
080da0259fd74b1b9f9541/v1/sessions/:id/recovery0608896--auth-tokenflag, middleware,WithAuthTokenclient optionbf25b1fRetry-AfterheaderSecurity fixes (post-review)
f061ac88360baaUpdateSessioncalls that could overwrite concurrent writes0105b5aselectstatement in retry backoff loopc74ce71