matcha icon indicating copy to clipboard operation
matcha copied to clipboard

FEAT: Cancellation support for long-running operations

Open andrinoff opened this issue 7 months ago • 2 comments

Is your feature request related to a problem?

Long-running operations like fetching large mailboxes, downloading attachments, and sending emails cannot be interrupted. The user must wait for completion or kill the entire process. There is no progress indicator or cancel mechanism.

Describe the solution you'd like

  • Add an Esc or Ctrl+C handler that cancels the current background operation (fetch, send, download)
  • Show a progress indicator for operations that take more than ~1 second (e.g. "Fetching 500 emails...", "Downloading attachment...")
  • Use Go context.Context cancellation to propagate cancel signals to backend operations

Describe alternatives you've considered

Adding timeouts to all operations. This partially exists (e.g. 60s timeout for batch operations) but doesn't give users control.

Additional context

This is especially important for large mailboxes where initial fetch can take a long time, and for users on slow connections.

andrinoff avatar Apr 15 '26 19:04 andrinoff

This has had no activity for 30 days. It will be closed in 14 days unless updated. Comment or remove the stale label to keep it open.

floatpanebot avatar May 16 '26 05:05 floatpanebot

Closing due to inactivity. Reopen if still relevant.

floatpanebot avatar May 30 '26 05:05 floatpanebot