feat(seed,console): persistent re-nudging seed backup; confirm destructive console commands
- Seed backup: the one-time 12s toast that marked itself "reminded" the instant it fired (so a funded, unbacked wallet was never nudged again) is replaced by an actionable alert with a "Back up now" link that opens the backup dialog and persists in the bell panel. "Reminded" now means the user actually viewed the phrase (set from the backup dialog), so the nudge re-fires each session until they do, and escalates to a warning once a balance exists. - Console: fund-moving / key-revealing commands (dumpprivkey, z_exportkey, z_sendmany, z_mergetoaddress, …) now require a confirming re-entry when typed or PASTED, honoring the command reference's `destructive` flag that was previously enforced only by the reference dialog's Run button. (Output masking of key dumps in the scrollback is still a follow-up.) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -161,6 +161,7 @@ private:
|
||||
int history_index_ = -1;
|
||||
char input_buffer_[4096] = {0};
|
||||
bool stop_confirm_pending_ = false; // 'stop' typed once, awaiting a confirming second 'stop'
|
||||
std::string destructive_confirm_cmd_; // a destructive command typed once, awaiting an identical re-entry
|
||||
bool focus_input_pending_ = false; // one-shot: focus the command input next render (tab-open auto-focus)
|
||||
// (log-ingestion cursors + result queue moved to the ConsoleCommandExecutor)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user