Add continuity parsing, workspace paths, and relay-pty tests#217
Merged
khaliqgant merged 7 commits intomainfrom Jan 19, 2026
Merged
Add continuity parsing, workspace paths, and relay-pty tests#217khaliqgant merged 7 commits intomainfrom
khaliqgant merged 7 commits intomainfrom
Conversation
🤖 My Senior Dev — Analysis Complete👤 For @khaliqgant📁 Expert in View your contributor analytics → 📊 7 files reviewed • 2 high risk • 2 need attention 🚨 High Risk:
🚀 Open Interactive Review →The full interface unlocks features not available in GitHub:
💬 Chat here: 📖 View all 12 personas & slash commandsYou can interact with me by mentioning In PR comments or on any line of code:
Slash commands:
AI Personas (mention to get their perspective):
For the best experience, view this PR on myseniordev.com — includes AI chat, file annotations, and interactive reviews. |
…tests Add relay-pty rust infrastructure tests
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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 enhances the relay-pty component with better support for agent session continuity and workspace isolation.
Key Changes
Continuity Command Parsing: Added file-based continuity command support in relay-pty to parse
save,load, anduncertainactions from the relay protocol. These commands are now emitted as JSON alongside traditional relay commands, enabling agents to preserve and recover session state across disconnections.Workspace Path Isolation: Implemented namespace support for default socket and outbox paths using the
WORKSPACE_IDenvironment variable. This enables multiple workspaces to coexist safely without path conflicts, critical for multi-tenant deployments.Enhanced Test Coverage: Significantly expanded relay-pty unit test suite to cover:
Why This Matters
Agents need reliable session recovery to continue work across connection failures. This PR provides the foundation for seamless session persistence while ensuring workspace isolation prevents cross-workspace data leaks.
Testing
cargo testfails locally due to missing Rust toolchain setup (not a code issue)Next Steps