matcha icon indicating copy to clipboard operation
matcha copied to clipboard

BUG: No timeout on external editor process

Open andrinoff opened this issue 7 months ago • 2 comments

Describe the bug main.go opens external editor (via $EDITOR) without timeout. If editor hangs or user leaves it open indefinitely, matcha blocks forever.

To reproduce

  1. Set EDITOR to slow/hanging editor
  2. Open compose, press ctrl+e
  3. Editor process has no timeout
  4. matcha blocks indefinitely

Expected behavior Set reasonable timeout (e.g., 30 minutes) or provide way to cancel.

Additional context

  • Good first issue
  • Low severity (user controls editor)
  • But matcha becomes unresponsive if editor hangs
  • tea.ExecProcess might support context cancellation

Suggested fix: Add timeout or cancel mechanism to editor invocation.

OS All platforms

andrinoff avatar Apr 21 '26 09: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 22 '26 06:05 floatpanebot

Closing due to inactivity. Reopen if still relevant.

floatpanebot avatar Jun 04 '26 19:06 floatpanebot