Skip to content

12.6.34: your payload sources, two-pane Files, PS5 → server moves, Convert reattach, test temp leaks - #956

Merged
phantomptr merged 25 commits into
mainfrom
release-12.6.34
Nov 26, 2026
Merged

phantomptr merged 25 commits into
mainfrom
release-12.6.34

Conversation

@phantomptr

Copy link
Copy Markdown
Owner

12.6.34. Full notes in CHANGELOG.md under Unreleased.

Local gates green (fmt, clippy, engine nextest, payload tests, tsc, lint, vitest, i18n, apidoc, helper version, embedded pages, no-ftx2, gitleaks); a gates run in a fresh temp folder left nothing behind.

🤖 Generated with Claude Code

https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT

phantomptr and others added 25 commits November 26, 2026 13:08
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
Adding a GitHub or Gitea payload repo was taken out in 12.6.0, when the
app stopped downloading payloads. The FAQ now says so and points to
Send payload and to removing repos added before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
Every engine test that made a scratch file or folder in the system temp
folder now wraps its path in test_tmp::temp_path / remove_at_exit
(engine/test-support/test_tmp.rs, included by path in each crate's test
code, no new dependency). The path is removed when the test process exits,
also after a failure or panic; per-process test data folders (install
history, go-live store, shares, staging, inspect mirrors) are covered too.
PS5UPLOAD_KEEP_TEST_TMP=1 keeps them to look at a failed run.

One full engine run left 472 entries (2.3 GB) in the temp folder before
this; it now leaves none.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
The desktop app's Rust tests use the engine's test_tmp helper the same way:
scratch paths are removed when the test process exits, even after a panic.
A run left 17 folders before this and none now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
The ci-apt, merge-when-green and scan-artifacts node tests and the client's
page CSS test now remove the folders they make when the file's tests end,
pass or fail (PS5UPLOAD_KEEP_TEST_TMP=1 keeps them). The script tests left
36 folders per run before this and none now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
android-sign.sh removes its work folder, which holds the decoded release
keystore; fast-release.sh its PR body file; the tailnet vectors generator
its Go scratch folder; release-check.sh its logs when everything passed
(they stay to read after a failure). The hub lock refresh does the same
(in the engine commit).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
scripts/check-test-tmp-leaks.sh runs tests with TMPDIR/TEMP/TMP pointed at
a new empty folder and fails, listing each leftover with its size, if
anything is left: a few engine crates by default, --all for the whole
engine workspace, the scripts' node tests and vitest, or any command after
--. The engine test jobs in CI now run nextest and the doctests with the
temp folder pointed at an empty job folder and then fail if it is not
empty.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
A convert started in the web UI kept running in the engine after the
browser was closed: the engine runs build jobs by itself and nothing
cancels them when a page goes. On reopening, though, the page's task
list marked every task that had been running as "Interrupted", and the
build was then found again under a second, new task. The screenshot in
the report shows exactly that: one "Interrupted" row and one running row
for the same 541 GiB convert.

Now a convert's task keeps its engine job's id. When the page opens
again it asks the engine about that job, retrying a failed read like the
Upload queue does since #945:
- still running: the same task goes back to running and the Convert
  screen follows the build, with no second task;
- finished while the page was closed: the task says done and Convert
  shows the result (Install, Delete and so on), as if never away;
- failed: the task says failed, with the engine's reason;
- unknown to the engine (it restarted, or the desktop app was quit,
  which stops its engine) or no answer: it stays "Interrupted".

Some steps are run by the page, not the engine, and these are now said
plainly. The Convert queue moves to its next game from the page, and the
install after "Convert & install" is started by the page. With the page
closed the current build goes on, but the next game and the install wait.
While the queue runs, its card says that closing the page does not stop
the game being made and that the next game starts only while the page is
open. After a reopen it says the queue stopped when the page was closed
and that the game it was making went on. A build found after a reopen is
followed as a build; its Install is left for the user, so two open
windows can't both install it. The desktop app uses the same code.

Tests: vitest for reattaching a running build in its own task, a build
that finished or failed meanwhile, a failed read retried, a job the
engine no longer knows, and Convert & install not installing on its own;
the queue's note after a reload. An e2e reloads the page mid-convert
against a fake engine and checks one task, running, then done.

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

Checking a debug package reads it twice: every block of its image against
its digest, then everything before the SI ZIP again to compute the PlayGo
chunk CRCs and compare them with playgo-chunk.crc. Only the first read
was counted. The progress reached its total at the end of it and then sat
at 100% through a second read of a 200 GB package, and Cancel was not
heard during that read.

