Skip to content

New machine: the Disk stepper's "Less" button does not undo "More" around 100 GB #797

Closed

Description

@nixfred

What happens

In web/src/CreateMachine.tsx the Disk stepper takes its step size from the value it is about to change:

<Stepper label="Disk" value={diskSizeGb} ... step={diskSizeGb >= 100 ? 20 : 5} onChange={setDisk} />

and Stepper.set adds or subtracts that same step. A press that crosses 100 GB therefore changes the step size, so the opposite button does not return to where you were. Omarchy starts at 40 GB: after 12 presses of "More Disk" it reads 100 GB, and one press of "Less Disk" then gives 80 GB instead of 95. Your own Windows 11 ISO starts at 96 GB (SPECS['windows-11']), so "More Disk" followed by "Less Disk" lands 15 GB below the start.

How to reproduce

I copied the stepper arithmetic (min 64, max 10000, step rule above) into a script and pressed the buttons from the Windows 11 default of 96, and separately from 40 with a minimum of 25:

start 96
More Disk -> 101
Less Disk -> 81
Less Disk -> 76
from 100: Less -> 80, More -> 85
start 40, 12 x More -> 100, Less -> 80

In the app: New machine, Omarchy (40 GB), press "More Disk" 12 times (100 GB), then "Less Disk" once. Actual: 80 GB. Expected: 95 GB. The same with a Windows 11 ISO: "More Disk" once (96 -> 101), then "Less Disk" once gives 81 GB, expected 96 GB. Starting from 100, "Less Disk" gives 80 and "More Disk" then gives 85, not 100.

Suggested fix

Pick the step from the direction of travel (for example, step 20 only when the result stays at or above 100, and snap to 100 when crossing it), so that the two buttons are inverses of each other.

Environment

Omarchy Server main (9e1bd67, 0.9.53), Node 26.

Activity

  1. calledtoconstruct commented on Nov 22, 2026

    @calledtoconstruct
    Collaborator

    Working to resolve this.

    No open pull request references this issue, and no one has commented that they are working on it.

    #163, #653, #472, #204, #205, #206, #207, #654, #806, #798, #264, #258, #238, and #360 share storage, setup, and new machines with this and will land in one pull request.

    🤖 Generated with Grok 4.7

  2. calledtoconstruct commented on Nov 22, 2026

    @calledtoconstruct
    Collaborator

    Thanks @nixfred. Less undoes More on the disk stepper around 100 GB. This ships in #879.

    🤖 Generated with Grok 4.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions