Skip to content

wipe key bug - #1

Merged
bm-sandbox merged 1 commit into
release/5.7.0-modern-rewritefrom
config/bug-wipe-key
Sep 1, 2026
Merged

wipe key bug#1
bm-sandbox merged 1 commit into
release/5.7.0-modern-rewritefrom
config/bug-wipe-key

Conversation

@bm-sandbox

Copy link
Copy Markdown

Unable to wipe key, says to put into config mode even when it is in config mode

This change is also in:

Why this branch exists: Unable to wipe key, says to put into config mode even when it is in config mode

Cut from: the "new-ok-app" line

Commits:

  • 6dda9d7 fix: stop refusing private-key writes on a config-mode guess

Opened by the dashboard, as one act across every repository this change touches.

Advanced refused to send when the store's isConfigMode read false,
showing "Put your OnlyKey in config mode (flashing red LED)" to users
whose key was in config mode with the LED flashing. The flag is an
inference - the firmware reports the same UNLOCKED status either way -
and it reads false whenever the app missed the one transition that sets
it, such as starting up with the key already in config mode. There was
no way to recover from inside the app.

The legacy app carries the same flag but never gated a write on it, so
this was a regression introduced by the rewrite. Removing the gate
restores that behaviour: send, and let the device answer. Its refusal
already routes through the existing catch blocks, and
formatDeviceLockedError turns "Error not in config mode" into the
instructions - so nothing there needs changing now that the firmware
names the right reason.

Measured end to end against the emulator: in config mode the wipe
reports "Private key wiped from slot 101", and outside it the user gets
the config-mode instructions rather than "unlock your device". The
protocol side is pinned by onlykey-testing
01-protocol/27-config-mode-observability.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@bm-sandbox
bm-sandbox merged commit 75a168c into release/5.7.0-modern-rewrite Sep 1, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant