Repository navigation
fix: sort chats by activity and preserve read state after crashes - #497
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
Why
Older active chats stayed below newer chats, and an actual Chrome force-quit followed by Restore reproduced a green unread dot returning for a reply that had already been read.
How to test
python -m pytest tests/test_chat_read_receipts.py tests/test_chat_storage_sessions.py tests/test_browser_ui_buffers.py tests/test_ws_lanes.py -q— 25 passed.npx tsc --noEmitandnpm run build— passed.git diff --check— passed.python -m compileall -q app agent_core agents decorators skills— passed.Full-tree Ruff reports four pre-existing errors in
app/agent_app/test_data_safety.py,app/credentials/vault.py, andcraftos_integrations/providers/supabase/client.py. Changed-file Ruff is clean. ESLint is unavailable because the frontend has no configuration.