Skip to content

12.6.32: storage numbers, audit fixes (engine, network, AVA1), updater, phone layout - #947

Merged
phantomptr merged 73 commits into
mainfrom
release-12.6.32
Nov 26, 2026
Merged

phantomptr merged 73 commits into
mainfrom
release-12.6.32

Conversation

@phantomptr

Copy link
Copy Markdown
Owner

12.6.32: bug fixes. Full notes are in CHANGELOG.md under Unreleased.

  • Files shows the right free space, and the storage numbers say what they are. Closes Storage free-space mismatch: stale Files UI (98.1 GiB), live API (163.42 GiB), Sony (71.35 GB) #944.
  • Audit leftovers fixed in the engine: cut-short and split packages in the Collection, Organize, save backup safety, queue cancel, package rename window, FTP folder checks, image and archive bounds.
  • Network-facing audit: Play Together links, guests and the hub; the phone link; Mesh Drive with three or more consoles; sharing; transfers. Hub changes are compatible both ways; the hub needs its own redeploy to get them.
  • AVA1 library fixes (Audit fixes: a use-after-free, job ids, resume after a commit error, memory bounds, blocked devices ava1#22): a use-after-free in the helper's receiver, job ids, resume after a commit error, memory bounds, blocked devices, part-file names. The C half ships in the helper now; the Rust half arrives with the next ava1 crate.
  • Updater: opening the app mid-update no longer says it failed. Phone layout and right-to-left fixes.

Local gates green (fmt, clippy, engine nextest, payload tests, tsc, lint, vitest, i18n, apidoc, helper version, embedded pages, no-ftx2, gitleaks).
Hardware (Fat, FW 13.60, branch helper): reach probe passes, storage reads match, user rename writes (#940 path) and a too-long name is refused before sending.

🤖 Generated with Claude Code

https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT

phantomptr and others added 30 commits November 25, 2026 22:04
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
The drive chips in Files showed the free space read when the screen
opened. Refresh listed the folder again and left the drives alone, so
a chip could say 98.1 GiB while the console had 163 GiB free; Volumes,
which reads on its own, showed the right figure.

Every screen that shows a drive's free space now reads one shared
reading per console (state/volumes): Files (chips, the phone's drive
menu, Move to, Extract), Volumes, the Upload destination, Send to PS5,
the image destination and Home's low-space card. It is read again:

- on Refresh in Files or Volumes;
- after anything done in Files (delete, paste, move, extract, an
  upload that ended);
- when any job on that console ends, on whichever screen it started;
- when a screen comes back into view;
- when Move to or Extract opens, and while browsing folders if the
  reading is older than 30 seconds.

The Upload screen used the free space of before the last upload for
its "usable" figure and its will-it-fit check until it was left and
opened again; it follows the shared reading now.

The console's own Files page had the same fault in the line under a
folder ("… free"): it reads the drives again with the folder.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
GET /api/ps5/hw/storage was documented as "the console's internal
storage, as PS5 Settings counts it". It is not: the helper reads statfs
on /user, /system_data and /system_ex and nothing else. On a 2 TB Pro it
said 175.5 GB free while the PS5's Storage screen said 71.35 GB. How the
PS5 counts is not known, so nothing tries to copy it; the docs and the
screens now say what the numbers are and that the PS5 can show less.

The numbers themselves were checked against the report: they add up,
nothing is counted twice, and the 308 GB "reserved" is already out of
"free" (f_bfree - f_bavail). What was wrong is how they were shown:

- Hardware > Console Storage showed decimal GB, beside GiB on every
  other screen, so the same free space read 175 GB there and 163 GiB on
  Volumes. It also counted the system partitions' free space as free.
  It now shows /user in GiB, with "Held back by the PS5" (counted in
  Used, not free space) and a note that the PS5's own Storage screen
  can show less.
- The health check's "Console storage" counted the system partitions
  too; it now reads /user.
- Volumes explains the internal drive in three plain lines: what the
  PS5 holds back, about how much new data is likely to fit, and that the
  PS5's screen can show less (go by the smaller one). The old line
  called the gap between free and likely-to-fit "system/filesystem
  headroom".
- The Upload destination says "room for about" instead of "usable".
- The package viewer said "Fits on the target drive" against raw free
  space; it now uses what a copy can take and says "It may not fit"
  between that and what is likely to fit.

OpenAPI summary, schema docs, the MCP tool and the helper's comments no
longer claim parity with PS5 Settings. The helper change is comments
only.

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

A guest on the home network signals to the engine directly (/api/join/signal).
That socket needs no key, and it took any number of offers: each one is a new
peer connection built on the one task that carries every guest's picture, and
they queued without a limit. Anything on the network could slow Play Together
for everyone, or grow the engine's memory, for as long as it liked.

The socket now takes 64 signals (an offer and its candidates, several times
over), then says rate_limited and closes, as the hub does for its guests.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
A phone the computer allowed to watch could come back as a controller without
asking: its way back in (the reconnect token over the internet, its device on
the home network) did not say what it had been allowed to do, and the new
socket chose for itself. Over the internet, where watchers are told they can
never be handed the controller, a watcher got the pad, the PS button and the
keyboard and mouse by reconnecting without the watch flag.

The way back in now carries what was allowed. A phone allowed to watch comes
back to watch without asking; to play it asks again.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
A guest's PS button is taken away once they picked a user on the TV (PS, then
X). An X pressed while PS was still down did not count as the pick, so a guest
who held PS through it was signed in with a PS button that kept working, and
could open the host's home screen.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
An invite lasts half an hour. When one lapsed with no internet guest in, its
room on the hub closed, and the engine kept the closed room: every invite
made after that was the home network's link, marked offline, until Play
Together was closed and opened again. The same happened to a phone link whose
room could not start.

A room that closed by itself is now replaced when the next invite is made.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
…nvite

A guest who says hello with no key and no code asks the host to let them in:
that is the "Playing nearby" join on the home network. A guest in an internet
invite's room was treated the same, so the link's key decided nothing there.
A link the host had replaced with New link, or one whose invite had lapsed
while a friend was still in, still put its holder in front of the host's
"wants to play" prompt, under any name they chose.

Asking with nothing to show is now for the home network only. In an internet
room a guest needs the current key or code, and is told the link is no longer
good otherwise.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
A download to this computer goes through a check that wraps the receiver's
file writer, and that wrapper passed on every step but two. One of them tells
the writer, on a retry, that the folder was already renamed into place. So a
folder download whose connection dropped in the last moment, after every file
had landed, ran again and failed with "appeared during the download", and a
new try downloaded it all again. The other step syncs the folders of finished
files before the record calls them done; it was skipped too.

Both are passed on now.

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

Copying a PS5 folder to a saved server (FTP, SMB, WebDAV and the rest) joins
each name in the console's listing onto the server folder. Only . and .. were
left out, so a name holding a slash, or .. behind a backslash on a Windows or
SMB server, was written outside the folder that was picked.

Each name now goes through the same check the server browser uses, and the
copy stops on one that would leave the folder. Plain odd names, such as a
backslash inside a game's file name, are kept as they are.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
Resuming a zip download, or a zip upload, read back what was already done in
steps of at most a few kilobytes. The bytes left were turned into a machine
word before the step was capped, and on a 32-bit phone (the armv7 build) that
word is 0 whenever exactly a multiple of 4 GiB is left. The loop then stepped
by nothing: a zip download's resume hung, and a zip upload's resume called the
archive corrupt.

The cap is now taken first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
The receiving page names each offered item by its kind, with an icon for
each kind it has. An offer with any other kind (from a newer version that
added one, or a sender that left it out) stopped the whole app with an error
as soon as the friend pressed Open, before anything was accepted.

The receiver now leaves such items out of the offer it shows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
A received file's name was trimmed of dots at both ends, so .nomedia arrived
as nomedia, a .config folder as config, and ._eboot.bin as _eboot.bin: the
receive said done with a different folder from the one that was sent. Only a
dot or space at the end is dropped now (Windows does not keep those), and the
item's own folder still never starts with a dot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
After a pass deleted files, a folder of the drive on the console that held
nothing more went to the trash. Whether it held nothing was decided from its
first eight entries only, in the order the disk keeps them. A folder whose
first eight were a Mac's ._ files, .DS_Store or Thumbs.db went to the trash
with the drive's files still in it, and the next pass then deleted those
files on every device.

The folder is now read to its end, page by page, and kept when anything that
is not clutter is in it or a page cannot be read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
An upload is noted for the other devices as soon as it is asked for, so it
stays on their list after the window that started it closes. The note was
dropped whenever the job was not yet running, and an upload is not running
until it has planned (for a big list, a look at every file). A presence
update in that time, every ten seconds, forgot it for good.

A noted upload not yet started now stays for its planning time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
A sparse file (one with holes) is refused in a tar, with what to do instead.
That worked only for the old GNU form. The newer form, which macOS's tar
writes and tar -S --format=posix does too, is an ordinary file entry under the
name GNUSparseFile.0/<name> whose data begins with a map of the holes. It went
to the PS5 as that map and the pieces, under that name and much smaller than
the real file, and the upload said done.

The newer form is now recognised by its keys and refused the same way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
The app may show one file from a game folder, sce_sys/icon0.png, and only in
that letter case. A dump that names it SCE_SYS/ICON0.PNG is found on Windows
and macOS (their file systems ignore case), but the check compares the name as
it is on disk, so the cover was refused and Upload showed none. The rule now
accepts that one file name in any letter case, and still nothing else.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
Quit with an update set to install, open the app again within a few seconds,
and it said "Update didn't install" once although the install was still
working; on a Mac the old app then kept running from a bundle that was being
replaced under it.

The installer now keeps an "installing" file (its process ID and start time)
in the updates folder while it works and removes it when it ends, however it
ends. An app that starts and finds a live one shows "Finishing the update…",
waits for the installer (at most two and a half minutes) and then starts
again as the new version. If the installer is gone but its file is still
there, the file is cleared and the log says so, so a failure is reported with
its real reason. "Update didn't install" is shown only for an install that
ended without installing. A second install cannot start beside a running one.

Windows setup: the app writes the file for it (the setup cannot), and its
process ending is what ends it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
…rder

In a right-to-left sentence a symbol beside a Latin word takes the sentence's
direction, so "ShadowMount+" was drawn "+ShadowMount" in about 95 strings, and
the same happened to ".ffpkg" ("ffpkg."), "/data" ("data/"), "*.pkg", "v1.15"
written with a placeholder, and names like "7-Zip".

Fixed where the strings are loaded, not string by string: when the Arabic or
Persian locale is loaded, every piece of Latin text that holds a symbol is put
between the two invisible direction marks the app already uses for
interpolated values. Plain words and numbers are left alone. The console
page's strings get the same when they are generated.

A test goes through every string of both locales as the app shows it and
fails on any such piece outside the marks, so a string added later is covered
by itself.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
…bytes left

A package name that was too long was refused by the engine, in English, after
it was sent. The field limited the name to 127 characters, but the limit is in
bytes, and a package can have less room than that: a rename moves nothing in
the package, so the name has to fit in the old names' bytes plus the spare
whitespace of its param.json and manifest (PS5), or in the fixed room of its
param.sfo strings (PS4).

The engine now reports that room with the package's names (GET /api/pkg/name,
"room": for the default name alone and for every language), exact for plain
text. The field counts the name in bytes against it, shows how many bytes are
left while the name is changed, and when it does not fit says so in the app's
language and does not send it. A name with quotation marks, a backslash or &
can still be refused a few bytes earlier by the engine, which stays the judge.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
On a phone the actions were three stacked buttons, and with the activity pill
they covered about the bottom third of the screen; the "Name on the PS5"
card's hint and its "Name changed." line sat under them until scrolled.

On a phone the actions are now one row: the main action (Stream & install,
or Upload) and ⋯ for the rest (Upload & install, Add to queue, Convert first,
Change source). The page keeps room under its content for what really floats
there: the tab bar, and the activity pill while it shows (its measured
height). The sticky row stays above both, and what is scrolled into view (a
field, a line that appears) stops above the row. "Name changed." and the
too-long line bring themselves into view. Tablets and computers keep their
row of buttons.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
Held sideways (844x390, 915x412), the app's row of buttons beside the sidebar
(search, reload, update, bell, theme) sat over the Files header, and about two
file rows were left in view. On Files that row now gives way, as the app's top
bar already does on a phone held upright: the bell is in the Files header and
only the console tabs (with several consoles) stay. The list gains about a
row. An iPhone keeps the row, whose arrows are its only way back; tablets and
computers are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
The phone's ⋮ menu listed "What takes space here?" next to "What takes
space?", and "Snapshot this folder" next to "Snapshots", which read as
twins. They are now "What takes space in this folder?" and "What takes space
on this drive?", "Make a snapshot of this folder" and "See snapshots", and
the menu is in groups with a line between them: the page's actions, this
folder, a link, the drive. The same names are in the right-click menu and the
desktop's ⋯.

A Files menu opened near the screen's right edge took its width from where it
was put first and wrapped its items to two lines; it is now as wide as its
longest item and then placed on screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
A saved payload that is running and in the boot list has more buttons, and
its name and path got a narrower column than the other rows, so its path was
cut earlier. The rows now share one column for their actions, as wide as the
widest row's up to a limit, with the buttons wrapping inside it, so every
row's text column has the same width and the actions end at the same place.
A browser without subgrid (old WebKit) keeps the previous layout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
A saved payload's row on a phone had every button on show, wrapped to two or
three lines, so 20 payloads were a long scroll. A row is now the name and its
state (Running, boot #, an update) with one button for the main action
(Stop for one that runs, else Launch) and ⋯ for the rest: load at boot or
not, load earlier or later, the project page of a newer release, Launch, and
Delete. A row is now about 60px tall instead of about 170px. Tablets and
computers keep their buttons.

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

When adding an uploaded game folder to the home screen was refused because
its title ID belongs to one of the PS5's own apps, the warning still ended
with "You can still do it from the Library". The Library asks the same
helper, which refuses that title ID whoever asks, so that was not true. The
same goes for a title ID that is not a valid one and for a game the console
installed itself (#884).

For those refusals the warning is now just the reason (for an installed game:
where it is installed). Other failures keep pointing to the Library. A single
upload's warning, which was English only, is now translated like the queue's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
The website's screenshots are taken before a release bumps the version, so
the sidebar showed the version before. They now show the repo's VERSION plus
one patch level (12.6.31 gives v12.6.32), or the version in SHOTS_VERSION
(SHOTS_VERSION=12.7.0 for a minor release). The made-up console and devices
in the pictures report the same version. The screenshots themselves are not
retaken here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
They carry the app's shared stylesheet, which the phone layout changes above
touched (the room kept for the tab bar and activity pill, the sideways Files
row). Rebuilt with scripts/check-embedded-pages.mjs; nothing else changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
Organize renamed PS4 packages that were still being copied or downloaded, and
Check called them fine: both looked for a warning the package reader never
gave. The reader now says how long a package has to be by its own header (PS4:
the package size, image end and body end; PS5: the end of its container, and of
the image for a debug package). A file shorter than that is left alone by
Organize, with the reason shown, and Check reports it as cut short.

Organize also takes a second look at every file it would move, a moment after
the first: one whose size or time changed is still being written and keeps its
name.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
Only the first file of a split package was read, so a set with a damaged or
missing later part was reported fine. The parts are now checked as the one
package they make: each is read in order, the package's declared length is held
against all of them together, and a part that is gone (from disk, or from the
run of numbers in the names) is reported by name.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
phantomptr and others added 25 commits November 26, 2026 01:59
A linked phone's pad states and touchpad reports went to the console and the
computer's page as fast as the phone sent them. A phone (or anything holding
the QR code) flooding its socket made the engine do the work of every one,
and could fill the page's channel. The controller report for a bug report
also kept one entry for every phone connection of a session, and each
reconnect is a new one.

A phone's input now goes at 500 a second at most for each kind, with bursts
of 64: a pad at 250 a second and its touchpad pass untouched. More is folded
into the latest, which goes as soon as there is room, so a release is never
lost and the phone is never cut off. The report keeps 16 controllers a
session; the one gone the longest makes room.

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

The engine answers an internet guest's ping with a pong at once, and that
pong went onto the guest's outgoing queue past its limit. A guest that kept
pinging without reading what it was sent grew that queue, and the engine's
memory, for as long as it liked.

One pong waits at most now: a newer ping's takes its place.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
With Detailed logs on, a guest's first message, and how it was let in or
refused, put their address and the name they gave in the log, and the ask,
the player they got and a linked phone were logged by name too. A bug report
with its logs is posted in public.

These lines now say a number instead: the guest socket's, the ask's, the
guest's or the phone's, and whether it came over the home network or the
internet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
…ld link ends late

When the friend's first connection went quiet and they connected again with their token, the
old connection's session still ran on the sending side. When it finally timed out or failed, it
reported the request as gone, which turned the resumed transfer back from sending to allowed,
and the new connection then told the friend the share was cancelled.

Each request now counts its connections: a resume starts a new session, and what an older
session reports (gone, progress, sending, done) is ignored. The old session also stops serving
once a newer one took over, without telling anyone the share was cancelled.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
…e app's own shape

A received item's controls.json and cheats-on.json were used as they came: a keyboard map or a
keyboard-and-mouse mode of any shape could be kept on this device, and a cheat list that was not
a list of names stopped the page.

Both are now checked against what the Share panel writes: the controls' Title ID, game controls,
keyboard-and-mouse mode and every key of the keyboard map, and the cheats as a list of names.
What is not that shape is left out, and the page says part of what was sent can't be used.

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

Use this save, restoring a backup and using a shared save unpacked the zip with no limit: a
small zip can say, or hold, far more than any save, and unpacking it filled the disk.

A save's zip now unpacks to at most 32 GiB in all (the largest shared-save file the engine takes)
and 16 GiB for one file, with at most 100 000 entries, all far above any save a PS5 keeps. What
the zip says of its sizes is checked before anything is written, and the bytes really unpacked
are counted too, since a zip can say less than it holds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
The rule that Share only shares homebrew was applied to the app item alone. A retail game's
folder, package or mount image could be shared as screenshots, a save or a cheat file instead,
including one renamed to look like a picture.

Every item other than the app is now looked at too: a package, a mount image or an app folder
among its files, found by its name or its first bytes, is judged as the app would be (homebrew
goes, retail or unreadable is refused), and an archive there is refused since it can't be
checked. A save is a zip: a package or a program in it is refused, while the save's own
sce_sys/param.sfo is fine.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
A data channel takes a text message of 256 KiB at most, and text was sent whole. The listing
of an app with a few thousand files is longer: the channel refused it, the whole queue behind it
was dropped unsaid, and the friend waited for files that never came.

A receiver now says in its hello that it reads parts, and a long message goes to it as part
messages put back together on arrival. An older receiver still gets the message whole where the
connection takes it (the home network, or under the limit); otherwise it is told plainly that
the share can't be sent to it, rather than left waiting. The data channel itself now ends the
connection, saying why, on a text over its limit instead of dropping it silently.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
…ed before it is read

The size and entry caps on "Use this save" were checked after the zip crate had read the whole
list of files (the central directory) into memory, and the crate takes the size the zip's end
record states. A zip claiming a huge list could still use a lot of memory before being refused.
The end records in the zip's tail (zip64 too) are now checked first: more entries than a save has,
or a list longer than about 64 MiB, is refused without reading it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
…existing folder, not landed wrong

A download into a folder that already exists writes each large file as
<name>.ava-part beside its place and renames it at the end. A console
folder holding both X and X.ava-part made that one path two files at
once, so X ended with the other file's bytes or X.ava-part was renamed
away as X. The download now refuses such a tree before writing anything
when it would merge (a new folder is staged whole and is fine), and the
clean-up after a failed download no longer deletes a real X.ava-part of
the tree as if it were X's part file.

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

When a folder download into an existing folder failed for good, the
clean-up removed the .ava-part of every file named in the journal's
saved manifest. That manifest is saved before the download checks it,
so a refused one with names like ..\x, C:x or C:\x was joined onto the
folder as it was, and on Windows that named files elsewhere on the disk.
The clean-up now takes only paths that pass the same checks the writer
makes before it writes anything (one shared function), in their kept
form when names are escaped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
…puter's memory

The tar reader holds a member's GNU long name and PAX header whole in
memory, as long as the member's own header says they are. A compressed
tar of a few KiB could claim gigabytes of them, and listing it before an
upload filled the computer's memory. Each step of the tar reader (in the
listing and in the send) may now read at most 16 MiB of headers besides
the data it skips past; more is refused as a damaged archive.

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

Confirming a typed pairing code waited for the console's answer with no
time limit while holding the per-console lock that every pairing call
and every new connection to that console waits for. A console that kept
the connection up but never answered left the pairing dialog and every
transfer to it stuck. The confirm now gives up after 30 seconds, closes
that handshake (a retry gets a new code) and frees the lock.

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

A folder download refuses names that differ only in case where the disk
keeps one file for both. Whether the disk does was asked by looking up
the nearest existing folder's name in its parent, which at a disk's root
(/Volumes/USB, D:\) is another disk or none: a case-respecting USB disk
under the Mac's folding /Volumes refused good downloads, and on Windows a
new folder at a drive's root was never checked. The check now asks inside
the folder the files land in (one of its names in the other case, or a
probe file of its own, removed at once).

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

When a delete or chmod on the console partly failed, the status line
named the first path that failed, cut to its room by bytes: from the end
for a long path and from the start for one longer than its buffer. A cut
could split a character of a Japanese or accented name, leaving text
that is not UTF-8 on the line. Both cuts now land on a character
boundary (a small shared header), with a host self-test in
make test-payload.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
With a console linked to two others and sorting last, both links kept one
record of what they agreed on, in that console's folder, under one id. The
second link then started from what the first had agreed on: a file the
first link had just brought in looked deleted on the third console, so it
went to the trash, and the next pass of the first link deleted it on its
other end too. That repeated every round.

Each link now has an id that names both its consoles, and its own record
file. A console left by an older version holds one shared record: a link
reads it once, keeps only what surely holds for it (a file both consoles
have, the first one exactly as recorded), and starts the rest as never
agreed on, so files on one side are copied over and files that differ are
compared. Nothing goes to the trash on the way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
While a folder's own console is away it syncs through a linked console,
starting from what it last agreed with its own. A file of another size
there was taken as changed there and copied over this folder's file, with
nothing kept. But it may be the older one: the home console had an edit,
this folder got it, and the home console went away before the linked
console did. The older copy then also went to the home console when it was
back, and the edit was gone everywhere.

On that first pass such a file is now a conflict: this folder's copy is
kept beside the linked console's, and both reach every device.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
When the helper could not read its drive list (a read error, no memory, a
damaged file), it answered as for a console that never had a drive. Every
engine then forgot every folder it kept on that console, and the next write,
from any device, replaced the list with what that device knew: the drives
of everyone else were gone from the console.

The helper now answers doc_unreadable for a list it has but cannot read, and
never writes over one. The engine keeps every folder as it is, writes
nothing, and says the console could not read its drive list (not that it is
away). An older engine takes the answer as a console that does not answer:
it keeps its folders too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
The helper checked a document's JSON loosely: a number like 01, a bad
escape, half a surrogate pair or bytes that are not UTF-8 went in. Every
engine then failed to read the console's whole answer, on every read, so
Mesh Drive treated the console as gone and nothing could write the list
right again.

