-
Notifications
You must be signed in to change notification settings - Fork 630
Open
Labels
bugdocumentationImprovements or additions to documentationImprovements or additions to documentationsdk/nodejs
Description
This was unexpected & not mentioned in the docs. The downstream effects of this is that any reference to a sessionId or a CopilotSession must always attempt to manually resume(). This is more likely to occur after #76 since long-running sessions are now better enabled.
Reproduction
- create a session / send message
- wait 35m of idle time (2094s)
- attempt to send new message into same session
Error
error: Request session.send failed with message: Session not found: b23dfbfc-32f5-4eb3-a90c-1b476a180a75
code: -32603,
data: undefined,
[vm:01KFXZ9B]
at handleResponse (/.../node_modules/.bun/vscode-jsonrpc@8.2.1/node_modules/vscode-jsonrpc/lib/common/connection.js:565:48)
at handleMessage (/.../node_modules/.bun/vscode-jsonrpc@8.2.1/node_modules/vscode-jsonrpc/lib/common/connection.js:345:13)
at processMessageQueue (/.../node_modules/.bun/vscode-jsonrpc@8.2.1/node_modules/vscode-jsonrpc/lib/common/connection.js:362:17)
at <anonymous> (/.../node_modules/.bun/vscode-jsonrpc@8.2.1/node_modules/vscode-jsonrpc/lib/common/connection.js:334:13)
Copilot logs
2026-01-26T20:18:58.553Z [INFO] Successfully downloaded package, restart to update to version 0.0.395
2026-01-26T20:53:24.433Z [WARNING] Session b23dfbfc-32f5-4eb3-a90c-1b476a180a75 has been idle for 2094s, cleaning up
2026-01-26T20:53:24.434Z [INFO] Closing session b23dfbfc-32f5-4eb3-a90c-1b476a180a75
2026-01-26T20:53:24.434Z [INFO] Cleaned up stale session: b23dfbfc-32f5-4eb3-a90c-1b476a180a75
2026-01-26T20:55:22.749Z [ERROR] Session not found: b23dfbfc-32f5-4eb3-a90c-1b476a180a75
Metadata
Metadata
Assignees
Labels
bugdocumentationImprovements or additions to documentationImprovements or additions to documentationsdk/nodejs