Treat EOF/closed stdin as confirmation_required instead of an interactive decline so agent/CI no longer get exit 0 for writes that never ran. Align cmdcore.ConfirmRisk the same way. Co-authored-by: Cursor <cursoragent@cursor.com>