Skip to content

Conversation

@Allaoua9
Copy link
Contributor

@Allaoua9 Allaoua9 commented Dec 18, 2025

When deleting an active thread, a race condition occurs where update_thread is called on a thread that was already deleted, causing errors and potentially recreating incomplete thread data.

See details here : #2713


Summary by cubic

Fixes a race condition when deleting the active thread by navigating away immediately after clearing state. This prevents updates on a deleted thread and avoids recreating partial thread data.

  • Bug Fixes
    • In ThreadList.tsx, call navigate('/') right after clear() when deleting the current thread, and remove the later navigate call.

Written for commit 24a8b13. Summary will update automatically on new commits.

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working labels Dec 18, 2025
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant