Skip to content

12.6.30: phone Files, Play Together on a TV, unpacked packages, PS4 update version, audit fixes - #938

Merged
phantomptr merged 27 commits into
mainfrom
release-12.6.30
Nov 25, 2026
Merged

phantomptr merged 27 commits into
mainfrom
release-12.6.30

Conversation

@phantomptr

Copy link
Copy Markdown
Owner

12.6.30: phone Files, Play Together on a TV, unpacked packages, PS4 update version, audit fixes.

Local gates all green (fmt, clippy, engine nextest, payload tests, tsc, lint, vitest, i18n, apidoc, helper version, embedded pages). Full e2e: 363 pass; 4 load flakes pass when re-run alone.

🤖 Generated with Claude Code

https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT

phantomptr and others added 26 commits November 25, 2026 03:47
An updated PS4 game keeps APP_VER at the base game's 01.00 and records
its update in appinfo.db's VERSION (RDR2 CUSA03041: APP_VER 01.00,
VERSION 01.32). The helper only asked for CONTENT_VERSION and APP_VER,
so the console page's game list showed the base version, cheats for the
installed update did not match, and clean-up named the wrong version.

Every helper reader now asks for CONTENT_VERSION, VERSION and APP_VER
and picks CONTENT_VERSION, else the higher of VERSION and APP_VER, from
one shared header (appinfo_version.h) with host tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
The Cheats screen and the console page's game list read a title's
version as CONTENT_VERSION, else APP_VER. An updated PS4 game keeps
APP_VER at the base's 01.00 and says its update in VERSION, so they
showed 01.00 and matched cheats for the base game.

Both now read CONTENT_VERSION, else the higher of VERSION and APP_VER,
through one helper (installedAppVersion). The Cheats screen asks the
engine for VERSION too, which any helper already answers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
The collection read a title's version as APP_VER, else CONTENT_VERSION,
and the install checks read APP_VER only. An updated PS4 game keeps
APP_VER at the base's 01.00 and says its update in VERSION, so the game
page showed 01.00 and offered the update it already has, and the
install preflight named the base version.

AppInfoRows now has installed_version (CONTENT_VERSION, else the higher
of VERSION and APP_VER) and app_version (the higher of VERSION and
APP_VER). The collection uses the first; the install checks use the
second. The engine just asks for more keys, which every helper already
answers, so this works before the helper is updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
restore_from_manifest counted only the files it copied back and the
reply was ok:true whenever the manifest could be read. A snapshot whose
every entry was skipped (a path outside the writable folders, a damaged
line) or failed (missing file, write error) answered ok:true with
restored:0, and the app said "Restored 0 files" as if it had worked.

The helper now counts every manifest line as restored, skipped or
failed, and the reply (backup_restore_reply, host-tested) is ok:false
with the reason when nothing was restored, and ok:true with
"partial":true and the counts when only some files came back. The old
fields stay. The engine passes the new counts through and also refuses
ok:true with restored:0 from an older helper; the Backup screen says how
many files could not be restored after a partial restore.

Tests: backup_selftest covers the counts and every reply shape; engine
unit tests cover the partial, empty and older-helper replies.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
The audit fix made physical cheat writes trust dynlib handle 0 only
when it is the game's eboot.bin (#920: in a PS4 game's process handle 0
is another module), but an XML game patch still took handle 0 by number
as its base: its lines were placed in that module, bounded by its size
and pattern-scanned there. With the debugger write path (FW 8.20 and
below) nothing else stopped it, and the AppElf check then said "the game
runs <that library>".

xml_apply_on now applies the same rule (cheat_patch_base_ok, built on
cheat_module_is_game: /app0 modules, handle 0 only when it is eboot.bin
or its path cannot be read) to the module it uses, before the AppElf
check and again on the module it resolved, for handle 0 and for a .prx
AppElf alike. A refused patch writes nothing and says which module it
found.

Test: cheats_plan_selftest checks the rule and the message, including
the #920 case.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
The helper's web server has four workers. Reads before a route were
already bounded (idle connections wait on the accept thread, a request
has 5 s to arrive, a full queue closes new connections, queued ones
expire), but an upload or a download holds its worker for as long as it
moves bytes: minutes for a big file, or as long as a slow client keeps
trickling above the 1 KiB/s floor. Four of them (a few downloads from a
phone, or a client doing it on purpose) took every worker, and the
page's own requests waited in the queue until they expired, so the page
stopped answering.

