interactive: true on the task to allow it to receive user input from stdin.
Taskfile.yaml
Without
interactive: true, tasks that require stdin (like vim, fzf, or other interactive tools) may not behave correctly.