Skip to content

feat: add immortal streams manager - #19225

Closed
ibetitsmike wants to merge 10 commits into
mainfrom
mike/immortal-streams-agent-api
Closed

ibetitsmike wants to merge 10 commits into
mainfrom
mike/immortal-streams-agent-api

Conversation

@ibetitsmike

@ibetitsmike ibetitsmike commented Aug 7, 2025 •

Copy link
Copy Markdown
Collaborator

Closes: #19978

Added an "Immortal Streams" feature to the agent that maintains persistent TCP connections to local services, allowing clients to reconnect without losing data.

What changed?

  • Implemented a new immortalstreams package in the agent that provides persistent TCP connections to local services
  • Added a manager that handles stream creation, reconnection, and cleanup
  • Implemented a backed pipe mechanism that buffers data during client disconnections
  • Created REST API endpoints for creating, listing, and deleting streams
  • Added WebSocket support for client reconnections with sequence numbers to track data flow
  • Integrated the immortal streams manager into the agent lifecycle

ibetitsmike commented Aug 7, 2025 •

Copy link
Copy Markdown
Collaborator Author

@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-agent-api branch from b81d8df to fa4eff3 Compare August 7, 2025 12:38
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-backed-base branch from 27da7ef to e5be506 Compare August 7, 2025 12:38
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-agent-api branch from fa4eff3 to 6e48486 Compare August 12, 2025 12:32
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-backed-base branch from e5be506 to 77e912f Compare August 12, 2025 12:32
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-agent-api branch 2 times, most recently from ea83092 to bae956a Compare August 12, 2025 21:21
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-backed-base branch from 16abe05 to dde9516 Compare August 12, 2025 21:21
@ibetitsmike ibetitsmike changed the title chore: add backed reader, writer and pipe chore: add immortal streams manager Aug 12, 2025
@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-backed-base branch from 7468299 to b2188f9 Compare August 15, 2025 00:51
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-agent-api branch 3 times, most recently from 0b6e27e to 9bcaa2f Compare August 19, 2025 06:52
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-backed-base branch from 45558ec to 064514e Compare August 19, 2025 06:52
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-agent-api branch 2 times, most recently from e256a4a to 5c50940 Compare August 20, 2025 11:42
@ibetitsmike
ibetitsmike marked this pull request as ready for review August 20, 2025 11:42
@ibetitsmike
ibetitsmike requested review from spikecurtis and removed request for spikecurtis August 20, 2025 11:43
@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-backed-base branch from 95dc01a to 85c505d Compare August 20, 2025 12:38
@ibetitsmike
ibetitsmike changed the base branch from mike/immortal-streams-backed-base to graphite-base/19225 August 25, 2025 20:19
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-agent-api branch from 57b8912 to fd99a7f Compare August 25, 2025 20:32
Base automatically changed from mike/immortal-streams-backed-base to main September 11, 2025 12:05
@ibetitsmike ibetitsmike removed the stale This issue is like stale bread. label Sep 12, 2025
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-agent-api branch 2 times, most recently from dafdb32 to be330a4 Compare September 12, 2025 12:59
@ibetitsmike ibetitsmike changed the title chore: add immortal streams manager feat: add immortal streams manager Sep 12, 2025
Comment thread agent/immortalstreams/manager.go Resolved
Comment thread agent/immortalstreams/manager.go Resolved
Comment thread agent/immortalstreams/manager.go Resolved
Comment thread agent/immortalstreams/stream.go Resolved
Comment thread agent/immortalstreams/stream.go Resolved
Comment thread agent/immortalstreams/stream.go Resolved
Comment thread agent/immortalstreams/localdialer.go Resolved
Comment thread tailnet/conn.go Resolved
Comment thread tailnet/conn.go Resolved
Comment thread agent/immortalstreams/localdialer.go Resolved
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-agent-api branch 3 times, most recently from bcfddeb to 09c5fe0 Compare September 29, 2025 07:40
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-agent-api branch from f97ff42 to f598d1f Compare September 29, 2025 10:24
Comment thread agent/immortalstreams/manager.go Resolved
Comment thread agent/immortalstreams/manager.go Resolved
Comment thread agent/immortalstreams/manager.go Resolved
Comment thread agent/immortalstreams/manager.go Resolved
Comment thread agent/immortalstreams/manager.go Resolved
Comment thread agent/immortalstreams/stream.go Resolved
Comment thread agent/immortalstreams/stream.go Resolved
Comment thread agent/immortalstreams/stream.go Resolved
Comment thread agent/immortalstreams/stream.go Resolved
Comment thread agent/immortalstreams/localdialer.go Resolved
@ibetitsmike
ibetitsmike force-pushed the mike/immortal-streams-agent-api branch from 16eaf62 to 547585d Compare September 29, 2025 22:35
Comment thread agent/immortalstreams/stream.go Resolved
Comment thread agent/immortalstreams/stream.go Resolved
Comment thread agent/immortalstreams/stream.go Resolved
Comment thread agent/immortalstreams/stream.go Resolved
Comment thread agent/immortalstreams/handler.go Resolved
Comment thread agent/immortalstreams/handler.go Resolved
@github-actions

github-actions Bot commented Oct 2, 2025

Copy link
Copy Markdown
Contributor

🚀 Deploying PR 19225 ...

@bpmct bpmct added the doc-check Assign this label to PRs to check for any doc changes. label Dec 4, 2025
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 12, 2026
@github-actions
github-actions Bot deleted the mike/immortal-streams-agent-api branch April 21, 2026 00:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

doc-check Assign this label to PRs to check for any doc changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Immortal streams - agent manager and API

3 participants