ava-labs / ava-labs/platform-cli

ux: add confirmation prompts for irreversible operations

Open
#9 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1
Forks
5
PR merge metrics
No merged PRs in 30d

Description

## Description

Only `keys delete` has a confirmation prompt. Other high-stakes operations proceed without confirmation.

## Operations missing confirmation

1. **`subnet convert-l1`** - irreversible conversion, should always confirm
2. **`validator add`** - locks significant funds for a minimum duration
3. **Large transfers** - transfers above a configurable threshold

## Current behavior

```bash
# This irreversible operation runs immediately with no confirmation
platform subnet convert-l1 --subnet-id ... --chain-id ... --mock-validator
```

## Expected behavior

```
Converting subnet 2QYfFcfZ9... to L1. This operation is IRREVERSIBLE.
Type 'yes' to confirm:
```

## Severity
Medium - safety improvement for production use

## Source
CLI UX audit (2026-02-09)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.