cli/cli · error
failed to prompt: %w
Error message
failed to prompt: %w
What it means
Error "failed to prompt: %w" thrown in cli/cli.
Source
Thrown at pkg/cmd/codespace/delete.go:236
}
type surveyPrompter struct{}
func (p *surveyPrompter) Confirm(message string) (bool, error) {
prompter := &Prompter{}
var confirmed struct {
Confirmed bool
}
q := []*survey.Question{
{
Name: "confirmed",
Prompt: &survey.Confirm{
Message: message,
},
},
}
if err := prompter.Ask(q, &confirmed); err != nil {
return false, fmt.Errorf("failed to prompt: %w", err)
}
return confirmed.Confirmed, nil
}
View on GitHub (pinned to 0eeec0b92e)
Solutions
- Run in an interactive terminal, or pass flags to avoid prompting.
When it happens
Trigger: Thrown at pkg/cmd/codespace/delete.go:236 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of cli/cli@0eeec0b92e (2026-08-15).
Data as JSON: /api/errors/3df9ff332526424d.
Report an issue: GitHub.