Skip to content

Keep idle exec WebSocket streams alive - #35

Draft
brendandburns wants to merge 3 commits into
agent/p2-issue-20from
copilot/p2-investigate-idle-disconnects
Draft

brendandburns wants to merge 3 commits into
agent/p2-issue-20from
copilot/p2-investigate-idle-disconnects

Conversation

@brendandburns

@brendandburns brendandburns commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Long-running exec streams can be disconnected by idle proxies while the remote process continues. The client had no active WebSocket keepalive; proxy and server idle limits remain outside the client’s control.

  • Keepalive: When Configuration.keep_alive is enabled, send WebSocket Ping frames every 30 seconds during idle waits. No background thread is added.
  • Timeouts and lifecycle: Preserve _request_timeout and explicit close behavior. Pings can help only when intermediaries forward WebSocket control frames.
  • Enable for exec streams:
    configuration.keep_alive = True

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
@brendandburns
brendandburns changed the base branch from master to agent/p2-issue-20 November 19, 2026 02:11

Copy link
Copy Markdown
Owner Author

Clarification to the original assignment: this task's designated agent/base branch is agent/p2-issue-20. Raise/target the PR against that branch, not master; the existing draft PR has been retargeted accordingly. Keep the requested commit order: first a test-only commit demonstrating the issue, then a separate fix commit only if reproduced. If it does not reproduce, leave the evidence/test commit and explain why no fix is appropriate.

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
@brendandburns brendandburns changed the title [WIP] Investigate idle disconnects during long-running exec streams Keep idle exec WebSocket streams alive Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[P2] Investigate idle disconnects during long-running exec streams

2 participants