30 commits since v0.31.0 (19 non-merge). #362 merged onto main seconds after the release merge (#363), so the notes as tagged would have been wrong in the one way that matters: they lead `## New` with the console's "Controller-optimized UI" switch, andcbd3d028is the commit that makes that switch do anything at all. trust::Settings::extra is #[serde(flatten)], so the android.* keys are TOP-LEVEL keys of the settings document. ConsoleJson wrote and read them nested under an "extra" object, which serde filed under the literal key "extra" — so no console row ever found android.gamepad_ui_enabled. Every Android-only row rode the same dead path in 0.31.0: low latency, phone rumble/gyro, SC2 and DualSense capture, and the console-UI mode picker. That is a user-facing fix in its own right and is now in `## Fixed`, in `## TL;DR`, and in the Play notes — it is the most useful 500 characters an Android user gets from this release. Also folded in:c9a76287, the focus halo and panel_highlight taking the card's corner plus their own outset (a rect grown by d only stays concentric if its radius grows by d too). NOT folded in — deliberately: cargo audit is red on main with RUSTSEC-2026-0258 (h2 0.4.15, unbounded empty DATA frames, fixed in 0.4.16, transitive via hyper). It predates this cut — the same job failed on669a1bc0and on the v0.31.0 tag commit — so it is not a regression here. `cargo update -p h2 --precise 0.4.16` bumps h2 in eleven lock lines but ALSO rewrites several windows-sys references downward (0.61.2 -> 0.59.0/0.52.0) on the pinned 1.96.0 toolchain. Re-resolving the graph for the Windows build inside a version bump that cannot be compiled for Windows on this host is the wrong trade; it wants its own commit and its own CI. Recorded in the CHANGELOG's verification section. Cargo.lock is untouched by this commit. Gates re-run: cargo fmt --all --check clean; scripts/ci/check-docs-drift.sh clean; cargo test -p punktfunk-core --lib 273 passed; the Play notes gate run verbatim, 440/500 characters and unique; both openapi copies cmp identical and stamped 0.31.1; notes voice scan clean.
16 KiB
Wire-compatible with 0.31.x — everything you have already paired keeps working, and you can update one side at a time. Nothing here changes how a host and a client agree on what to send each other, so an old client on a new host, or the other way round, streams exactly as it does today.
This is a fix release, and the largest thing in it has been wrong on every Windows host since there have been Windows hosts: the port your video actually travels on was never opened in the firewall, so on any network that needs your client to knock first, the connection succeeded, every health signal stayed green, and the picture never arrived. Two more are about controllers that were connected, correctly identified, and doing the wrong thing anyway — Moonlight-compatible sessions on Windows were building the one kind of virtual controller Steam and most games cannot see, and on a Fire TV a DualSense's L2 was arriving as L1. The rest is Android: a console that could not be dismissed, a picture that sat in the top-left corner, and a television remote that could not reach Settings or your library. There is one new thing too — a library add-on can now tell your host which of its games are running, which is how a game your host cannot find on disk finally ends its own session.
TL;DR
- Windows: streams that connected and then stayed black. The per-session video port was never covered by any firewall rule, on any Windows host, ever. Update with the installer and the rule is added for you — see Before you update.
- Windows: controllers did nothing in Moonlight-compatible sessions. Every client, every device, same result. Those sessions built a virtual controller most games cannot enumerate; they now build the same one ordinary Punktfunk sessions do.
- Android: controllers Android has no layout for pressed the wrong buttons. A DualSense or an Xbox Elite Series 2 over Bluetooth on a Fire TV had L2 arriving as L1, with Circle and R1 doing nothing at all.
- Android: the controller console would not go away, and the picture sat in the corner. Both fixed — and the console now carries its own switch for turning itself off.
- A television remote can reach Settings and your library again. Both were on controller face buttons a remote does not have.
- Android: every setting that only exists in the controller console did nothing when you changed it. Low latency, the phone's own rumble and motion, controller capture — all saved to somewhere nothing read back.
- Nobara hosts: "Switch to Desktop" during a stream threw you straight back into the stream. And on Steam Deck-style hosts, a mid-stream switch could leave Gaming Mode unable to start afterwards.
- NixOS: the host installed a compositor that was not there. The package shipped the small launcher and deleted the program it launches.
- Games your host cannot see on disk can now end their own session. A library add-on can tell the host which of its titles are running, which is the missing half for anything launched by handing off to another program — emulated titles, manually added ones.
Before you update
- Windows hosts: run the installer rather than replacing the program by hand. The black-picture fix is a new firewall rule, and it is added by the host's own service-install step, which the installer runs for you on every update. If you run the host some other way, run
punktfunk-host service installonce as an administrator — or add an inbound rule forpunktfunk-host.exeyourself. Uninstalling Punktfunk removes the rule again. Nothing on the client side needs doing. - NixOS hosts: expect a rebuild. The compositor is now pinned to the exact version every other packaging channel ships, rather than to whatever the packages you happened to have carried, so its build inputs change. The binary cache added in 0.31.0 covers it if you have it configured.
- Add-on authors:
@punktfunk/plugin-kit0.4.4 is what you depend on for the running-report above. The call and its types were reachable only through a deep import path before, so nothing could reach them from the package root. Nothing else in the add-on contract moved. - Arch and SteamOS hosts: this release finally offers you a compositor upgrade you have been owed since 0.30.0. The package's declared version had been left behind while the program inside it moved on, so your package manager saw nothing to do — which is why non-US keyboard layouts kept typing US characters on those machines even after the fix shipped.
New
- A library add-on can tell your host which of its games are running. Your host normally works out whether a game is still going by looking for it on the machine — which needs something recognisable there to look for. A title that Playnite launches by handing off to another program has none: an emulated game, a manually added one, anything whose add-on records no folder. So the host never noticed those ending, your session stayed open on a game that had already exited, and anything set to happen when a game ends did not. The add-on knew the whole time, and can now say so. It is deliberately hard to get stuck on: a report expires unless it is repeated, so an add-on that crashes or is uninstalled stops speaking for your games within a minute and your host goes back to looking for itself. This is the host's half. It does something for you once an add-on sends those reports — the Playnite one is the first and updates separately, on its own schedule.
- The controller console can switch itself off. On an Android phone or tablet the console's own Settings now carries a Controller-optimized UI switch, so you can leave the console from inside it and land back on the touch interface immediately. Until now that switch existed only in the touch settings — which someone stuck inside the console had no way to reach, and since 0.31.0 the console is the only interface Android shows when a controller is attached. It appears only where switching off has somewhere to land: not on a television, and not on the desktop console, where turning it off would leave you with nothing.
Improved
- A host can tell a silent connection from a perfect one. Packet loss is a proportion of what arrived, so a link delivering nothing and a flawless link both reported zero loss — and the host read the silence as perfection, complete with confident wording about the client's network in the log. Clients now also report how much they have actually received, so a host that is sending into a void says so, and names the video path rather than blaming the client. A client too old to answer gets a warning that says as much instead of a guess.
- The Connected controllers page can be trusted again. It read your button presses the same wrong way the stream did, so it agreed with the bug and confirmed a mistranslated pad as correct. It now shows what the controller actually reported alongside what Android made of it, and names the layout it resolved — which is also what makes an unrecognised pad fixable from a bug report, without the hardware in hand.
Fixed
- A Windows host could stream into a black screen with nothing anywhere saying why. One field host sent 1,919 frames of video that were never seen while its own log blamed the client's network. The cause: the firewall rules Punktfunk installs cover fixed port numbers, but the video itself travels on a port chosen fresh for each session — a port no such rule can ever cover. So Windows dropped the client's opening knock on every session on every Windows host, including ones that worked; those worked only because nothing on the path needed the client to open the way first. When something did — many home routers, most mobile networks, anything doing address translation in front of the host — the control connection stayed perfectly healthy and the video went nowhere. The host now installs a rule that follows the program instead of the port number, so whichever port a session picks is covered. It is scoped to the program deliberately: pinning a port would have collided with Sunshine and Apollo on machines running both.
- Controllers did nothing at all in Moonlight-compatible sessions on Windows, reported across every client and every device someone tried, which is what showed it was not a client problem. Windows has two ways to present a virtual Xbox controller, and only one of them is visible to Steam, to games using the common input libraries, and to the Windows Game Controllers panel. Ordinary Punktfunk sessions moved to that one over a year of reports; Moonlight-compatible sessions kept the invisible one purely because both were reached by the same internal name. They now make the same choice, and switching them both back is still one setting if you need it.
- Controllers pressed the wrong buttons on devices Android has no layout for. Reported from a Fire TV Stick 4K Max with a DualSense and an Xbox Elite Series 2, both over Bluetooth, both identified by name and both wrong under the fingers: L2 arrived as L1, and Circle and R1 were dropped entirely. Android names a controller's buttons from a file matched to that exact model, and when there is no such file it falls back to guessing by the order the buttons appear in the controller's own report — which is only right if that order happens to match. Neither pad has a file on a Fire TV. Punktfunk now reads the button's position in the controller's report directly, which is what the controller means rather than what the guess made of it, and does so only where the guess was in play, so a device that already worked is untouched. Triggers get the same treatment: on a pad Android never mapped they sit on raw axes, which is why pulling a trigger could swing the right stick instead. Whether a trigger rests at zero or at the bottom of its range is now measured from the device rather than assumed. Not yet confirmed on the reporter's own hardware — the fix is proven against what those two controllers report, but a Fire TV is the test that settles it, so please say if yours still misbehaves. One thing stays broken and cannot be fixed here: the Xbox pad's Guide button is delivered by Android as the Home key, which it never passes to an app.
- The controller console could not be dismissed on some Android phones. Turning it off is a matter of no controller being attached, and the app decided that by asking whether a device claimed to be a gamepad — which is the right question for routing a button press and the wrong one for knowing a pad is in the room. Manufacturer game-mode overlays and gaming-phone shoulder triggers make that claim without being controllers, and one of them was enough to pin the console on forever, because a pad that was never there can never be unplugged. The app now also asks whether the hardware is there behind the claim — a stick, a directional pad or real face buttons — and the new switch above is the guaranteed way out either way.
- Changing an Android-only setting inside the controller console did nothing. Low latency, the phone's own rumble and motion controls, the controller capture switches and the console's own display mode could each be changed in the console, and each quietly went nowhere: the console filed those settings one level deeper than the settings file keeps them, so nothing ever read one back. The row showed its own default, your change came back as the value it had just been handed, and nothing downstream ever heard that anything had moved — which is also why the new off switch above needed this fixed before it could work at all. Settings written by the previous build carry a dead wrapper; it is discarded the next time anything is saved rather than followed around for the life of the install.
- The glow behind a focused card was squarer than the card. The halo grows the card by a few units on every side but kept the card's own corner radius, and a shape grown outward only stays parallel if its corners grow with it — so the two arcs stopped sharing a centre and the corners read as a badly drawn outline instead of light spilling out from behind. Every card in the console goes through that path: the home tiles, the library grid, the coverflow and the collections deck.
- The picture sat in the top-left corner of an Android screen. The video layer took the size of the view once, at the moment it was created — and the stream screen hides the system bars and expands into the display cutout a frame or two later, each of which grows the view underneath a layer that never hears about it. The size is now read fresh for every frame, which also means rotating the phone and multi-window both simply work.
- Settings and your game library could not be reached with a television remote. A remote has a directional pad, OK and Back, and the console had put Settings and the library shelf on controller face buttons it does not have — so on an Android TV neither could be opened at all. Pressing down on the home row now opens Settings, and the library has joined each machine's own options menu, which is where the documentation had been telling you to find it all along. The on-screen hints name whichever route the device in your hand actually has.
- On Nobara, "Switch to Desktop" during a stream threw you straight back into the stream. The switch takes the picture away, Punktfunk reads that as a problem and rebuilds the session, and the rebuild put Gaming Mode back over the desktop that was trying to start. 0.31.0 changed how the host takes Gaming Mode over and left nothing watching for the switch, which Steam Deck and Bazzite machines never noticed because they follow it another way — Nobara has neither. Also fixed on both: a mid-stream switch used to leave Gaming Mode replaced by a placeholder, so the machine's own "Return to Gaming Mode" afterwards started something that did nothing. Both routes now hand the machine back intact.
- On NixOS the host installed a compositor consisting only of its launcher. The packaging trims the installed programs down to the one that is needed and had been matching it by name — but the program with that name is a small launcher that sets things up and then runs the real compositor, which the trim deleted. What shipped was a launcher pointing at nothing. That is the true cause of the version banner printing nothing, the marker "missing from the binary", and every HDR-related NixOS failure chased alongside them. Separately, NixOS was the only channel not pinning which compositor version it patches, so a package update could and did break the build outright — and since HDR is on by default, that failure landed on anyone enabling the host at all.
Thanks
Every fix above came from someone describing precisely what did not happen. The Windows black screen was found in two field logs from a host that looked healthy in every respect; the dead controllers in Moonlight-compatible sessions were reported with the detail that made them findable, that it reproduced on every client and device tried; the Fire TV report named which button arrived as which; and one Android user sent two reports in a day that turned out to be the same mistake made twice. Thank you — that is what makes a fault findable rather than merely believable.
For developers
Protocol, ABI, driver and embedder detail — including the version table — is in CHANGELOG.md.
The short version: the streaming protocol, the embedding interface, the driver protocol and the gamepad channel are all exactly where 0.31.0 left them, so nothing needs rebuilding, re-pairing or re-packaging in any direction. The management API and the add-on toolkit each gain one thing by pure addition — the running-report route above, and the toolkit call for it in 0.4.4 — and an add-on that ignores both keeps working unchanged. One control message is added to the wire — clients reporting how much they have received, which is what lets a host tell a dead video path from a clean one — but it takes a spare message number rather than changing an existing message, and an older host on the other end ignores it after one note in its log.