Skip to content

feat(console): keep profile pictures, land the 10-30 sweep - #314

Merged
enricobuehler merged 10 commits into
mainfrom
fix/sweep-1030
Oct 30, 2026
Merged

enricobuehler merged 10 commits into
mainfrom
fix/sweep-1030

Conversation

@enricobuehler

@enricobuehler enricobuehler commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Sweep of b81002f ahead of 0.27.0, plus a disk cache for profile pictures. One commit per fix, so any of them can be reverted alone.

Profile pictures

  • A picture is served from this TV first, so a face shows at once and survives the host being off.
  • Keyed by host pin, not addr:port: the ask has no stream port, and two systems behind one address have their own pictures at the same URLs.
  • Stored as received. The host allows PNG, JPEG and WebP up to 1 MiB, and shrink_cover's JPEG would flatten transparency.
  • A ?v= URL ends at a hit. A bare URL is read again, because no released host sends ?v= yet and a trusted hit would keep a replaced picture for good.
  • If the host's new bytes arrive while the kept copy is still decoding, the kit drops them. The old face stays for that run and the next launch is right.

Fixes

  • Motors stop when coils are claimed. A wired DualSense joining a running haptics title buzzed until the stream ended.
  • Rescan browses again and retries a dead daemon. It only probed saved hosts, so a fresh TV did nothing.
  • NDL quits after a failed connect, so a retry doesn't load on a warm NDL. A failed mid-session reload already ships this order.
  • The remote gate keeps a release across arming and forgets held keys on focus loss.
  • A stick at (-32768, -32768) no longer overflows i32.
  • Motion is flushed after a read that fills the buffer.
  • A failed log reopen no longer rotates the previous run's log away.
  • mdns-sd 0.21.6: unresolved hosts keep being queried, an unknown question no longer drops a message, TTLs count across sleep, a failed multicast join retries.
  • Pin bd072336f takes unom/punktfunk#2224: the host card stops offering a shared clipboard this client never had. Nothing else client-side moved past the old pin.

Not changed, on purpose

  • POC mirror drift after a refused feed: rare, and this code is live and validated on beta.
  • Speed test can't be cancelled, HDR calibration ignores a new pad, spawn failures abort (out of memory only).

Verified
task docker:test 112 passed, task docker:lint clean. A deliberate dead function failed the lint gate, so the pass isn't a stale cache.

On a TV, still owed
Wired DualSense joining a haptics title, Rescan with no saved host, a retry after a failed load, a picture with the host off.

Every launch fetched every picture, so a face came up as initials first
and a host that was off stayed initials.

The copy is by pin, not address: an ask carries no stream port, and two
systems booted behind one address have their own pictures at the same
URLs. It stays verbatim so a transparent picture keeps its alpha.

A bare URL is read again after the hit: released hosts send no `?v=`, so
a replaced picture would otherwise stay old on this TV for good.
A level the envelope applied holds until changed, and only the envelope
sends its stop. A claim silenced it first, and wire rumble is skipped
while coil frames arrive, so a wired DualSense buzzed until the stream
ended. The claim races a coil frame whenever the pad joins a running
title.

Re-bringing a pad up drops its envelope the same way, so it stops the
motors itself.
The tile only probed saved hosts. With none saved it did nothing at all
while its toast said it was scanning, and a host whose mDNS answer was
lost stayed away for up to two minutes.

A daemon that failed to start gets another try here too: nothing else
retries it while the menu is up.
A load that failed left NDL initialised with no session to quit it, so
the retry started on a warm NDL, which is what breaks a load. Only a
thread still inside NDL may skip this, and its guard quits later.
A key held while the first remote node was adopted lost its release, so
Back stayed down on the host and swallowed the next press. Focus loss
left the other kind of error: SDL's releases name no key, so a key stayed
marked as held and let one pad echo through.
Both axes at -32768 overflow i32, and the wrapped sum read as a centred
stick for that sample.
A burst of exactly 64 events ended on EAGAIN and returned before the
flush, so the summed motion waited for the device's next event.
With the count left high, every later flush rotated again and pushed the
previous run's log out. A full disk is when that log is wanted most.
Picks up what a TV hits: unresolved hosts keep being queried, one unknown
question no longer drops a whole message, record TTLs count across sleep,
and a failed multicast join is retried once the network is up.
Takes #2224: the host card stops offering a shared clipboard this client
never had. It's the only client change past the old pin.
@enricobuehler
enricobuehler merged commit 1ddc411 into main Oct 30, 2026
2 checks passed
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