TUI permits concurrent duplicate submissions #18

Open
opened 2026-08-22 20:33:10 +00:00 by faceguy · 0 comments
Owner

Sort and duplicate models continue handling Enter while an operation is active. Pressing Enter again can call startSorting() in internal/ui/tui/sort.go#L123 or startDuplicating() in internal/ui/tui/duplicate.go#L136 a second time.

This starts concurrent Spotify mutations and replaces the result channel monitored by the UI. It can cause the same playlist to be reordered concurrently or create multiple destination playlists.

A model-level replay confirmed that both models still attempt submission while their sorting or duplicating flag is already true.

Sort and duplicate models continue handling Enter while an operation is active. Pressing Enter again can call `startSorting()` in `internal/ui/tui/sort.go#L123` or `startDuplicating()` in `internal/ui/tui/duplicate.go#L136` a second time. This starts concurrent Spotify mutations and replaces the result channel monitored by the UI. It can cause the same playlist to be reordered concurrently or create multiple destination playlists. A model-level replay confirmed that both models still attempt submission while their `sorting` or `duplicating` flag is already true.
faceguy self-assigned this 2026-08-22 20:33:10 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
faceguy/my-spotify-playlist-sorter-go#18
No description provided.