Skip to content

Revert "Fix: Use order-independent tag comparison in tag wizard"#38

Closed
FL4TLiN3 wants to merge 1 commit intomainfrom
revert-30-fix/tag-comparison-order-independent
Closed

Revert "Fix: Use order-independent tag comparison in tag wizard"#38
FL4TLiN3 wants to merge 1 commit intomainfrom
revert-30-fix/tag-comparison-order-independent

Conversation

@FL4TLiN3
Copy link
Contributor

@FL4TLiN3 FL4TLiN3 commented Dec 4, 2025

Reverts #30


Note

Make tag change detection in ConfirmStep order-sensitive by comparing tags by index instead of using order-independent sorting.

Written by Cursor Bugbot for commit fb97d8d. This will update automatically on new commits. Configure here.

@vercel
Copy link

vercel bot commented Dec 4, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
perstack Ready Ready Preview Comment Dec 4, 2025 4:36am

@codecov
Copy link

codecov bot commented Dec 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

const tagsChanged =
tags.length !== customCurrentTags.length ||
[...tags].sort().join(",") !== [...customCurrentTags].sort().join(",")
tags.length !== customCurrentTags.length || tags.some((t, i) => t !== customCurrentTags[i])
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Order-dependent tag comparison gives false change detection

The tagsChanged comparison uses positional index matching (tags.some((t, i) => t !== customCurrentTags[i])), which detects tags as "changed" when they contain the same values but in different order. Since tags are semantically a set where order is irrelevant, this causes false positives in the confirmation UI—showing tags as changed when the user simply typed them in a different order than they were stored.

Fix in Cursor Fix in Web

@FL4TLiN3 FL4TLiN3 deleted the revert-30-fix/tag-comparison-order-independent branch December 8, 2025 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant