Show recently visited tasks first in Ctrl+P picker#367
Merged
Conversation
When opening the task picker dialog with Ctrl+P, tasks are now sorted by when they were last accessed rather than a static order. This makes it easier to quickly switch between tasks you're actively working on. Changes: - Add `LastAccessedAt` field to Task struct to track when tasks are opened - Update task load function to record access time asynchronously - Sort command palette by last_accessed_at when no search query is entered - Tasks that have been accessed appear before those that haven't - Fall back to created_at for tasks that have never been accessed - Add database migration for the new column - Add comprehensive tests for the new sorting behavior Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.
Summary
Changes
LastAccessedAtfield to Task struct to track when tasks are opened in the UIloadTaskWithOptionsto record access time asynchronously when a task is loadedfilterTasksto sort bylast_accessed_atwhen no search query is enteredlast_accessed_atcolumnTest plan
🤖 Generated with Claude Code