Skip to content

self uninstall --unattended still prompts, and fails with no input #1005

Closed

Description

@David-Noble-at-work

self uninstall --unattended still asks for confirmation. --unattended is a global flag, "Force unattended mode (no prompts, sensible defaults)" (cmd/internal/cli/root.go:111), but at 01634491 the uninstall prompt is skipped only by --force (cmd/internal/cli/selfinstall.go:254-266, the flag at :274). With no input, as in a script or CI, the prompt's read fails and the command exits 1 with failed to read input: EOF (selfinstall.go:261).

Found 2026-09-30 during #947's research.

Corrected 2026-10-01: the resolution first said --unattended skips the prompt and proceeds, as --force does. That decided a question that was the owner's; the owner ruled the opposite (below).

Resolution

Ruled 2026-10-01: "--unattended takes the default and aborts." The prompt's default is No, so self uninstall --unattended asks nothing, removes nothing, and says so, as answering No does. --force still removes without asking.

Plan and design documents

Kind Document
Plan docs/plans/fix/1005-self-uninstall-unattended-still.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions