Skip to content

feat: add support for exp immortal streams command and ssh --stdio variant - #19328

Closed
ibetitsmike wants to merge 6 commits into
mike/immortal-streams-agent-apifrom
mike/immortal-streams-cli
Closed

ibetitsmike wants to merge 6 commits into
mike/immortal-streams-agent-apifrom
mike/immortal-streams-cli

Conversation

@ibetitsmike

@ibetitsmike ibetitsmike commented Aug 12, 2025 •

Copy link
Copy Markdown
Collaborator

Fixes: #19979

Added support for immortal streams to maintain persistent TCP connections to workspace services that automatically reconnect when interrupted.

What changed?

  • Implemented a new immortal streams feature that provides persistent TCP connections to workspace services
  • Created CLI commands for managing immortal streams (coder exp immortal-stream list/delete)
  • Added support for using immortal streams with SSH stdio command
  • Implemented server-side API endpoints for creating, listing, and deleting immortal streams
  • Added fallback mechanism to regular connections when immortal streams are unavailable

How to test?

  1. Use the experimental CLI commands to manage immortal streams:

    coder exp immortal-stream list <workspace-name>
    coder exp immortal-stream delete <workspace-name> <stream-name>
    
  2. Test SSH with immortal streams:

    coder ssh --stdio --immortal <workspace-name>
    
  3. Verify automatic reconnection by temporarily disrupting the network connection

Why make this change?

Immortal streams provide a more resilient connection mechanism for workspace services, automatically reconnecting when network interruptions occur. This improves the user experience by maintaining persistent connections to SSH and port-forwarded services, reducing the need for manual reconnection and preventing session loss during temporary network issues.

ibetitsmike commented Aug 12, 2025 •

Copy link
Copy Markdown
Collaborator Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-cli branch 3 times, most recently from 9099850 to 992740a Compare August 13, 2025 14:52
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-agent-api branch 2 times, most recently from 2fbfcb1 to b4276f8 Compare August 15, 2025 00:51
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-cli branch 2 times, most recently from 59b4c90 to 32b88ff Compare August 15, 2025 08:48
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-agent-api branch from b4276f8 to 42450ba Compare August 15, 2025 08:48
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-cli branch from 32b88ff to 405d3d1 Compare August 16, 2025 11:06
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-agent-api branch 2 times, most recently from 0b6e27e to 9bcaa2f Compare August 19, 2025 06:52
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-cli branch from 405d3d1 to 5f740d4 Compare August 19, 2025 06:52
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-agent-api branch from 9bcaa2f to e256a4a Compare August 19, 2025 12:01
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-cli branch from 5f740d4 to 9a3fc9f Compare August 19, 2025 12:01
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-agent-api branch from e256a4a to 5c50940 Compare August 20, 2025 11:42
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-cli branch from 9a3fc9f to e73338d Compare August 20, 2025 11:42
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-agent-api branch from 5c50940 to c0cba16 Compare August 20, 2025 12:38
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-cli branch 2 times, most recently from 4996ebe to 5ed4b5d Compare August 20, 2025 13:17
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-agent-api branch from 57b8912 to fd99a7f Compare August 25, 2025 20:32
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-cli branch from 5ed4b5d to 5e5d5b5 Compare August 25, 2025 20:32
@github-actions github-actions Bot added the stale This issue is like stale bread. label Sep 2, 2025
@github-actions github-actions Bot closed this Sep 5, 2025
@ibetitsmike ibetitsmike reopened this Sep 8, 2025
@ibetitsmike ibetitsmike removed the stale This issue is like stale bread. label Sep 8, 2025
@ibetitsmike
ibetitsmike marked this pull request as ready for review September 8, 2025 10:58
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-cli branch from 387f151 to 72aa4cf Compare September 9, 2025 11:01
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-agent-api branch from c00f439 to dafdb32 Compare September 12, 2025 12:55
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-cli branch from 72aa4cf to 8d68a4f Compare September 12, 2025 12:55
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-agent-api branch from dafdb32 to be330a4 Compare September 12, 2025 12:59
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-cli branch from 8d68a4f to 0a3a1b6 Compare September 12, 2025 12:59
@ibetitsmike ibetitsmike changed the title chore: add support for immortal streams to cli and agent feat: add support for immortal streams to cli and agent Sep 12, 2025
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-agent-api branch from be330a4 to 6e6b13f Compare September 26, 2025 09:37
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-cli branch from 0a3a1b6 to d4d2222 Compare September 26, 2025 09:37
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-agent-api branch from 6e6b13f to 41d9b84 Compare September 28, 2025 11:22
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-cli branch 2 times, most recently from 0a70cfd to 9747033 Compare September 29, 2025 07:40
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-agent-api branch from bcfddeb to 09c5fe0 Compare September 29, 2025 07:40
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-cli branch 2 times, most recently from 76c0b4a to 0ff9a92 Compare September 29, 2025 08:26
@ibetitsmike ibetitsmike changed the title feat: add support for immortal streams to cli and agent feat: add support for exp immortal streams command and ssh --stdio variant Sep 29, 2025
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-agent-api branch from f97ff42 to f598d1f Compare September 29, 2025 10:24
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-cli branch 2 times, most recently from 303564c to fab3e5d Compare September 29, 2025 22:10
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-agent-api branch from 16eaf62 to 547585d Compare September 29, 2025 22:35
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-cli branch from fab3e5d to 6c5cfcb Compare September 29, 2025 22:35
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 12, 2026
@github-actions
github-actions Bot deleted the mike/immortal-streams-cli branch March 30, 2026 00:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants