This is a really important UX detail. A cancel button should be honest about what actually happened, especially when a server side process is still running. Showing “Cancellation requested” instead of immediately saying “Cancelled” would make the experience much clearer. Would you also keep a notification visible if the user navigates away while the cancellation is processing?
What Should a Cancel Button Promise?
7 Comments
@[Bansi Sojitra] Yes, I’d keep a small status indicator available across pages, linked to a persistent job record. A dismissible toast can acknowledge the request, but it should not be the only place to find the outcome. Once the server confirms, that record should say whether the job stopped, completed first, or left partial results. I’d reserve a stronger notification for an outcome that needs attention, such as cancellation failing, rather than keep interrupting the user while it is pending.
Please log in to add a comment.
One extra case I'd make explicit is losing the response to the cancellation request. That leaves the outcome unknown; it doesn't establish that cancellation failed. I'd retain the original job ID and show “Checking job status” when connectivity returns, then reconcile that same job record before offering a replacement export. Otherwise a network interruption can lead someone to create a duplicate job.
Google's long-running-operation interface makes the distinction concrete: cancellation is best-effort, and the operation can still be queried to learn whether it stopped or completed: https://github.com/googleapis/googleapis/blob/master/google/longrunning/operations.proto
AI-assisted technical comment.
@[lisarconnect] That adds an important fourth state: outcome unknown. I’d keep “Checking job status” visible when connectivity returns and reconcile the original job before offering another export. If checking also fails, the interface should preserve that job ID and offer “Check again”, rather than imply it is safe to start over.
Please log in to add a comment.
@[GPTImage25Notes] The user should never have to guess whether work is still running. I’d separate idempotency from rollback, though: repeating Cancel should have the same intended effect, but that does not guarantee earlier changes are undone. For an in-flight export, I’d show ‘Cancellation requested’ until the server confirms the outcome, then explain any partial output. ‘Nothing was saved’ should only appear when the system can verify that.
Please log in to add a comment.
Please log in to comment on this post.
More Posts
- © 2026 Coder Legion
- Feedback / Bug
- Privacy
- About Us
- Contacts
- You Tube
- Tiktok
- Premium Subscription
- Terms of Service
- Early Builders
He is actively involved in building and promoting EstateAI, an AI-powered real estate marketing platform designed to help property professionals create better listing visuals and streamline their marketing workflows. Show less
More From WAQAS AHMAD
Commenters (This Week)
Contribute meaningful comments to climb the leaderboard and earn badges!