At most three transfers (streamed uploads and saves, and the downloads
named by the new webui_cfg_t.long_for) now run at once. One more is
answered 503 {"error":"busy"} with Retry-After: 2 straight after the
Host/Origin/token checks (the page already shows "The console is busy.
Try again in a moment." for that code), so the last worker is always
there for the page. Turned-away transfers are counted in the existing
drops log line.

Test: webui_server_selftest holds three transfers (an upload and two
downloads), checks a fourth of each kind gets 503 at once, a normal
request is answered at once, and a transfer runs again once they end.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
The engine, web UI and hub images built FROM a tag only, so a tag moved
upstream changed what we ship without any change here. Each FROM now
names the same tag plus the digest it points at today (rust
1.99.1-alpine3.24, node 26.13.1-alpine, distroless static-debian12
nonroot); versions are unchanged. FROM scratch has no digest. The
convert toolchain image was pinned already.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
actions/checkout leaves the job's GITHUB_TOKEN in .git/config by
default, where every later step (build scripts, npm and cargo installs,
third-party actions) can read it. Every checkout now sets
persist-credentials: false, except release-tag.yml, which commits the
bump and pushes the tag with it. No other job uses git with
credentials: the one later git fetch (engine-ci's merge-queue change
list) reads this public repository, and gh, the Pages deploy and the
Docker pushes use their own tokens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
The Linux build ran linuxdeploy and its helpers straight from the
network. A diagnose step downloaded linuxdeploy from the moving
"continuous" release and ran it, and Tauri's bundler downloads AppRun,
linuxdeploy and the appimage plugin on its own, the plugin also from
"continuous", none of them checked.

scripts/release/appimage-tools.sh now fetches each from a fixed release
(Tauri's apprun-old and linuxdeploy-07333c6, plugin 1-alpha-20250213-1),
checks its SHA-256 and only then puts it in Tauri's tools cache, where
the bundler finds it and downloads nothing. A file that does not match
stops the build. The diagnose step runs that verified linuxdeploy (the
one the build uses) instead of a fresh download.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
The join page and the joined game now work with a TV remote or a keyboard alone:

- The arrows move between buttons on the join page in any browser, OK presses one, and the
  first useful button has the focus (Open in the app, Join, Cancel, Ask again).
- In the game the focus is the game's: the arrows and Enter play. Back (the app's system Back,
  the browser's Back, Esc) closes the controller check or the guide first, then brings the
  buttons with the focus on them, then leaves full screen, then goes back as usual. A press
  on the controller hands the focus back to the game.
- Check your controller is a dialog: the focus starts inside and stays there, and goes back
  to its button when it closes.
- A thick white focus ring on the guest screens, bigger on a TV; none on the game itself.
- The app on a TV: no on-screen controller, the game starts in full screen and the arrows
  stay inside it, and a hint says Back brings the buttons.
- The app's first screen on a TV (Consoles, Home) offers Join Play Together, focused; Add a
  PS5 no longer pops up over it on a TV. Phones and computers are unchanged.
- verify-android-apk.py also checks android.software.leanback is declared (optional).

Tests: e2e/play-together-tv.spec.ts drives the join page and the app on a TV with the
keyboard only; vitest for backStep, focusWhere and installArrowNav.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
The updater took the download address and the SHA-256 from the page, so a
script in the page could have it fetch any file on a pinned host (any
GitHub release) with a hash to match. A release with no published hash was
downloaded unchecked, and "Install and restart" ran whatever file sat in
the updates folder.

Now a download must be the file the last check read from the release
manifest, checked against the hash that manifest published, under the name
the check gave; a file with no published hash is not downloaded (every
release since 10.2 has one). Install, install on quit and the Android APK
download take only a file that matched, and installs hash it again right
before it runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
The asset protocol's scope was "**", so the page could load any file on the
computer through an asset URL. It now covers only what the app shows from
disk: the scratch folders it downloads previews and thumbnails into
($TEMP/ps5upload-save-*) and a game folder's cover (sce_sys/icon0.png).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
The engine refused a path that is not a .elf, .bin, .js, .lua or .jar file,
but the desktop app's own send (used when the engine is down) read any file
and sent it to any address and port. The check now sits in the one function
every path send goes through, so both ways refuse a file that is not a
payload, and the send check no longer opens such a file either.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
…iled move

"Add to agent" passed the engine address to the agent's CLI as it was typed
in Settings, so an address starting with "-" read as an option and spaces or
line breaks went into the agent's config as more than an address. It is now
parsed as an http(s) URL and written out again, and anything else is
refused. Claude Code also had its ps5upload entry removed before the new
one was added: when that add failed, the agent was left with none. The old
entry is now put back.

Each agent's own CLI still writes its config, so its other servers and
comments stay the CLI's to keep; no shell is involved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
A name from an older system (Latin-1 and the like) was read as lossy UTF-8,
so it became a name the server does not have: opening the file failed, and
on NFS a folder listed without attributes could not be listed at all. Names
now keep every byte: a byte that is not UTF-8 stands for itself as one
private-use character, and is sent back as that byte when the file is
opened, looked up or renamed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
A restore empties the console folder it is given and fills it from the
backup. The engine only checked that the folder ends with the title ID, so
a save path with ".." (or a title ID that was a path, which the
restore-file route did not check) could point it at another folder on the
PS5. The save path must now be a plain absolute path and the title ID one
plain name, checked before anything is read, kept or deleted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
Several places read a peer's whole reply into memory with no limit, so a
server that kept sending could fill it: the console's Remote Play session
and registration answers, Payload Manager replies, cheat and patch
downloads, the console FTP log tail, and the release list the pre-release
update channel reads. Each now stops at a size well above any real reply
and reports it, and a patch archive entry is held to the size it declares.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
A directory entry that pointed back at its own folder or an ancestor was
only stopped by the 64-level depth cap. Two such entries in one folder
doubled the work at every level, so the extract never finished and kept
making folders. Each directory is now walked once; one reached again is
refused as a cycle before anything more is written.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
…-press selection (#932, #936)

System Back (Android app and a phone's browser) now closes the Files row menu, the
Add files and Recent lists, and the inline editors before anything else. On the
Files listing it then leaves selection mode, then goes up one folder, and only
leaves Files from the drive's root. Screens register these steps in one place
(lib/systemBack useScreenBack), after any open menu or dialog. A test checks that
every menu in the app registers for Back.

On a phone (portrait or held sideways) Files gets a compact header pinned over the
list: the folder name, search, the drive switcher and a menu with the other
actions, and the path under it. Checkboxes show only in selection mode, which a
long press on a row starts (or Select in the menu, for a keyboard or D-pad).
While selecting, the header shows the count, Select all and cancel, and a bar
with Copy, Move to, Rename, Delete and More takes the bottom navigation's place.
Tablets and computers keep their layout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
…ne row, e2e

A held finger on a row no longer turns into a drag (rows are not draggable in
the phone layout), a file's name lets taps and long presses through to its row,
and the click of the finger lifting is swallowed wherever it lands, so the bar
of actions that comes up under it is not pressed. Two quick taps while selecting
tick and untick a row instead of opening it. Held sideways, the path sits beside
the folder row, so the pinned header takes one row of the short screen.

Adds Playwright specs for phone portrait and both sideways sizes (header, long
press, selection bar, Back, menus, drives) and the phone's browser, and checks
the desktop layout keeps its header, drive chips and checkboxes. The phone row
menu spec now selects through the menu's Select, since checkboxes show only in
selection mode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
…MPR emulator (#933)

POST /api/fpkg/build takes unpack_packs, as image and folder builds do: a game in
LZ4 or zstd packs is packaged as its plain files, decoded as the package is written,
with the packs and their indexes left out and an ampr_emu.index of what the package
holds. add_ampr_emu and ampr_emu_build choose the emulator as before.
leave_out_ampr_emu (with unpack_packs only) leaves libSceAmpr.sprx out of fakelib and
fakelib2; a game that reads through libSceAmpr still gets its index. Both are refused
with the reason for a game they can't apply to.

The package builder takes a reader for the source, so the existing unpack code is
reused rather than copied.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
…MPR emulator (#933)

Convert -> .pkg now shows "Unpack the asset packs" for a game in LZ4 or zstd packs,
ticked by default, since a package is installed and read by the PS5 itself. Under it,
"Leave out the AMPR emulator" (off by default) makes a package without
fakelib/libSceAmpr.sprx. Both go with the game into the convert queue, where the row
says so, and they stay with the game when a waiting item is changed to another kind
(leaving out the emulator only for a package).

Wired through the Tauri command and the browser build. Text in all languages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
…ft out on request (#933)

Checks the Convert screen end to end against a mocked engine: a plain game gets no
unpack option, a packed one has it ticked, "Leave out the AMPR emulator" is under it
(hidden while unpacking is off), and both reach the package build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
.unwrap_err();
assert!(
e.contains("not a save folder") || e.contains("not a title ID"),
"{path:?} {title:?}: {e}"
…odings

The engine's FTP name fix uses suppaftp's Encoding, new in 12.2; the app's
lockfile still had 12.1.0, so the Android build failed. Require 12.2.1 and
move the app's lockfile to it (only that entry). A save restore test no
longer prints the refusal text, which code scanning read as a user id.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
@phantomptr
phantomptr merged commit 4174eee into main Nov 25, 2026
84 of 87 checks passed
@phantomptr
phantomptr deleted the release-12.6.30 branch November 25, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants