Editor subprocess in run_editor() has no timeout; TUI can be suspended indefinitely #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
run_editor()callssubprocess.run(argv, check=False)with notimeout=argument. If the spawned editor process hangs, crashes silently, or the user walks away, the Textual application remains suspended with no way to recover short of killing the process.Location
src/certbot_manager/tui/editor.py, line 62Risk
In normal use this is inconsequential — the user closes their editor and continues. However:
$EDITORpoints to a GUI editor that is already running (e.g. a VSCode server instance) and the launch fails silently, the process may exit immediately but with no file written, or may block waiting for a window that never opens in a headless session.Suggested fix direction
Add a generous
timeout=(e.g. 3600 seconds or configurable) and catchsubprocess.TimeoutExpiredto surface a clear error to the user rather than hanging forever. Alternatively, document that the editor must be terminal-based and exit cleanly.Severity
minor
Found by
Automated audit by Claude Code