feat: session-aware architecture with HTTP transport#2
Open
rahulrajaram wants to merge 1 commit into
Open
Conversation
Replace in-memory agent identity (_agentName) with Redis-backed session records so identity survives process boundaries. Agents receive a session_id on registration and pass it to session-scoped tools, enabling cross-process reconnection for stateless and bridge-based transports. Also adds a native HTTP transport so bridges like supergateway are no longer needed. - Extract MailboxStore and SessionStore from RedisClient into src/core/ - Add TTL-based session leases for presence detection - Return session_id from register_agent - Accept optional session_id on send_message, receive_message, close_session, and unregister_agent via ensureSessionBinding helper - Add close_session tool (preserves mailbox) alongside destructive unregister_agent - Add native HTTP transport via StreamableHTTPServerTransport - Replace PTY wrapper polling with Redis keyspace notifications - Add vitest test suite (24 tests) and CI test job - Enable noUncheckedIndexedAccess in tsconfig
rahulrajaram
force-pushed
the
feat/session-aware-architecture
branch
from
April 16, 2026 02:43
23f84e3 to
22ca428
Compare
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
_agentName) with Redis-backed session records, enabling cross-process reconnection and durable mailboxesStreamableHTTPServerTransport, eliminating the need for stdio bridges like supergatewayMailboxStoreandSessionStorefromRedisClientintosrc/core/close_sessiontool (preserves mailbox) alongside destructiveunregister_agentnoUncheckedIndexedAccessin tsconfig for stricter type safetyTest plan