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
feat(sidebar): use lastEventTime from agent callback for stable sorting
- Add after_agent_callback on ai_writer that writes lastEventTime to
session state; only fires once per agent turn, not on every LLM call
- Sort sidebar by lastEventTime (falls back to lastUpdateTime for old
sessions); opening a session no longer causes reordering
- Restore lastOpenedAt in session.state via markSessionOpened for
cross-device unread tracking; stored in seconds to match time.time()
- Invalidate ['sessions'] query after SSE stream ends so lastEventTime
is reflected in the sidebar immediately after agent responds
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments