fix(tasks): keep conversation modal closable#2693
Open
janburzinski wants to merge 3 commits into
Open
Conversation
Contributor
Greptile SummaryThis PR updates the create conversation modal so it can be closed while creation is pending.
Confidence Score: 4/5This is close, but the pending create flow should be fixed before merging.
apps/emdash-desktop/src/renderer/features/tasks/conversations/create-conversation-modal.tsx
|
| Filename | Overview |
|---|---|
| apps/emdash-desktop/src/renderer/features/tasks/conversations/create-conversation-modal.tsx | Updates modal close behavior and stale callback handling, but the create request can still complete after dismissal. |
Prompt To Fix All With AI
Fix the following 1 code review issue. Work through them one at a time, proposing concise fixes.
---
### Issue 1 of 1
apps/emdash-desktop/src/renderer/features/tasks/conversations/create-conversation-modal.tsx:85
**Create still completes** This guard only runs after `createConversation` has already returned a new conversation id. When the user closes the modal while the request is still pending, the stale `onSuccess` call is skipped, but the RPC has already created the conversation before this line runs. That means a dismissed create flow can still leave a new conversation in stored data or later refreshed lists. The close path needs either cancellation or a cleanup/ignore mechanism at the create result boundary, not only a skipped success callback.
Reviews (2): Last reviewed commit: "fix(tasks): ignore dismissed conversatio..." | Re-trigger Greptile
Collaborator
Author
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
Screenshot/Recording (if applicable)
https://streamable.com/cvct8r (i removed that cancel button from the video lol)
Checklist
messages and, when possible, the PR title