You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: session tracking not updating in Recent Sessions (#344)
Root cause: routing mode MCP servers (used for /mcp endpoint) were
created without session hooks, so session lifecycle events were never
captured. Only the main MCP server had hooks registered.
Fixes:
- Share hooks across all routing mode servers so session tracking
works regardless of which routing mode endpoint is used
- Fix fragile session key suffix matching (use strings.HasSuffix
with underscore separator instead of raw length comparison)
- Increase session inactivity timeout from 5min to 30min to prevent
premature session closure during normal usage gaps
- Add UpdateSessionActivity() to update LastActivity on every MCP
message (not just tool calls) via BeforeAny hook
- Add UpdateActivity() to SessionStore for non-tool-call keepalive
Closes#344
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments