Skip to content

fix(devices): --unlock-volume on an already-present non-encrypted volume never shows "This is not an encrypted volume" #2007

Closed

Description

@wmfeht

Strata version

main @ 2970e7a (built from source; the binary still reports 1.1.1). Found in the 1.2.0 release-candidate QA sweep.

Installation method

Built from source

Linux distribution and desktop environment

Arch Linux (Omarchy). Reproduced with the release binary on a private Xvfb display, inside a private user/mount namespace with fake fstab volumes (no real devices touched).

What happened?

strata --unlock-volume <device> for a volume that is present but not encrypted opens a plain Home window, with no status card. The exit code is 0. The message "This is not an encrypted volume" never appears.

When the same kind of volume appears 3 s after launch (while Strata waits), the card does show, so the classifier is right and only the immediate-match path is broken.

Steps to reproduce

  1. Make sure a non-encrypted volume is listed. The test used an fstab entry for /dev/qa-fake-vol (vfat, not encrypted).
  2. Run strata --unlock-volume /dev/qa-fake-vol.
  3. Take screenshots every 250 ms for 1.5 s, and again at 3 s.
  4. For comparison, run strata --unlock-volume /dev/qa-fake2 and add the fstab entry for it while Strata is waiting.

Expected behavior

The status card with "This is not an encrypted volume" shows in both cases.

Screenshots or video

N/A (described in words above)

Relevant logs

No response

Additional context

  • Likely cause (code read, unconfirmed): start_unlock_wait resolves synchronously right after present_target opens Home. The new window's BrowserEvent::Reset (src/ui/browser/events.rs:78-84) then removes every open-argument-status overlay, including the card just added. The same race would drop any immediate unlock error card.
  • Reproduced 3 times.

Activity

  1. added
    bug
    on Nov 2, 2026
  2. self-assigned this
    on Nov 2, 2026
  3. added 2 commits that reference this issue on Nov 2, 2026
    5e8a942
    bd21490
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions