Skip to content

Installer window sometimes keeps the previous screen's height; theme swatch looks jagged #8

Closed

Description

@Paradox-Evil-EXE

Two visual bugs, one in the installer and one in the app.

1. Installer: window sometimes keeps the previous screen's height

About half the time when the installer opens, it switches from the Loading screen to the update screen but the window stays at the Loading screen's height.

Suspected cause (not confirmed): FitWindow() in Production/Installer/Installer/Ui/JS/Screens.js can call Api.ResizeInstaller several times when the screen changes: on Go(), again after the 250 ms slide, and from the ResizeObserver. pywebview runs each JS-to-Python call on its own thread, so these calls can finish out of order and leave the window at an old height. Because JS has already saved the newer height in LastSent, it never sends that height again.

Possible fix: send the resize calls one at a time, in order, by chaining them on a promise in FitWindow. This is a JS-only change.

2. App: theme swatch edges look jagged

The 4-colour theme swatch next to the Theme picker has stair-stepped edges between its colours. It is drawn with a conic-gradient (.ThemeSwatch in Src/*/CSS/Style.css), which Chromium/WebView2 does not render smoothly. The swatch size is also fractional and is scaled by the 0.85 zoom and by the display DPI, so the swatch's centre does not land on a whole pixel.

Possible fix: draw the same 4 squares with three 50%×50% linear-gradient layers plus a background colour, then sync the change to every theme with Tools/SyncThemes.py.

Activity

  1. Paradox-Evil-EXE commented on Nov 3, 2026

    @Paradox-Evil-EXE
    ContributorAuthor

    Fixes for both parts of this issue are drafted. I'll open a PR from a fork once they've been reviewed.

    • Installer height race: FitWindow() in Screens.js will chain its ResizeInstaller calls on a promise, so only one runs at a time and they finish in the order they were sent. The newest height is therefore always applied last. This is a JS-only change; InstallerApi.ResizeInstaller stays the same.

    • Jagged swatch: .ThemeSwatch will be drawn with three 50%×50% linear-gradient layers over --S1 instead of a conic-gradient. The change goes into Src/Dark and is copied to the other themes with Tools/SyncThemes.py.

    • Also in the PR: the main window will open at its HeightMap.json height for the saved launch option (in App/Main.py), instead of opening at a hardcoded 700 and then resizing. The page still resizes itself when it boots, because only the page can measure the theme note. A backend test covers this.

    • Tick box (Installer: tick box shows its check mark when unticked #2): this PR also fixes Installer: tick box shows its check mark when unticked #2. The check icon will be visibility: hidden while the box is unticked and visible once it is ticked, so the box keeps its size. fix(installer): hide check icon while uninstall tick is unticked (#2) #5 makes the same CSS change.

  2. Paradox-Evil-EXE commented on Nov 3, 2026

    @Paradox-Evil-EXE
    ContributorAuthor

    Status update. Nothing is committed yet; the PR comes once the remaining items are checked.

    Done on the branch

    • Jagged swatch: .ThemeSwatch is now drawn with straight-edged linear-gradient layers instead of a conic-gradient, and the change is synced to every theme. Compared side by side on screen, the old version shows stair-step notches and the new one does not.
    • Tick box (Installer: tick box shows its check mark when unticked #2): the check icon is hidden while the box is unticked, so the box keeps its size.
    • Loading flicker: HeightMap.json Loading goes from 327 to 323. The Loading page measures 285 CSS px of content (card bottom 264.9 plus the 20 px body padding), plus a 37 px frame, which is about 322, so at 327 it trimmed itself right after opening (408 → 402 px at 125%). At 323 that difference falls inside the existing under-2-px skip, so the first resize now goes straight from Loading to the menu height. The gap above and below the card is also even now: 25 px each on screen at 125%, where it used to be 25 above and 30 below.

    Found and fixed, waiting to go in

    • Snap-back after grabbing the title bar: this is the main cause of the window staying at the Loading height. Grabbing or dragging the title bar while the screen changes starts Windows' move loop, which undoes any resize sent at that moment. With the fix, a resize that arrives while the window is held is only recorded, and it is applied once when the title bar is released. That resize sets the size only (SWP_NOMOVE) and reads the DPI scale with GetDpiForWindow, because Form.DeviceDpi stays at 96 under pywebview 6.2.1. I checked it by hand in a test window and it has a unit test.
    • Resize race: separately, the released exe ended up at the wrong height in 2 of 20 automated launches with no dragging at all, when the local release server answered instantly. Two ResizeInstaller calls can overlap and the older one can land last. The planned fix sends them from FitWindow one at a time. This one isn't verified yet.

    QoL coming in the same PR

    • RAMMIT's main window opens at its HeightMap.json height for the saved launch option, instead of opening at 700 and resizing once the page boots. The page still resizes itself on open, because it is the only part that can measure the theme note.

    Question before the PR: which version should this go out as? 1.1.1 is current. I'd suggest 1.1.2, since these are bug fixes and a small QoL change, but say if you'd rather use something else, and I'll update App/Version.py and the changelog to match.

  3. added
    bug
    accessibility
    good first issue
    and removed
    accessibility
    on Nov 3, 2026
  4. CBlockDigital commented on Nov 3, 2026

    @CBlockDigital
    Owner

    Thanks for the detailed write-up.

  5. Paradox-Evil-EXE commented on Nov 3, 2026

    @Paradox-Evil-EXE
    ContributorAuthor

    Thanks. App/Version.py is now 1.1.2, and there's a matching changelog entry; the user docs that show the version are updated too.

    On the tick box (#2): I'd like to keep it in this PR. The change is three lines of CSS and identical to #5's, apart from the comment on one line. Since this PR is the bigger of the two, if both stay open, please let this one win any conflict and close #5 (or rebase it on top). Resolving that conflict should take seconds either way.

    The PR is coming shortly.

  6. Paradox-Evil-EXE commented on Nov 3, 2026

    @Paradox-Evil-EXE
    ContributorAuthor

    One more fix is going into the same 1.1.2 PR (#10), so please hold off merging it for now.

    Launch tracking: RAMMIT doesn't know which Roblox client belongs to which account.

    • An account's check mark is set as soon as the launcher process starts, before Roblox has actually opened. On launch, Roblox seems to open briefly, close, and then open the real window, so the mark shows up too early.
    • The running counter counts every RobloxPlayerBeta.exe process that has any visible window. Roblox's taskbar right-click menu appears to count as an extra instance.
    • When one of several clients is closed, RAMMIT only sees the total go down. It can't tell which account closed.

    Plan (not built yet): link each client to its account using the one-time launch ticket that RAMMIT puts in the roblox-player: link. The ticket is compared in memory only and is never logged. With that link:

    • an account is marked launched only once its game window appears;
    • the counter only counts real game windows;
    • the right account is updated when its client closes.

    Before writing any code, I'm checking how the Roblox processes and windows behave on a real PC with a read-only watcher. I'll post an update here when it's done.

  7. Paradox-Evil-EXE commented on Nov 3, 2026

    @Paradox-Evil-EXE
    ContributorAuthor

    Launch tracking is done and pushed to #10, so the 1.1.2 PR is complete from my side and ready for review.

    What a read-only watcher showed on a real PC (Windows 11):

    • Launching: RAMMIT starts RobloxPlayerBeta.exe directly, with the roblox-player: link (which includes the one-time ticket) as its only argument. The game window is a WINDOWSCLIENT. It's created hidden and becomes visible about 9 s after the process starts.
    • Handoff: sometimes the process RAMMIT starts hands the game to a --launch-to-tray child. That child opens the window, and it doesn't have the ticket on its command line.
    • Closing: a game doesn't just exit. It starts a --launch-to-tray process that only has a tray icon. That icon's right-click menu is a visible window, and that window was what made the counter show an extra instance.

    What 1.1.2 does about it:

    • MultiInstance.ClientTracker gives the process RAMMIT starts to the account.
      • A child process takes the account over while no game window has been shown yet. This also covers Bloxstrap and Fishstrap starting Roblox as a child.
      • A tray child started when a game closes takes nothing.
      • The launch ticket is a fallback. It stays in memory and is never logged.
    • An account's mark shows ••• while Roblox starts, ✓ once its game window is open, and clears when that window closes, so you can see which account closed.
    • The counter label counts open game windows only. Launches still starting count towards Max Instances, so a batch can't go over it.
    • The status line only says "Launched" once the windows are open. It stops waiting after 30 s.

    Tested with real accounts: single and batch launches, closing one of two clients, and the tray menu. pyflakes is clean, the app has 52 unit tests and 73/73 UI checks, and the installer has 59 unit tests and 92/92 UI checks.

  8. Paradox-Evil-EXE commented on Nov 3, 2026

    @Paradox-Evil-EXE
    ContributorAuthor

    One more gap: the old Test1 build could detect expired saved logins, and today's RAMMIT can't.

    What Test1 did:

    • At startup, it checked each saved login in the background against Roblox's users/authenticated endpoint (a 401 means expired).
    • It marked expired accounts with a red row.
    • Selecting an expired account swapped + ADD for RENEW, so you could sign in again in place.

    Today's RAMMIT only finds out when a launch fails with "Auth failed".

    Question: should this go into 1.1.2 (#10), or be its own 1.2.0?

    • For 1.1.2: this brings back something Test1 users already had, so it's arguably a regression. It's one more piece in a PR that's already open, which saves a release.
    • For 1.2.0: it adds a new background network call for every account at startup, a new button, and new API. That's a feature, not a fix. Keeping it out lets 1.1.2 ship now as the bug-fix release, and it gets reviewed on its own.

    Let me know which you prefer. I'll prepare it either way.

  9. Paradox-Evil-EXE commented on Nov 3, 2026

    @Paradox-Evil-EXE
    ContributorAuthor

    Side suggestion, separate from the fixes here: a small change to the bug report form.

    The bug report form's Log field only asks for Config\RAMMIT.log. Two gaps:

    1. The installer's log isn't mentioned. The form lets you pick "The installer (RAMMIT-Setup.exe)", but the installer writes its own log to %LOCALAPPDATA%\RAMMIT-Setup\Setup.log. RAMMIT.log has nothing about the installer, so installer reports currently come with the wrong log.
    2. "It never contains your cookies" is true, but not the whole picture. Both logs contain Roblox usernames (for example Saved account X, Launched X (Home)) and folder paths. The start-up line includes the install folder, which usually contains the Windows user name. A one-line heads-up lets people blank those out if they want to.

    Suggested change (only the description of the Log field; the YAML is checked to load, and the diff applies to main):

    diff --git a/.github/ISSUE_TEMPLATE/BugReport.yml b/.github/ISSUE_TEMPLATE/BugReport.yml
    index cf2bfa2..ba56c9a 100644
    --- a/.github/ISSUE_TEMPLATE/BugReport.yml
    +++ b/.github/ISSUE_TEMPLATE/BugReport.yml
    @@ -50,5 +50,10 @@ body:
         id: Log
         attributes:
           label: Log
    -      description: The end of `Config\RAMMIT.log` (it never contains your cookies). Screenshots help too.
    +      description: |
    +        The end of the log for the part that broke. Screenshots help too.
    +        - The app: `Config\RAMMIT.log`, next to `RAMMIT.exe`.
    +        - The installer: `%LOCALAPPDATA%\RAMMIT-Setup\Setup.log`.
    +
    +        Logs never contain your cookies, but they do contain your Roblox usernames and folder paths (which can include your Windows user name). Blank those out if you'd rather not share them.
           render: text

    Happy to add it to #10 or leave it for later, whichever you prefer.

  10. Paradox-Evil-EXE commented on Nov 4, 2026

    @Paradox-Evil-EXE
    ContributorAuthor

    Update: the expired-login feature is now in #10 too, so it all ships as one PR. The only open question is the version tag, 1.1.2 or 1.2.0. The PR uses 1.1.2 for now, and I'll change it if you prefer 1.2.0.

    It does what Test1 did:

    • Login checks: saved logins are checked at start-up and every 5 minutes. A 401 turns the account red; a check that can't reach Roblox never marks anything.
    • RENEW: with exactly one expired account selected, + ADD becomes RENEW and LAUNCH becomes RENEW AND LAUNCH.
    • At launch: a launch that Roblox rejects also marks the account.

    On top of that, renewing compares Roblox user IDs, falling back to the username when no ID is saved yet. The same user keeps the account, even after a rename; a different user is added as a new account. It has new unit tests, and the app's UI suite still passes 73/73.

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

    buggood first issue

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions