* 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.
* Polish desktop setup, settings and studio workspaces
* Add desktop refresh changelog entry
* Check home creation destinations in the desktop guard
* Align desktop workflow checks with the redesigned controls and restore paired consent choices
* Stabilize native window and titlebar checks during navigation
* Restore a continuous workspace background across desktop chrome
* Verify workspace and settings panel corners in the theme smoke
* Give Support a full-width donation panel and stack sponsor, Pro and contact sections
* Give sponsor marks room and simplify Support actions
* Organize Support contact actions in a responsive grid
* Fix desktop take navigation, drawer visibility and shortcut capture
* Recover desktop setup choices when local settings cannot be read or saved
* Welcome users with the studio cat and credit the open-source community
* Compare exact filesystem identities before claiming an existing terminal command
* Check visible setup controls and model headings and isolate Home credits
* fix(setup): reach models and GitHub-hosted wheels where Hugging Face or GitHub is blocked; recover from a failed Windows clone
* docs(changelog): #4504 fragments
* fix(network): apply a new automatic Hub pick to this session's loads; honest restart prompt; inherited Python mirror selects the GitHub proxy
* docs(models): the automatic Hub pick reaches loads in the same session
* test: restore the Hub endpoint after every test now that main enables the process sync
* fix(setup): name the host a failed runtime download could not reach
* fix(network): restore implicit tokens back on the official endpoint; name only the failed host; reset Hub constants first imported in a test
* fix(network): never re-enable implicit tokens in a process that used the mirror
* fix(omnivoice): check the tokenizer licence against the installed revision
* docs(changelog): record the OmniVoice tokenizer revision fix
---------
Co-authored-by: debpalash <4178343+debpalash@users.noreply.github.com>
* fix(windows): read model weights with pread instead of a memory map
transformers opens CPU checkpoint reads with safe_open(backend="mmap"), and
the first read through that copy-on-write mapping can fault below Python on
Windows (0xC0000005 in torch/storage.py, #4142). On Windows those reads now
use safetensors' pread backend: the same bytes, read with ordinary file
reads. Installed in backend/main.py after .env loads and in
OmniVoice.from_pretrained for processes that never import it; rebinds
modules that imported safe_open early; OMNIVOICE_SAFETENSORS_PREAD=0 opts
out; an older safetensors without pread keeps its default.
Approach credited to #4464.
* chore(changelog): name the pread fragment after #4500
* fix(windows): pread also for device=None; fall back only when pread is unsupported, without logging the path
* fix(windows): fall back cleanly when an explicit mmap read meets an old safetensors
* fix(xpu): route integrated Intel Arc unified memory to TTS release
Detect a single integrated Intel Arc XPU by its tiny local_mem_size and
treat it as unified memory, so offload_tts_for_asr() releases the TTS model
via _offload_unified_memory() instead of relocating it CPU<->XPU with
_relocate_shared_model(). Discrete Arc, CUDA, NPU, multi-XPU and unreadable
property cases keep the dedicated path.
The forced clone-reference release is gated on that same detection, so
non-integrated unified hosts (Apple Silicon, CPU-only) keep the old
headroom window; only the integrated Intel Arc case becomes unconditional.
Also wrap the clone-reference auto-transcribe path with
offload_tts_for_asr()/restore_tts_after_asr() so a clone upload no longer
cold-loads WhisperX beside a resident XPU TTS model.
Tests: 20 targeted tests in host; 722 passed and 1 unrelated failure in
the XPU container's full backend suite (the failure is a repo-wide
torch.load audit tripped by untracked .scratch/_appimage trees). Live
two-run verification: POST /profiles clone upload returned 200 in 33 s
twice, logged "Unified memory tight ... releasing the TTS model", host
stayed up.
* docs: record integrated Intel Arc XPU unified-memory fix
* fix(xpu): detect integrated Arc by is_integrated_gpu, serialize unified release and clone ASR restore
* fix(xpu): hold placement through clone reference ASR, skip it when release is refused, document is_integrated_gpu minimum
* fix(xpu): reference-count the clone reference ASR placement hold
* fix(xpu): wait for in-flight TTS load/unload before reference ASR, drop hold on failed release
* test(xpu): release every reference-ASR hold a test takes, and fail any test that leaks one
A forced-release test never restored, so its hold kept exclusive placement and
every later TTS load in the session waited, stalling the Windows suite until
its timeout. The hold reset now runs for every test in the file, and a
backend/tests guard fails and clears any leaked hold, placement or in-flight
TTS op.
---------
Co-authored-by: gottabstrong <312960339+gottabstrong@users.noreply.github.com>
Co-authored-by: debpalash <4178343+debpalash@users.noreply.github.com>
* fix(moss): load MOSS-TTS-Nano whichever container transformers combines ignore patterns with (#4484)
The 5.9 version gate misjudged some transformers builds, leaving a set on the left of a list concatenation. Try the model's own lists first and retry with sets only on TypeError.
* fix(voices): keep Voice Design recipe on save and store Style text as typed (#4474)
* fix(setup): recover from uv's broken Python minor-version link on Windows (#4487)
* fix(setup): fail a stalled wheel prefetch and fall back to uv (#4476)
* fix(ui): use system fonts on the blank-window fallback page (#4478)
* fix(electron): log every silent early exit before userData exists (#4477)
* perf(history): clip long take scripts in the history list, fetch the full take on demand (#4483)
* test(routes): the single-take history read shares the list's access tier
* docs(changelog): fragments for the issue batch
* docs(changelog): reference the batch PR in its fragments
* docs(cosyvoice-gguf): Linux and Docker build steps, offline ONNX Runtime (#4485)
* docs(windows): keep the uv link entry in the troubleshooting list
* fix: Windows-safe startup log and uv link recovery, regenerate CLI contract
* fix(electron): check and write the startup log through one descriptor
* fix(electron): truncate an oversized startup log on Windows too
* fix(electron): keep the startup log in a per-user folder and open it without following links
* test(profiles): guard the 400-on-every-use class at render time, where it is enforced
* fix(history): keep list_history callable directly with its default limit
* fix: address review findings on the issue batch
- canary returns the recovered interpreter so the sync uses it (#4487)
- startup log redacts credentials and home paths; dialog names it only after a write (#4477)
- stalled size probes are aborted at their deadline (#4476)
- reuse of a clipped take reports a failed full-script load with Retry and yields to newer choices (#4483)
- edited design Style becomes the recipe so free-form engines receive it (#4474)
- CosyVoice GGUF docs: CMake 3.28, archive from the error, build step, Docker ORT libs (#4485)
* fix(omnivoice): gate the fallback Higgs tokenizer only when it would load (#4329)
* fix(omnivoice): guard the tokenizer fallback at the loader; break gate import cycle
* docs: count the omnivoice_checkpoint service module
* fix(omnivoice): fail closed on the tokenizer fallback; leaf checkpoint resolver
* fix(omnivoice): let the subprocess sidecar use the accepted tokenizer fallback
* fix(omnivoice): drop an inherited tokenizer-acceptance signal from the sidecar env
* fix(exports): sanitize superscript Windows device names
* docs(changelog): record portable export filename fix
* fix(licenses): reuse the shared Windows device-name list for registry paths
model_licenses.safe_file kept its own COM1-9/LPT1-9 set, so superscript device names still passed there. It now uses core.path_security._WINDOWS_RESERVED_NAMES.
---------
Co-authored-by: Palash Debnath <4178343+debpalash@users.noreply.github.com>
Prepare the owner-requested beta.5 release with synchronized versions, cumulative release notes, verified reporter credits and secrets-only diagnostics build credentials. Preserve the approved endpoint, consent defaults and tagged beta.4 history. Full current-head CI, source reviews and all five artifact-only installer builds passed.
Verify Windows ROCm interpreter ABI and architecture against the pinned recipe without changing existing dependency hashes. Preserve bounded decimal and Windows-status diagnostics for native probe failures without guessing their cause or triggering automatic package repair.
Validated with full required CI and platform smoke checks, 5,225 local Electron tests, TypeScript/build/packaging checks, and focused ROCm/privacy guards. Contributor credit is preserved in the changelog; the underlying native crash report remains open.
Reflect completed GPU self-test failures in readiness and routing only for participating loaders. Recheck WhisperX health at model load, preserve independent runtimes and architecture-specific recovery guidance, and document the separate Windows HIP probe.
Cover late verdicts, actual ASR/alignment device selection, loader isolation and forced-device behavior with offline regressions. The original reported HIPBLAS failure remains open in #4159.
Skip CUDA Torch and NVIDIA payloads for Linux ROCm setup. Clean leftover NVIDIA runtime distributions when CPU or ROCm setup resumes after an interrupted switch, while preserving shared dependencies, installed models and verified overlay behavior.
Preserve the unresolved VoxCPM2 complaint, distinguish the answered licensing question from runtime repairs, and record shipped proxy evidence without inventing a cause for the historical timeout.
Prepare the validated beta.3 version and notes from 31 merged changes; keep unresolved reports and historical CLA provenance follow-up explicit. Tagging and publication remain gated on exact-commit release validation.
Record #4142 as an unresolved Windows model-loading access violation, update report counts, and distinguish merged download repairs from tagged-release availability. Documentation-only; 49 targeted checks pass. The runtime crash report remains open.
Allow Android model-download jobs on the app VPN route while retaining Wi-Fi-only/cellular consent and saved partial ranges. Observe the default route, replace stale scheduler policies safely, and preserve paused intents. Include SDK VPN, queue restoration and existing transfer-policy controls.
Require explicit administrator credentials for remote diagnostic reads and use an asynchronous guard for SSE logs. Loopback remains supported. Full CI, security checks, signed contributor identity and reviewed findings are green.
Refresh installation report mappings, stable-release ancestry and scoped fix status. Distinguish released beta fixes, pending repairs and unresolved signing, hardware and diagnostic evidence; retain the standard ARM64 image gap.
Scale whole-file transcription deadlines with recording duration across uploads, streaming dubbing, child engines and MCP waits. Keep queueing and setup inside the same deadline, and preserve physical worker and upload ownership when work is cancelled.
Cover long recordings, child-process ceilings, fallback deadlines, finite settings, queued metadata, late model loading and cancellation cleanup with regression tests. Update engine and troubleshooting documentation.
Reuse verified cached wheels before calculating remaining transfer space, preserving the installation reserve. Handle response resets after wheel-size headers without an uncaught error or publishing interrupted downloads.
Cover cached-only and mixed low-space retries, corrupt cache repair, response resets and cancellation with targeted regressions; update setup troubleshooting.
Abort runtime retry delays promptly and start no further sync after cancellation. Drain probe stderr independently of optional bounded capture and wait for child close during cancellation. Real subprocess and AbortController regressions, 217 related checks, TypeScript, full CI and both harvested reviews passed.
Validate install-status responses and cached entries before exposing jobs to UI consumers. Reject malformed optional fields while preserving nullable backend fields, last valid state and completion tracking. The reviewed URL-guard prerequisite already landed separately in #4110. Mounted-consumer regressions, renderer typechecking, full CI and both harvested reviews passed.
Document a host-managed HTTPS Serve listener with loopback publishing and administrator authentication, without exposing the host daemon socket to the container. Clarify browser TLS, Docker Desktop and proxy-header trust limits. Parsed Compose configuration is unchanged; 115 targeted checks, full CI and both harvested reviews passed.
Retry confirmed transient PyPI archive failures once on the sanctioned mirror in Auto mode, preserving locked hashes and completed downloads. Report the final failing source accurately and retain authentication, certificate and integrity failures. Validated with 199 targeted tests and the full CI matrix; both reviews were harvested and findings fixed before merge.
Skip PowerShell startup profiles and interactive prompts during all NSIS process probes. Keep existing process ownership checks, and shorten temporary source checkout paths to avoid MSVC linker path limits.
Add executable profile and source-build regressions, update Windows installation guidance and the Nix dependency hash. All 38 required and supporting checks pass, including Windows/Linux/macOS installation and Nix builds; CodeRabbit and Greptile found no code defects.
Windows users (Auto region) saw setup stall on
cpython-3.11.16-windows-x86_64-none (download): github.com answered the
region probe while release assets were throttled, the stall watcher
stopped uv, the interpreter check skipped, and the sync re-downloaded from
the same host and stalled again. The managed Python install now switches
once between GitHub and the gh-proxy mirror (Auto region only, logged), and
the region probe checks the mirror host setup actually downloads from.
- An explicit CPU choice (Settings, OMNIVOICE_DEVICE=cpu, or Restart on
CPU) is honoured before any GPU probe. The capability probe returns CPU
without initialising CUDA, MPS, XPU or DirectML. get_best_device(), the
/system/info accelerator flags and the /health device label follow it,
so a restart after a graphics driver crash never loads that driver
again. Settings offers Auto to detect GPUs again.
- Restart on CPU also removes a stored env.OMNIVOICE_DEVICE override from
prefs.json. The backend restores it into its environment at startup,
where it would beat compute_device=cpu.
- An explicit CPU choice (Settings, OMNIVOICE_DEVICE=cpu, or Restart on
CPU) now wins over DirectML in get_best_device(), so a DirectML host no
longer returns to the GPU driver that crashed. CUDA and MPS hosts
already honoured it; all three are tested.
- Restart on CPU is not offered for a custom OMNIVOICE_BACKEND_CMD, which
may not read VoiceStudio's settings.
- replaceFile takes a creation mode; prefs.json's temporary file is
created 0600 instead of being narrowed afterwards. Other callers keep
the existing-file mode.
- A Restart on CPU that cannot save the setting shows a localized error
and stays retryable.
Active only with the SIGNPATH_API_TOKEN secret and the three SIGNPATH_*
repository variables; otherwise Windows signing is unchanged. The signed
installer replaces the unsigned one before upload, and the blockmap and
update feed hashes are regenerated to match. Adds the code signing policy
and owner checklist.
- Only a Windows Error Reporting event written after this backend's launch
counts, so a reused pid cannot blame another program's crash.
- Graphics-driver detection lists vendor driver and GPU runtime modules by
name; MKL, OpenMP and other CPU runtimes no longer count.
- A graphics-driver crash offers Restart on CPU on the failure screen. It
stores the Settings compute-device choice in prefs.json and restarts,
since Settings cannot load while the engine is down. Not offered when
OMNIVOICE_DEVICE overrides the setting.
- In-page error and exit -1 wording no longer states one confirmed cause.
- Changelog fragment.