Problem
handleKill() in internal/app/model.go sends SIGTERM to the selected session's PID but always returns nil as the tea.Msg. The user gets zero feedback on whether the kill succeeded or failed.
On Unix, os.FindProcess never returns an error for any positive PID, so the error check is a dead branch. The real failure point is proc.Signal() which can return ESRCH (process already gone) — this error is discarded.
Suggested Fix
- Define a
KillDoneMsg type with success/error state
- Return it from the Cmd
- Handle it in
Update to show a brief status message (e.g., "Killed session X" or "Process not found")
Files
internal/app/model.go:145-163
Problem
handleKill()ininternal/app/model.gosends SIGTERM to the selected session's PID but always returnsnilas thetea.Msg. The user gets zero feedback on whether the kill succeeded or failed.On Unix,
os.FindProcessnever returns an error for any positive PID, so the error check is a dead branch. The real failure point isproc.Signal()which can return ESRCH (process already gone) — this error is discarded.Suggested Fix
KillDoneMsgtype with success/error stateUpdateto show a brief status message (e.g., "Killed session X" or "Process not found")Files
internal/app/model.go:145-163