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
When chat history is compacted, user messages are replaced with a summary
(assistant message with compacted=true). The recency calculation only checked
for user messages, causing compacted workspaces to sink to the bottom.
Changes:
- Rename WorkspaceState.lastUserMessageAt → recencyTimestamp (clearer semantics)
- Add fallback: if no user messages, use most recent compacted message timestamp
- Keeps Date.now() for new compaction summaries (workspace jumps to top, correct UX)
This ensures workspaces with only compacted history maintain their position
in the sidebar, while still preferring user messages during active streams.
Generated with `cmux`
0 commit comments