Skip to content

Clear completed task list with next user prompt fix#514

Merged
zikajk merged 1 commit into
masterfrom
clear-completed-task-list-with-next-user-prompt-fix
Jun 23, 2026
Merged

Clear completed task list with next user prompt fix#514
zikajk merged 1 commit into
masterfrom
clear-completed-task-list-with-next-user-prompt-fix

Conversation

@zikajk

@zikajk zikajk commented Jun 23, 2026

Copy link
Copy Markdown
Member
  • I added a entry in changelog under unreleased section.
  • This is not an AI slop.

The all-tasks-done? check was performed outside the CAS loop, so a
concurrent task mutation between the check and the write could clear
newly-added pending/in-progress tasks. Move the check inside the CAS
retry loop so clearing only occurs when the predicate holds for the
exact state being replaced, consistent with how all op-* functions
validate inside mutate-task!.
@zikajk zikajk force-pushed the clear-completed-task-list-with-next-user-prompt-fix branch from d74e6ed to 9834b29 Compare June 23, 2026 07:42
@zikajk zikajk merged commit efd534e into master Jun 23, 2026
17 of 18 checks passed
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