Now both reads count in one total, so the progress reaches it only when
the check is done. The second read reports as it goes and stops on
Cancel. The check's status says which read it is on (a new "phase"
field, "blocks" or "playgo"), and the line under the game says
"Checking the data blocks: 40% (…)" or "Checking the PlayGo chunks:
70% (…)". A running check never shows 100%, also with an older engine
that doesn't send a phase.

Convert's full read-back check of a package it built goes through the
same code, so its Verify stage now counts the PlayGo read too, and Stop
ends it there as well.

Tests: Rust tests that the PlayGo pass counts in the total, that no report
reaches it before that pass, that Cancel stops it, and that the check
status ends with no phase; vitest for the phase text and the 99% cap.
New text in all 21 languages. API doc regenerated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
A link install failed with "The file at this link changed during the
install" while the file had not changed. When an origin stopped matching
its own validator (a 200 to If-Range), the engine called the file changed
on a different Last-Modified, or, with no date at all, on the validator
having matched before. Big files are served by many nodes (CDN edges,
mirrors behind one name), and each may keep its own ETag and date for the
same bytes (nginx builds its ETag from the file's time), so either could
fire for an unchanged file. A compressed answer's length could also read
as another size.

The file now counts as changed only when:
- its size differs (a 206's Content-Range total, or a 200's length when
  the body is sent as it is), or
- a 200's first bytes differ from the file's first 64 KiB as first read
  (a package's header, with digests of the whole package), or
- with no first bytes known, its date differs and the origin has been
  consistent: it honoured If-Range before and none of its answers carried
  another date or strong ETag.
Weak ETags, missing validators, validators only some answers carry and
ETags that differ between nodes are unknown, never a change. Two change
answers in a row are needed; an earlier timeout no longer counts as the
first. Range reads ask for Accept-Encoding: identity, and the engine log
says which evidence decided it.

Tests with a scripted origin: a weak ETag, an ETag on only some answers,
two nodes with their own strong ETags and dates for the same bytes, and a
real change of size (as a 206 total and as a 200 length).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
POST /api/transfer/download takes remove_source with a saved-server
destination (remote://...). The engine copies as before, then checks
every file's size and every folder on the server, lists the PS5 source
again (it must be unchanged), and only then deletes the source on the
PS5. A failed, cancelled or unverified copy keeps the source. A whole
drive or top folder, unsafe_read, and non-server destinations are
refused. The relay now runs through a ConsoleSide trait so tests can use
a local folder as the console; tests cover move, copy, failure, cancel,
short copy, a source that changes meanwhile, and a live Samba run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
The Move to… dialog lists saved servers with Copy there… and Move
there…. After picking a folder on the server, each selected item goes
as its own engine job, one after another; a failed or stopped item
stops the rest. A move asks the engine to delete each original only
after it checked the copy. Includes the words for both apps in all
languages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
Copy to… and Move to… now list the saved shares after the drives. A
move to a share deletes each original only after its copy job ended
done with every file and byte counted; otherwise the original stays and
the page says so. The helper's SMB daemon already wrote to shares, so no
helper change was needed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
The in-app file browser listed each place with its own code. That now lives in
lib/placeList (listPlace, parents, and finding a name across pages), so Files'
second pane (#952) can list the same places the same way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
A Two panes switch in the Files header (wide windows with a mouse only,
remembered per device) puts a second side next to the PS5 listing: this
computer (in the web UI, the computer the app runs on), a saved server or
another console. Tick items on one side and Copy or Move them to the other.

Each pair uses a transfer Files already had: Download, Download to a saved
server, Add files, and Send to another console. Move copies, checks that the
copy is there (a file by its size), and only then deletes the original. There
is no Move from this computer or a saved server, because the app deletes
files on neither; the button says so.

Phones and tablets keep the one list, and Files with the switch off is as
before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
The PS5 listing takes the larger share, since its rows carry their own
buttons. The Copy and Move column is as wide as its longest label, so
German and Russian fit in wide fonts too. The Move question no longer
says "1 items".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
Toggle, both sides browsing on their own, remembered on reload, computer to
PS5, PS5 to a saved server, a move that deletes only after its copy is there
(and keeps the file when the copy fails), Tab between sides, right to left,
wide fonts, and phones and tablets keeping the one list. The engine is a fake.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
A move to a saved server now uses the engine's own move (#953): the engine
checks every file's size and every folder on the server, and only then
deletes the source on the PS5. A folder can't be checked file by file on
this computer or another console, so there Move takes files only, and
folders are copied; the button says why while a folder is ticked.

In the narrower PS5 side, the selection bar's actions wrap onto more lines
instead of squeezing over each other.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
The SMB daemon never copies links or other special entries, so deleting
the original after such a copy would lose them. Its job status now
reports how many entries the copy left out ("skipped", counted once
while the tree is measured). The page deletes a moved original only
when that count is 0; with links it keeps the original and says it holds
links a network share can't hold. A daemon too old to report the count
never gets an original deleted. Older pages ignore the new field.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
The relay copies only files and folders; links and other special entries
in the PS5 listing were left out silently. They are now listed with the
source, and a move whose tree holds any keeps the original, naming the
first link. A copy is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
A payload source is a GitHub project, or a Gitea or Forgejo one (also on the
home network, on its own port), whose releases publish payload files. The user
picks the file once; it is kept with the repos added before 12.6.0
(custom-repos.json, same custom-<hex> ids), so those come back as sources that
only need their file picked.

- Releases are read only when asked (GET /api/payloads/repos?check=1, force=1
  for Check), at most every ten minutes otherwise. A 403/429 rate limit answers
  rate_limited with retry_at, and other sources on that host are not asked
  again in the same pass.
- Newer releases match by name: the same name apart from its version parts (a
  number that does not follow a letter), so kstuff-v1.6.0.elf matches
  kstuff-v1.7.elf and ftpsrv-ps5.elf matches only itself.
- Download (POST /api/payloads/repos/{id}/download) streams into the payload
  folder through a temporary file, checks the size the release gives, the
  release's checksum file when it has one for the file, and that an .elf is an
  ELF, then renames it into place; the copy it replaces stays if anything
  fails. The card's data carries the file's release, size and SHA-256.
- Addresses: https only, no credentials, never loopback or link-local; private
  hosts only for Gitea/Forgejo. Every redirect is checked again: GitHub may use
  its release-file hosts, a Gitea server its own host and port or public names.
- Preview (POST /api/payloads/repos/preview), add (POST /api/payloads/repos),
  change file (PUT /api/payloads/repos/{id}/file); remove as before.
- Sources are left out of the payload update check (their card checks).
- MCP: payloads_sources (read) and payloads_source_download (destructive);
  payloads_send takes a source's id. API description regenerated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
Payloads › Catalog gets a "Your payload sources" section (desktop, web UI and
phones; it talks to the engine, which downloads). Add a payload source takes a
GitHub, Gitea or Forgejo address, shows the newest release's .elf and .bin
files, says which names newer releases may use, and notes once that
PS5Upload will download and send whatever the project publishes under that
name. Each source is a card: the file and its rule, the copy here (release,
size, SHA-256, checksum matched), New version available, and Download or
Update, Send to PS5 (asks first, naming the file, release, size and SHA-256,
then uses the usual send), Change file and Remove source. Opening Payloads
checks (the engine keeps what it read for ten minutes); Check asks again.
Errors are worded per code, and a rate limit says when to try again.

Sources added before 12.6.0 move from the catalogue list to this section with
Pick the file; the Custom badge and its Remove are gone (keys pruned). The
catalogue no longer falls over on an engine that answers without a list.

Strings in all 21 languages; vitest for the cards and the add step; an e2e
spec (add, pick, download, send after the confirm, remove) at 1280 and 390
wide, with a wide font and in German.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
FAQ: "How do I add my own payload source?" now describes the feature: the
address (GitHub, Gitea or Forgejo, https), picking the file once, the name
rule for newer releases, checks only on opening Payloads or Check, Download
with its size and checksum checks, the SHA-256 and confirm before Send, and
Pick the file for repos added before 12.6.0. The load order and update answers
and the README no longer say the app never downloads a payload. The website's
feature list says "your own GitHub or Gitea projects" and drops "keep them up
to date by themselves", in all languages.

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
A refusal's detail started with the game's path and was cut at 300 bytes,
so a deep folder pushed the reason (the emulator's version) off the end. A
long detail now loses its middle, the cap is 512 bytes, and the emulator
refusal says what to do first and the facts last.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
@phantomptr
phantomptr merged commit 5224061 into main Nov 26, 2026
49 checks passed
@phantomptr
phantomptr deleted the release-12.6.34 branch November 26, 2026 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant