* feat(desktop): restart a crashed engine, ask before quitting running work, keep the batch queue across restarts
- A local engine that crashed after it had started restarts on its own
(1, 3, 6, 12, 30 s); a sixth crash in ten minutes, or a crash before it
ever started, stays on the recovery screen.
- A quit the user starts asks first while the engine reports running work;
confirmed update installs, OS shutdown and relaunches do not ask.
- Unfinished batch jobs keep a record beside their upload and are queued
again, in order, on the next backend start.
- Interrupted audiobook/story renders are announced once after launch with
a Resume action.
* changelog: add fragment for #4623
* test(dub): wait for the voice search to take focus
* fix(desktop): close the gaps review found in job resume and the quit prompt
- Quitting during a generation, clone, design or transcription now asks
first: the engine reports open requests that do work, not just jobs.
- Restart on CPU withdraws a pending automatic restart before it saves the
device choice, so the engine cannot start on the old device.
- Batch queue records hold only the upload's name, so they carry no home
path and still restore after the data folder moves.
- A save racing a cancel, a job skipped as cancelled, or a record that
cannot be deleted no longer brings finished or cancelled work back.
- One malformed record is dropped on its own instead of stopping every
saved job from restoring.
- A queued or restored job whose speech model was removed fails with the
enqueue message instead of downloading it.
- The interrupted-render notice retries a failed check a few times.
* fix(audiocpp): name the missing system library when the self-check fails
* docs(changelog): add fragment
* docs(changelog): say the error names the missing library version
* chore: restore the gallery submodule pin
* feat(longform): save a diagnostic bundle from a stalled or failed render
* docs(changelog): add fragment
* fix(longform): offer the diagnostic bundle only when the backend is local
* fix(dev): spawn the real Bun so npm-installed Bun works on Windows
bunCommand() prefers the running Bun, then npm_execpath, then the executable behind a Windows npm shim on PATH. A missing Bun gives an install hint from every script that spawns it, and a test guards against bare bun/bunx spawns. Builds on the report and first fix in #4525.
* Add changelog fragment for the Bun spawn fix
* Report which Sortformer piece is missing and document the macOS setup
* Add changelog fragment for #4599
* Update diarisation status tests for the missing field and cover the model override in the docs
* Re-run CI on the merged branch
* fix(ios): restart model transfers that stall at 0 B/s (#4587)
Background URLSession retries timed-out tasks silently until the resource
timeout (7 days here) and treats tasks started while the app is in the
background as discretionary. The parallel scheduler only creates the tail
range after the first two 64 MiB ranges finish, which commonly happens while
the app is backgrounded, so Kitten's last range could wait indefinitely at
80%. The transport then reattached that same OS task by key on every retry,
pause/resume and relaunch, so the stall repeated every time.
ModelStore now runs each range wait under a stall watchdog: when the
transport reports no new byte for its idle interval (120 s for the background
transport) during awake time, the wait is abandoned as a retryable network
failure and the next source is tried. The background transport cancels the
abandoned task with resume data instead of suspending it, so the retry starts
a fresh task from the received bytes. Android already fails a stalled read via
OkHttp's 120 s read timeout and moves to the next source.
* Add iOS and Android to the issue forms
Phone reports had to pick a desktop OS and install method; the forms now
offer iOS, Android, the phone app install and on-device compute.
* Name the changelog fragment after the pull request
* fix(diagnostics): do not report Windows shutdown or installer exits as crashes
Windows may end the process as soon as the session-end handler returns, and
installers force-kill the app shortly after asking it to close, so the async
orderly quit often never retired the session marker and the next launch
reported an unclean_exit. Retire this process's own marker synchronously on
session-end and at the start of an orderly quit, and keep liveness refreshes
from restoring it. A process that dies any other way is still reported.
* Name the changelog fragment after the pull request
* fix(setup): keep a cancelled runtime repair cancelled and log why a venv is unusable
Cancel on the setup progress screen calls restart(). When that install was
the automatic repair of an existing runtime (or a first run whose install
marker now counts as an earlier install), start() either launched the same
install again or, once a repair had been attempted this launch, reported
"automatic repair did not finish". The renderer classifies that message as
BROKEN_VENV, so a user's Cancel was reported as a broken environment within
10 s of the restart.
- runtime-repair: a cancelled setup is left to the setup screen (Resume),
never restarted on the user's behalf or reported as a failed repair.
- backend: restart() during an install marks it cancelled; an explicit
setup run clears the mark.
- runtime-readiness: report why a project is not usable (missing
interpreter, missing pyvenv.cfg, unfinished install, other version, or the
failing import); the supervisor logs it before repairing, so a repair
that does not help still says why.
* Name the changelog fragment after the pull request
* fix(diagnostics): keep a pending marker write from outliving session end
A marker write that passed the end check before endSession() could still
rename a fresh active marker into place, and the later async removal may
never run once Windows ends the process. Check right before the rename and
remove synchronously as it completes. Document that close to tray followed
by an installer kill, and a windowless app at Windows shutdown, are still
reported, and accept CRLF checkouts in the source-order test.
* fix(setup): address review on the broken-venv recovery
- torch-choice wiring test accepts the readiness reason callback, still
requiring rememberTorchVariant() right after the ready branch records the
project; the callback is now a named noteReason(project).
- The "not usable" reason is written to the setup log directly (pushLog only
feeds it while installing) and stays in the log tail when the automatic
repair resets it.
- The setup failure handler reads the install marker before writing any
state and re-checks the generation, so a Cancel during that await keeps
its Resume screen.
- Only ENOENT/ENOTDIR count as a missing interpreter or pyvenv.cfg; other
stat errors (EACCES, EPERM, EIO) are named with their code.
* fix(ios): do not count connectivity waits as stalled model transfers
The stall watchdog treated a background task waiting for Wi-Fi (or for any
connection) as stalled, abandoned it and spent all five retry rounds. The
resulting timeout paused the download with an error, so restoring Wi-Fi no
longer resumed it. The watchdog now restarts its interval whenever the
connection the policy requires is unavailable, and counts only steps that
were connected from start to end. The app passes its connectivity state.
* fix(diagnostics): publish the session marker through renameWithRetry
The pending-write guard wrapped node:fs rename directly, which the
rename-retry guard test forbids (Windows antivirus retries). Check
publishability before the plain renameWithRetry and again as it settles;
only microtasks run in between, so an ended session still never keeps
the marker.
* fix(setup): show the unusable-runtime reason only for the runtime it describes
The retained reason now carries its project; setup for a moved runtime
location drops it instead of showing the old location's diagnosis.
* fix(setup): recheck the start generation and keep readiness reasons honest
- start(): read the install, Windows ROCm and interrupted state first, then
return if a restart() or shutdown() overtook this start, before writing
any status or starting a repair.
- runtime-readiness: name a build mismatch only when the ready marker
proves it; keep this decision's Windows ROCm verification failure as the
reason; otherwise use a neutral reason. No extra native probe runs.
* fix(mobile): demote a stalled model source and qualify resumed bytes
A source that stalled or dropped the connection kept its earlier measured
rate, so when both sources had rates the next range or attempt could wait a
full stall interval on it again. iOS and Android now set that source's rate to
zero on a network failure (not on HTTP retry statuses) and order demoted
sources last until they deliver again.
The docs, contract and changelog no longer claim received bytes are always
kept: completed ranges are, while an abandoned range continues only from
resume data the system provides.
* fix(mobile): end a source's demotion when it delivers again
A demoted source that answered too quickly to sample a rate stayed at
rate 0 and kept going last for later files. A validated answer now clears
the demotion on iOS and Android, with a test on each.
* test(ios): widen the stall window in the demoted-source test
A slow CI runner pushed the mirror's 200 ms answer past the 0.3 s stall
window, scrambling the expected host order.
* test(mobile): keep the demotion-recovery order fixed on slow runners
The recovered source could be sampled as slower than the mirror on a slow
runner; give the mirror a clearly slower measured rate on iOS and Android.
The segmented downloader's address-pinned transport refused the Hub's own
download URL when the local resolver answered with non-public addresses (a
VPN or proxy app in fake-IP mode answers 198.18.x.x) or did not finish
(resolver only works through the proxy, timeouts). Those UnsafeURLErrors were
terminal, so the install stopped even though the Hub metadata requests had
just succeeded through the same network.
Cancelling a sibling range's wire lookup after one range failed also marked
the policy scope as interrupted, turning an ordinary range failure into a
terminal "destination validation was interrupted" refusal.
Both reached opt-in failure reports as ValueError (UnsafeURLError subclasses
it). Now the wire lookup of the starting origin, or any lookup that does not
complete, raises AcceleratorUnavailable and the install falls back to
snapshot_download at once with the reason logged; wire lookups no longer mark
the interruption scope. A redirect target that resolves privately and an
interrupted redirect check still stop the install.
Releasing the warm transcription ASR only dropped the instance. MLX
Whisper keeps its weights in a library-level singleton, MLX keeps a buffer
cache, and the wav2vec2 aligners sit in a module-level cache no engine's
unload reached, so after transcription and Unload all the backend kept
~18 GB of GPU memory while listing no loaded model.
- The warm release now frees the shared aligners and, unless dictation
shares it, the MLX Whisper singleton; engine unloads release aligners.
- Resident aligners are listed as asr-aligner, unloadable, and included
in Unload all.
- free_vram clears MLX's buffer cache when MLX is loaded.
Fixes#4573
Drop the admin session's store id from the whoami response: it is the
hash revocation is keyed on and no client needs it. Document and test that
a remote caller with no credential gets 401 from the credential gate when
an API key or share PIN is configured. Regenerate the mobile OpenAPI
contract and route inventory, and drop the BOM from the changelog fragment.
The only way to change a share PIN was to disable sharing and enable it
again: that closes the socket, drops every connected guest and can move the
port, because enable() looks for a free one.
rotate_pin() issues a new PIN on the running listener under the same lifecycle
lock, keeps the port and the address list, republishes the app state, and
resets the PIN guard so a guest locked out under the old PIN starts clean. The
old PIN (and the ov_pin cookie carrying it) fails the next request, which
bounces that guest to the PIN form.
Exposed as POST /system/network/rotate-pin next to enable/disable, so it
inherits the same loopback-only control surface and returns 409 while sharing
is off. docs/sharing.md now says the PIN can be rotated while sharing stays on.
Tests: tests/test_network_share_rotate.py drives the real enable/disable
lifecycle against a fake uvicorn server and asserts the same task and server
object survive rotation, the port and addresses are unchanged, the state is
republished, the guard is reset, and the route answers the new PIN or 409.
The capability document advertises the auth routes, and the 403 text already
differs per tier, but a client could only discover its own tier by provoking
an error on a real route. whoami answers the question directly for every
tier, anonymous included, with kind, capabilities, transport and the admin
session's opaque credential id -- never a token, a PIN or a key.
The response runs through the existing /api/auth cache-control rule
(no-store), and the route joins the frozen dependency-free GET inventory with
its reason, so the authz census keeps its guarantee that a new open GET is a
reviewed decision.
Tests: loopback (native capabilities), cookie session (admin_session +
credential_id, no token in the body), API key, and an anonymous remote caller
with no key configured.
Recognise require_admin_diagnostics as an authorization gate in the
route-auth dump, expose the request ID through CORS_EXPOSED_HEADERS,
and count the new router in docs/STRUCTURE.md.
NetworkAccessMiddleware wrote the share PIN into ov_pin as
\ov_pin=<pin>; Path=/; SameSite=Lax\: readable by any script in the share
origin, sendable cross-site, and not Secure behind a TLS proxy. The PIN is a
credential for the whole sharing session, so it now gets what ov_session
already had: HttpOnly, SameSite=Strict, and Secure when effective_scheme()
reports an https client hop.
A matching value no longer skips the reissue on an https hop. A guest who
started over http keeps that cookie when the same host is later reached over
TLS, and without the reissue it never gains Secure and stays sendable over
plain http.
docs/api-auth.md documents the flags. tests/test_network_middleware.py pins
HttpOnly/Strict over http, Secure behind X-Forwarded-Proto: https, and the
http-to-https upgrade for an already-present cookie.
Upgrade concurrently and Playwright with the Bun lockfile and Nix dependency hash. Compare packaged diagnostics file IDs at full precision on Windows and cover it with a regression.
Polish the library, transcription and workflow workspaces. Keep sidebar focus visible, fit wide workflows when the canvas is measurable, and cover the updated behavior in Electron smokes.