• v1.2.0 1eef3ecc48

    tylerstyle released this 2026-11-30 07:26:16 +01:00 | 178 commits to main since this release

    matrix-rat 1.2.0

    matrix-rat in the browser: the same app, the same keys and the same themes, on a desktop
    browser and on phones, at https://tylerstyle.github.io/matrix-rat/. Nothing to install,
    it works offline, and it keeps your session in the browser, end-to-end encryption included.

    The terminal app gets a light theme to go with rat-dark, popups you can leave with a
    click, and a message view that keeps your place when the window is resized.

    Before you upgrade

    • Nothing changes in your profile. 1.2.0 reads and writes the profile as 1.1.0 did;
      going back to 1.1.x with the same profile works (if you chose rat-light, 1.1.x starts
      with rat-dark and says once that it does not know that theme).
    • For packagers: the source is now a Cargo workspace of three packages. matrix-rat
      (the terminal app, at the root, as before), matrix-rat-engine (the library: the app,
      the drawing, the Matrix client, serve and mcp) and matrix-rat-web (the browser's
      page; not a default member, so cargo build at the root builds what it did). The binary
      and its name are unchanged. Cargo.lock now has one git source, ratzilla at 2f6f7ef
      (the browser's only): a build that vendors the whole lock offline needs its hash too, as
      the repository's default.nix carries it.

    New

    • matrix-rat runs in the browser. The real app, not a cut-down one: rooms, threads,
      search in a room, reactions, edits, files, pictures, verification, room management, the
      command palette, the settings and the thirteen themes (the new rat-light among them), drawn
      into the page as a grid of characters with the bundled DejaVu Sans Mono. Keys and the
      mouse work as in the terminal; the browser's own shortcuts (Ctrl-T, Ctrl-W, …) stay
      the browser's.
    • Log in with a password or with "Log in with browser". The second goes to your
      server's account service and back (OAuth 2.0 with PKCE, by redirect), which is how
      matrix.org and other servers with the Matrix Authentication Service log you in; the
      account service's page has half an hour to send you back. The session stays in that
      browser: its encrypted stores in IndexedDB, their passphrase in
      localStorage; a reload or the next visit opens it again without logging in. Log
      out
      ends it at the server and deletes the stores. If the server ends the session
      (soft logout), the app asks you to log in again and keeps the stores.
    • On phones (iOS Safari and the home-screen app, Android Chrome, Firefox):
      • A key bar above the message box: Paste · Esc Tab Ctrl Alt · ← ↑ ↓ → · ☰.
        A tap on Ctrl or Alt holds it for the next key; a long-press locks it (it looks
        different, and a short note says so) until the next tap. Paste pastes the
        clipboard into the field you are typing in (the message box, a password, the recovery
        key), dimmed where there is nothing to paste into. ☰ opens the command palette,
        from which every action is reachable without a hardware key.
      • A tall ➤ Send block beside the message box sends without closing the keyboard;
        it is greyed while there is nothing to send.
      • You type into the app itself: tap the message box and the phone's keyboard opens,
        with autocorrect, dictation, swipe typing and other languages' input; a cursor shows
        where you are. The keyboard's Enter starts a new line; Send sends (a hardware
        keyboard's Enter sends, as on the desktop).
      • The grid follows the keyboard: when it opens, the app shrinks to what is left of
        the screen instead of hiding under it. Pinch-zoom is left to the browser.
    • Files: attach with the browser's file picker, by pasting, or by dropping files on
      the page; attachments and archives are saved as downloads (an archive's name carries
      the time, so two archives of a room on one day do not collide).
    • Pictures are drawn in the grid in half blocks, in the timeline and in the picture
      viewer. Photos from phone cameras are scaled down while they are decoded, and the
      server's thumbnails are used where there are some, so large photos show quickly and
      without running the page out of memory; a picture too large for the browser says so
      instead.
    • Offline: once opened, the page starts without a connection, shows what is stored,
      and sends what you wrote offline when the connection is back. When a new version is
      published, a bar at the top offers Reload.
    • Notifications while the page is open: Allow (Settings → Notifications) asks
      the browser, and new messages then notify as in the terminal app.
      A tap on one brings the tab that has the session to the front, in that room (or opens
      the app if none is open). There is no push in 1.2: a closed tab gets none, and Android
      may pause a tab in the background.
    • One tab runs the session. A second tab or the installed app offers Use here to
      take the session over cleanly, instead of both writing to the same stores. If the other
      one is asleep in the background (a phone's installed app), the page says so after a few
      seconds: switch to it once, or close it, and the hand-over goes on.
    • The homeserver you typed is remembered for the next login in that browser (only
      the address, never the account or a token).
    • The page follows the theme: the margins and the browser's top bar take the theme's
      colours, light or dark.
    • Picture avatars for people and rooms in the browser: round for people, rounded
      squares for rooms, sharp on any screen; the initials stay while a picture loads.
    • Install it as an app: Add to Home Screen (iOS Safari), Install app (Android
      Chrome) or Install (desktop Chrome and Edge) gives it its own icon, name and window.
      On iOS this also keeps the session: Safari deletes a site's data after 7 days without a
      visit, a home-screen app is exempt.
    • rat-light, a flat, newsprint-like light theme with black chat text: the light
      partner of the default rat-dark, used when your desktop (or browser) is light, unless
      theme_light names another theme. In the terminal app too.
    • Line break in the message box's menu (next to Clear draft), for a keyboard
      without Shift-Enter.
    • The command palette offers Jump to oldest, First room and Last room, which only the
      vim key preset had; First and Last room also move to the room list.

    Changed

    • A popup's Esc can be clicked. The Esc part of a popup's footer (and of the help and
      of find in room) does what Esc does when clicked or tapped. A click beside a popup
      steps back one level
      , as Esc does, where the popup has one (a value being typed in
      the settings, a key being captured, the source view of message details, a profile's
      views, room management's filter, confirmations and stages) instead of closing it all.
      A popup too narrow for its footer shows its Esc part alone, so the way back stays
      readable.
    • The re-authenticate form offers Log out, and Esc on it offers to log out instead
      of leaving a session that cannot sync.
    • Help and settings wrap instead of cutting: a long description in the help, and a
      long status in the settings (encryption, key backup, the account under Log out), go on
      in an indented second line instead of being cut at the edge; where a row's "Enter to
      view" does not fit, it is left out instead of cut (the hint lines below still say what
      the row opens).
    • Large JPEG photos are decoded smaller: a photo much larger than it is drawn is
      decoded at a half, a quarter or an eighth of its size (a 12-megapixel camera photo takes
      about 0.6 MB instead of about 36 MB), so it shows sooner and takes far less memory, in the
      terminal app too.

    Fixed

    • Resizing keeps your place: when the message view gets shorter or taller (a resized
      window, a phone keyboard), a selected message that was on screen stays on screen.

    Good to know (the browser)

    • What only the terminal app does: search across all rooms (Ctrl-G), voice
      recording and playing audio (an audio or voice message offers Save), local transcripts,
      translations and catch-up summaries, writing in $EDITOR, opening a picture or file in
      the system's viewer (O; the browser saves it with s), theme files of your own,
      exporting and importing room keys to a file (unlock history with your recovery key or by
      verifying from another device), and serve and mcp. In the browser these are not offered or say so where
      they would be.
    • Safari and the home-screen app keep separate storage: a session opened in one is
      not in the other, and a login by the browser started in one finishes in the same one.
    • The page runs only as itself: it refuses to be shown in a frame of another site,
      and its content security policy allows scripts only from its own address.
    • Size: the first visit loads about 7.3 MB (compressed); later visits start from the
      browser's cache.
    • Archiving a room reads the history from the server page by page, without loading
      it into the room you have open, and the page stays usable meanwhile: 5,000 messages
      took about 4 seconds on a phone (a OnePlus 8 Pro, while scrolling).

    Security

    • curve25519-dalek 5.1.0
      (RUSTSEC-2026-0620): its AVX-512
      backend could compute a wrong result for a scalar multiplication with a point an
      attacker chose. That backend is used only when the build turns on AVX-512 (compiler
      flags that neither the release archives nor the Nix package set, and the browser has
      no AVX-512), so 1.1.0 was not affected; 1.2.0 takes the fixed version.

    Dependencies

    • New in both apps: jpeg-decoder 0.3.2, for decoding large photos scaled down.
    • New for the browser only: ratzilla (git revision 2f6f7ef, for the DOM grid and its
      fixes not yet released on crates.io; with it beamterm, glow and slotmap, and a second,
      older hashbrown and lru) and console_error_panic_hook; wasm-bindgen, web-sys, js-sys and
      wasm-bindgen-futures, already in the lock through matrix-sdk, become direct dependencies
      of the browser's code.
    • Otherwise the terminal app's dependencies are those of 1.1.0, with curve25519-dalek
      5.1.0 (above).
    Downloads