Repository navigation
fix: use task uuid for row DOM IDs so hotkeys target the selected row - #485
Open
deev-narayan wants to merge 1 commit into
Open
deev-narayan wants to merge 1 commit into
deev-narayan wants to merge 1 commit into
Conversation
deev-narayan
commented
Dec 3, 2026
deev-narayan
left a comment
Author
There was a problem hiding this comment.
Fixed a bug where opening a task could sometimes show the wrong one when multiple tasks had the same ID (for example, two completed tasks with ID 0).
The issue was caused by the way the selected task was identified. When pressing Enter, c, or d, the app could pick the first matching row instead of the one actually highlighted.
I've fixed this by using each task's unique UUID instead of its numeric ID. This ensures the correct task is selected every time.
Also included:
- Added regression tests to prevent this issue from happening again.
- Updated existing tests to use the new UUID-based row IDs.
- Verified that the Tasks test suite passes locally.
To test it: Load two completed tasks with ID 0, highlight the second one using ArrowDown, and press Enter or d. The second task should now open correctly.
This branch has not been deployed
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.
Description
Checklist
npx prettier --write .(for formatting)gofmt -w .(for Go backend)npm test(for JS/TS testing)Additional Notes