* ci(python): gate Ruff and ty on the rules the code already passes
Ruff and ty are pinned in the dev group (never installed for users: the
app syncs with --no-dev and Docker installs without groups). CI's first
Python shard and `bun run lint:py` run the same checks.
- Ruff checks runtime-bug rules: syntax, undefined names and exports,
f-strings without fields, invalid characters, dropped asyncio tasks.
- ty fails on any rule the code passes today; the 23 rules with a backlog
warn, so new instances of every other rule fail CI.
Fixes what the rules found:
- The setup warmup task was not referenced and could be garbage-collected
mid-load; it is now held until it finishes.
- A perf-budget test fake called time.sleep without importing time.
- The scam guard's invisible-character class is written as escapes.
- Type-only names (httpx, Callable) are imported under TYPE_CHECKING.
* changelog: add fragment for #4614
* build(python): let lint:py sync the pinned tools before running them
* fix(dev): free Windows dev ports and keep dev servers from breaking each other
- The Windows process check joined its PowerShell lines with "; ", which put
a ";" straight after "@{" and never parsed, so any leftover listener on a
dev port made `bun dev` fail. Lines are now joined with newlines; a process
that exits mid-check counts as gone, and failures quote PowerShell's error.
- The web UI and smoke-test Vite servers shared `bun dev`'s dependency cache,
so starting one re-optimised the bundles the running app was loading and
left its window empty. Each now has its own cache directory.
* changelog: add fragment for #4604
* 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
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.
* 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
* Polish Electron voice workspaces and theme tokens
* Update UI test fixtures for shared task activity and model previews
* Publish long-form recovery without loading the editor in the shell
* Add VoiceStudio UI changelog entry
* Fix voice picker hit target and renderer smokes
* Address UI workspace review findings
* fix(electron): use public router state for project selection
* fix(electron): refresh in-flight setup plans and preserve project matches
* test(electron): preserve React Query exports in transcription tests
* fix(electron): require a new palette selection after results change
* fix(electron): clear palette selection until explicitly restored
* fix(dub): stream the preview upload to disk instead of buffering it
await video.read() held the entire upload in memory, so one long preview could get the backend killed. Copy the spooled upload to disk in 1 MiB chunks instead: no size cap, so long videos still work, and the manifest check now runs on the written file through the shared is_manifest_file helper.
* chore(changelog): read fragments without a byte-order mark
The #4491 fragment was saved with a BOM, which strip() keeps, so it would have
been folded into CHANGELOG.md. Fragments are now read as utf-8-sig, and the BOM
is dropped from this one.
---------
Co-authored-by: debpalash <4178343+debpalash@users.noreply.github.com>
* fix(uninstall): refuse to delete the home directory or a parent of it
OMNIVOICE_DATA_DIR and the cache overrides are honoured verbatim, so -Yes/--yes removed whatever folder they named - including \C:\Users\deryf itself. Both scripts now check each deletion target first and skip the home directory, any parent of it, and a filesystem root.
* fix(uninstall): refuse an alias of the filesystem root (#4436)
"/usr/.." resolves to "/", whose parent pattern "//*" matched nothing,
so the guard let rm -rf receive it. Regression cases shadow rm and du on
PATH, so a regressed guard still deletes nothing.
---------
Co-authored-by: debpalash <4178343+debpalash@users.noreply.github.com>
* feat(dub): download the dubbing demo videos on demand
* docs: changelog fragment for on-demand dub demo videos
* fix(dub): ignore a stale initial status answer once Download starts
* fix(dub): CI fixes for the demo card (docstring marker, structure counts, fake backend status route)
* fix(dub): harden demo download (Windows paths, error detail, proxy errors, poll races)
* fix(dub): poll demo download status one request at a time
test_each_pin_names_the_version_it_holds matches the version comment with a
regex and never resolves it, so a pin swapped for a well-formed SHA of a
different commit passes every check in the file. The label is documentation,
not a check.
Add scripts/verify_action_pins.py, which resolves each distinct action/label
pair (30 of them, 258 references) through the GitHub API and compares the tag's
commit with the pinned SHA. Subpath references resolve against their repository
(actions/cache/restore -> actions/cache), annotated tags are dereferenced, and
a channel label such as dtolnay/rust-toolchain's `stable` is reported rather
than compared, because the pin deliberately freezes a moving branch.
PR CI stays hermetic: the pytest entry point skips unless
VOICESTUDIO_VERIFY_ACTION_PINS=1, and .github/workflows/action-pin-verify.yml
runs the script weekly with a token plus workflow_dispatch, so the check is
executed rather than merely available.
Verified with a token: 250 references verified, 0 mismatched, 0 unresolved.
Swapping one checkout SHA in ci.yml reports `v7.0.1 is 3d3c42e5...ba90b1` and
exits 1.
* fix(setup): ship wheels for source-only deps so first-run setup never compiles (#4253)
* docs(changelog): add fragment for #4268
* fix(setup): make vendored wheels verifiable and shipped by every consumer (#4253)
* chore(vendor): ship the ANTLR BSD notice with the vendored runtime wheel
BSD-3 requires the copyright notice to accompany binary redistribution; the antlr4-python3-runtime sdist ships none, so keep the project notice beside the wheel and package it.
* test(install): accept vendored wheel paths in the frozen export
uv export emits the vendored wheels (#4253) as ./vendor/wheels/*.whl paths, which packaging.Requirement rejects.
* test(lock): check per-target wheel tags and extras; ship the ANTLR notice in Nix
The wheel-only guard now follows extra-activated dependencies and requires a wheel whose tags match each tested platform and Python, not just any wheel. sphn 0.2.1 has no Linux ARM64 wheel upstream and is allowlisted for that source-only target. The Nix output now installs the ANTLR licence beside the vendored wheel.
* ci(dagger): copy the vendored wheels before the dependency sync
[tool.uv.sources] points docopt, antlr4-python3-runtime and dora-search at vendor/wheels (#4253); the manifest-only layer copied pyproject.toml and uv.lock without them, so dagger python-tests and check could not install.
* ci(install): run the install smoke when the vendored wheels change
The installer ships vendor/wheels (#4253), so tests/test_install_smoke_workflow.py requires it among the install-smoke triggers.
scripts/windows-rocm-recipe.json is the reviewed record of the interpreter the
Windows ROCm wheels and HIP runtime were tested against. scripts/setup-api.mjs
spelled the uv request out (cpython-3.12-windows-x86_64) and repeated 3.12 in its
x64 error, and the desktop readiness constant spells it out again, so a recipe
bump would leave both asking for an interpreter the recipe no longer pins.
Add a shared helper that turns the recipe into the uv request and the displayed
version, use it in the setup script, and add a test that runs the helper through
node against the shipped recipe and compares it with the desktop constant.
tests/test_windows_rocm_recipe_pin.py runs 3 passed; reverting the setup script
makes it fail with "the ROCm branch retypes the interpreter version instead of
reading the recipe".
scripts/cli_install_smoke.py installs the bundled command with real uv in
temporary tool and config directories, replaces an existing desktop wrapper and
checks the wrapper's environment survives. Nothing referenced it, so the only
check of the launcher-migration path the installer ships could rot unnoticed.
Run it on the macOS and Linux legs of the install smoke, which already has uv,
and make the Windows branch a skip with a reason instead of a SystemExit. Add
tests/test_cli_install_smoke.py so the wiring cannot disappear again.
2 passed; removing the workflow step fails the guard with "no install-smoke step
runs scripts/cli_install_smoke.py". The end-to-end run happens on the POSIX CI
legs, since this host cannot run a #!/bin/sh wrapper.
scripts/dump_route_auth.py walked main.app only. The telephony gateway builds a
second FastAPI app for its own loopback listener and serves three routes there:
the Twilio voice webhook, its status callback and the media-stream WebSocket.
None appeared in the census, so the guard that every mutating route carries an
authorization dependency or a written allowlist decision never saw them.
Walk every route-serving app, tag each record with its app, list the covered apps
in the output, and allowlist the gateway's three routes with the decision each
makes (X-Twilio-Signature in-body, or the single-use per-call stream token). Add
a guard so a third app cannot serve routes outside the census.
tests/test_route_authorization_policy.py runs 16 passed; reverting the census
makes the new guard fail with KeyError: 'apps'.
contributors_section split the gh api --jq answer and indexed latest[1], so an empty answer (no published stable release yet) or a null published_at raised IndexError. The caller guards credits with except (CalledProcessError, OSError) precisely so they cannot block a release, so the IndexError escaped that guard and aborted preparation of the release notes.
Parse the answer defensively: without a usable previous release, warn on stderr and skip the block. Widen the caller guard to any exception with the same warning, so a future credits bug cannot block a release either - the omission stays visible in the log.
Verified: tests/test_release_contributors.py gains a parametrized test (empty, newline, tag-only, null-date answers) that fails on main with IndexError at prepare_electron_release.py:69 and passes with the change (15 passed).
The helper only built Tauri-style names (VoiceStudio_<version>_x64-setup.exe, _aarch64.dmg, _amd64.AppImage/_deb) for the four Tauri target triples, so it matched none of the Electron assets the release workflow publishes and silently cleared nothing. No workflow, script or test invoked it, and retries are already covered by 'gh release upload --clobber' plus check_electron_release_assets.py. AGENTS.md forbids restoring Tauri release paths. Also drops its CODEOWNERS entry.
* test(api): fail any mutating route that ships without an authorization decision
The existing policy test only checks the routers and routes someone listed, so a new mutating route with no dependency passed every gate. scripts/dump_route_auth.py reports the authorization callables attached to each route, and the new test requires a dependency or an allowlist entry with a written decision. Every WebSocket route is covered, and only the read-only GET / fallback is excluded from the dump.
* fix(auth-policy): retain root WebSockets and verify documented guards (#4130)
---------
Co-authored-by: debpalash <4178343+debpalash@users.noreply.github.com>
Recognize current Electron App version fields alongside historical Version fields in crash recurrence reports. Match explicit beta versions exactly, preserve numeric preview/base matching, and keep unstamped freshness unknown without a target.
Eight parser/CLI regressions failed before the fix; all 26 focused cases and 50 combined style checks pass. Update script help and triage guidance.
Fixes#4119.
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.
The absent legs and installers are now found before any check can fail, and
--missing-report is written in a finally block. A leg with an incomplete feed
still fails the step, but the rehearsal's final step lists every leg that built
nothing (review).
- Download each phone app into its own folder. A pattern that matches one
artifact extracts it without the artifact-name folder, which lost the
surviving app when the other phone leg failed (review).
- The missing-legs step runs after earlier rehearsal failures, and the signing
notes accept no reports in a rehearsal, so a run where every package leg was
skipped still lists them. Releases stay strict (review).
- Test signing accepts only an intact signature whose chain fails on nothing
but the untrusted root; HashMismatch, a missing signature or an expired
certificate fail (review).
- App Store signing steps skip in a rehearsal even when signed_ios is set, so
they never run without the protected environment (review).
- A rehearsal's release job also runs after failed build legs: it verifies
what built, lists the missing legs, and fails at the end. Releases still
need every leg.
electron-release.yml gains rehearsal=true: from any branch and without a tag it
builds every desktop package, the omnivoice-tts runtimes and the phone apps,
runs the packaged smoke tests, then the release job's verification
(prepare_electron_release.py --rehearsal against package.json's version, the
updater feed checksum and channel checks, the sunset feeds and signing notes).
It publishes nothing: the exact-tag check stays for releases, a rehearsal
refuses publish/release_tag/allow_unsigned, every publishing step is skipped by
its condition and refuses a rehearsal again in its script, phone builds skip
the protected signing environment, and SignPath runs only on an explicit
signpath_policy=test-signing. Artifacts expire after 3 days.
tests/test_release_rehearsal.py pins the guards; docs/RELEASING.md documents it.
Pinned ggml now requires find_package(SPIRV-Headers CONFIG), which the
LunarG SDK does not provide. Install the commit-checked Khronos release
matching the SDK into a private prefix; read UTF-8 explicitly in the
bundle test.
Move the omnivoice.cpp pin (desktop and mobile) to 040c8b3, the commit that adds
the tts-server target and voice registry the resident mode needs. Build, checksum,
upload and package tts-server-<platform> beside omnivoice-tts-<platform> on every
desktop platform, fail the build and packaging when it is missing, and log once
why resident mode fell back to the per-request binary.
Refs #3654
A beta's notes span everything since the last stable, so its Contributors list
repeated from beta to beta and new contributors were invisible. A second or
later beta now lists who is new since the previous beta, then the full list.
Update the managed runtime pin from v0.7.4 to v0.9.4 using the SHA-256
digests GitHub publishes for the release assets. v0.9.3 is the first
release with the fish_drama3 family.
The breeze_tts, dots_tts and sortformer_diar resource layouts are
unchanged since v0.7.4, and the server still accepts the request and
config fields VoiceStudio sends, so installed GGUFs load as they are.
An app-managed v0.7.4 runtime stays usable as a fallback until the user
installs the update, which Settings offers. A failed self-check now says
so and leaves the existing runtime in place. Add an opt-in smoke script
that loads an installed model in the stock release binary.
- glibc guard: fail when objdump cannot inspect an ELF (+ test)
- NSIS uninstall: report runtime/hf_cache directories that could not be removed
- docs: Snapcraft Builds revisions use --ozone-platform=wayland, not the env var