Such a document is now refused with invalid_json, and what was stored
stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
The console keeps a device name in 63 bytes. A longer one (a long computer
name, or one in a script that takes several bytes a letter) did not fit
the helper's buffer and was dropped without a word: the console went on
showing the old name, while this app wrote the new one into its drives.

The helper now reads the whole name and cuts it to 63 bytes on a character
boundary, and the engine cuts a name the same way before it sends it, so
both sides show the same name. A nickname set from Devices is cut alike.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
Leaving a drive, or deleting it, wrote to the console first and stopped when
the console did not answer. A folder kept on a console that was sold, broken
or gone for good could never be removed, and went on showing as away.

When the console does not answer, this device's folder now stops syncing
anyway, its files staying where they are, and the app says the console is
told once it is back; when it is, the engine takes the folder (or the
drive) out of its list. Your folders, shown while a console is away, now
has a Leave button. Another device's folder still needs its console.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
Regenerated after the phone-link kick change (a kicked phone's QR key is rotated).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
…fter a commit error, memory bounds, blocked devices, part-file names)

Points the library at phantomptr/ava1 main after PR #22. The C half reaches
the helper now; the Rust half reaches the engine with the next ava1 crate.

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
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
phantomptr and others added 2 commits November 26, 2026 04:47
… those scripts run

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GtiJiJdHq1hekoZ6vizvVT
@phantomptr
phantomptr merged commit bd73475 into main Nov 26, 2026
82 of 84 checks passed
@phantomptr
phantomptr deleted the release-12.6.32 branch November 26, 2026 13:18
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.

Storage free-space mismatch: stale Files UI (98.1 GiB), live API (163.42 GiB), Sony (71.35 GB)

2 participants