Confirm SDK has no session timeout logic - issue is in CLI server #235
+0
−0
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.
Sessions auto-close after 35 minutes of idle time, causing "Session not found" errors. The issue description and agent instructions suggest removing timeout/reaping/touch logic from the SDK clients.
Investigation Result
No timeout logic exists in the SDK. Exhaustive search across all clients (Node.js, Python, Go, .NET) confirms:
session.touchor keep-alive RPC callsAll SDK clients are stateless JSON-RPC wrappers. They only call:
session.create,session.resume,session.send,session.getMessages,session.destroy,session.abort,session.delete,session.list,session.getLastId.Root Cause
The 35-minute (2094s) timeout is implemented in the Copilot CLI server (separate codebase). Evidence from issue logs:
These logs originate from the CLI server process, not the SDK.
Action Required
The timeout removal must be made in the Copilot CLI server codebase, not this SDK repository. No SDK changes needed.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.