Commit Graph
31 Commits
Author SHA1 Message Date
Palash Debnath 4d051d9664 fix: delete installed engines, unstick Wi-Fi-wait downloads, compact dictation overlay (#4490, #4494, #4493) (#4496)
* fix(engines): let users delete an engine VoiceStudio installed (#4490)

Nothing in the UI called the sidecar uninstall route, so a one-click engine
(MOSS-SoundEffect and its ~11 GB of weights, IndexTTS, CosyVoice, ...) could
never be removed, though the engine docs promised an Uninstall button.

- The shared install control offers Delete, with a confirmation, for an
  app-managed install (never a user's own clone); Settings > Models shows it
  on each installed one-click engine and Tools > Sound effects at the top.
- Uninstall stops the engine's running sidecar first, refuses while it is
  mid-request (409), and reports files it could not delete (500 with the
  folder) instead of a silent partial delete.
- Engine docs name the Delete button.

* fix(mobile): never leave a model download stuck at Waiting for Wi-Fi

Wi-Fi-only downloads parked on the network policy (metered or hotspot Wi-Fi,
cellular with Mobile data off) had no way forward and a generic label. Say
why they wait, offer Download on this connection, apply the Mobile data
switch to waiting transfers, and retry policy/constraint disagreements
sooner. Same on Android and iOS. (#4494)

* feat(dictation): optional compact level-meter overlay for press-and-hold dictation (#4493)

* chore(changelog): name the batch fragments after #4496 and credit reporters

* fix(engines): delete read-only files when removing an engine

Windows marks git pack files read-only, so rmtree(ignore_errors=True) left
.git behind and every engine delete there would have been reported as
incomplete. Uninstall now clears the read-only bit and retries, and only
files another process holds open are reported.

* fix(engines): keep every request away from an engine while it is deleted

A request holds the engine's op lock while it resolves its environment,
before its process exists, so the old live-process check missed it and a
spawn could rebuild part of the install mid-delete. The delete route now
marks the engine removing (new spawns refuse it), takes every instance's
op lock without waiting (busy → 409) and stops its sidecar before removing
files. Leftovers of an incomplete delete stay 'managed' so Delete is still
offered. Moves the stop out of sidecar_install, which also removes an import
cycle.

* fix(engines): Delete stays available for leftovers, sends one request, and promises only what it removes

- Delete is offered for any managed folder, not only a healthy install, so an
  incomplete delete can be retried.
- A ref guard and a disabled confirm button stop a second DELETE.
- The confirmation no longer claims to remove models in the shared download
  cache, which uninstall leaves in place.

* fix(mobile): relabel restored waiting downloads; harden iOS download replacement

Android: a queued waiting entry now takes the freshly computed waiting reason
on restore while active progress is kept. iOS: the Mobile data setting
restarts waiting transfers, downloadNow persists the intent before replacing
the task and keeps the model paused with a reason when saving fails, and task
ownership uses a per-model generation so a cancelled task never clears or
finalises a replacement's entries. (#4494)

* fix(dictation): show the full recorder after an empty result and report compact-overlay save failures

* fix(engines): retry only removals when a read-only file blocks an engine delete

rmtree also reports os.open/os.scandir failures to the callback, and calling
those with one argument raised TypeError and aborted the delete before its
leftover check. Other failures now reach that check.

* test(android): name freeBytes in the new ModelDownloads test calls

Five positional lambdas matched both the primary constructor and the
bundled-assets one, so the unit tests failed to compile.

* fix(engines): reference-count delete marks, refuse installs during a delete, never chmod a symlink target

- engine_removal holds counted 'being deleted' marks shared by the delete
  route, the sidecar spawner and the installer: an overlapping delete that
  gives up no longer clears the mark of one still removing files.
- start_install refuses (409) while the engine is being deleted, and the
  install/repair button is disabled while a delete is pending.
- The read-only retry makes the parent folder writable and never chmods a
  symlink, which would follow it to a shared interpreter.
- iOS test: drop an assertion that could only pass after the gate opened.

* docs(structure): 146 services

* fix(engines): keep POSIX file modes on delete; make the iOS replacement test observe the cancelled transfer
2026-11-26 21:34:13 -08:00
Dery Ferdika 4da51ddb48 fix(diagnostics): preserve operation consent and recovery (#4184)
Keep delayed failure reports bound to their original diagnostic permission and preserve accepted work through storage recovery. Retain historical download provenance and owned session markers, keep expected refusals local, and preserve main/manual native validation runs.

All current-head platform, backend, desktop, security, identity and CLA checks passed; both review bots cleared the final repair.
2026-11-16 07:07:30 +05:30
debpalash 24c4789871 feat(diagnostics): deliver native phone failures through app intake 2026-11-15 19:00:30 +05:30
debpalash b13adec3b0 fix(diagnostics): preserve consent through native recovery and main callbacks 2026-11-15 09:36:09 +05:30
debpalash 5014cca147 fix(diagnostics): retain action consent across callbacks and exception hooks 2026-11-15 08:15:52 +05:30
debpalash 714572414d fix(diagnostics): fence complete event history and retain withdrawal retries 2026-11-15 07:06:12 +05:30
debpalash a8e0ace914 fix(diagnostics): retain terminal acknowledgements and bound cleanup retries 2026-11-15 04:58:11 +05:30
debpalash 60428e50ac fix(diagnostics): acknowledge durable choices and retain worker failure authority 2026-11-15 02:22:56 +05:30
debpalash f36eb64c29 fix(diagnostics): retain recovery evidence and fence delayed failure owners 2026-11-15 01:57:59 +05:30
debpalash 5bdb35a986 fix(diagnostics): preserve observed authority and durable recovery 2026-11-15 01:07:40 +05:30
debpalash f32d261301 fix(diagnostics): retain reports through transient storage faults 2026-11-14 23:52:56 +05:30
debpalash 5fc18fdc71 Merge remote-tracking branch 'origin/main' into feat/opt-in-supermetry-diagnostics 2026-11-14 23:27:46 +05:30
debpalash 8e2e0641d9 fix(diagnostics): bind delayed failures to observed owner grants 2026-11-14 23:24:49 +05:30
Palash Debnath 031a08fa7e fix(android): keep model downloads working through VPN routes (#4140)
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.
2026-11-14 23:24:00 +05:30
debpalash 998dca954f fix(diagnostics): fence consent history and recover durable delivery 2026-11-14 22:01:50 +05:30
debpalash fece0f84af feat(diagnostics): add separately opted-in automatic failure reports 2026-11-14 19:27:22 +05:30
Shimul Debnath 40c5e3ce6f fix(mobile): make model downloads resumable with background transfers and live progress (#3752)
Persist mobile model download intents, resume parallel ranges in background transfers, and show percentage, speed and ETA. Preserve partial downloads through retries and validate SHA-256 before activation.

Validation: all 35 PR checks passed, including native iOS and Android builds, tests and inference.
2026-11-01 19:27:50 +05:30
Palash Debnath cc91cac752 feat(mobile): make model RAM recommendations advisory (#3738)
* feat(mobile): make model RAM recommendations advisory

* test(mobile): verify low-memory try-anyway keeps licence consent

* docs(changelog): record advisory phone memory recommendations

* fix(mobile): preserve RAM advice and safe automatic model choices

* fix(mobile): keep Clone and Dub RAM warnings outside advanced controls
2026-10-31 23:40:29 +05:30
debpalash 44523d6a40 Fix mobile parity CI and project transfer review findings 2026-10-25 17:43:09 +05:30
debpalash a65cfa92f9 Expand native mobile production and editable project handoff 2026-10-25 16:55:55 +05:30
debpalash 97ee0f3707 feat(mobile): add native production workspaces and phone processing 2026-10-25 01:59:47 +05:30
debpalash 931139ede4 fix(android): serialize dub cancel/resume/delete, place raw PCM by timestamp, split dub utterances at pauses, keep separate speak and clone model choices 2026-10-22 16:35:47 +05:30
debpalash b3ce49936d feat(mobile): complete native workflows and Electron-style Home 2026-10-18 22:41:22 +05:30
debpalash f2cebf3876 feat(android): simple UI with little text, on-device voice cloning and dubbing
- Every screen trimmed to short labels and icons with one primary action:
  Speak is a text box, three chips and Generate; Dictate is one mic button;
  Dub is source, languages, voice; Settings and Models are plain rows.
  Help text moved behind a single info sheet where still needed.
- Voices can be cloned and stored on the phone (OmniVoice via
  omnivoice.cpp) and used from Speak; each voice shows where it lives.
- Dubbing runs on the phone: extract, transcribe (Whisper), translate
  (Qwen3 via llama.cpp), re-voice cloning the original speaker, mix and mux,
  as a foreground task with cancel and checkpoint resume.
2026-10-18 04:30:50 +05:30
debpalash c520c06777 feat(android): on-device TTS and dictation, model downloads, phone-first routing
sherpa-onnx, omnivoice.cpp and llama.cpp at the pinned versions, built for
arm64-v8a and x86_64 behind one LocalEngine. Sherpa TTS, transcription and
live dictation run on the phone; a Models screen downloads user-started,
resumable, SHA-256-verified models with the desktop's licence acceptance
and RAM fit. Speak and Dictate choose This phone or My computer; every tab
works without pairing.
2026-10-18 03:37:45 +05:30
debpalash f40ee05924 fix(android): dub worker retries every transient failure, including HTTP 500
The worker kept its own retry list (no 500), so a brief settings error
during the post-upload translator check permanently failed the dub. It now
uses the shared ClientFailure.isTransient(), tested through
authorizedTranslation. iOS already keeps the checkpoint and resumes.
2026-10-18 00:50:18 +05:30
debpalash 5c07ee12e7 fix(mobile): review — dictation restarts after an early stop; uploads keep a media extension
- iOS: stopping dictation before the socket opened left finalizing set,
  disabling dictation until the host changed. Reset it on every early exit
  and on disappear.
- Uploading a file whose display name has no media extension (e.g.
  'Interview') failed, since /dub/upload requires one. Both apps append the
  file type's extension when the name lacks a matching one, for dub and
  clone uploads, with tests.
2026-10-18 00:22:02 +05:30
debpalash 7603ce0716 fix(mobile): phone-test findings — dub start errors, remote-LLM consent, dub UX
From a device run of the Android build against a live host:
- Dub start failures always surface an actionable message (the worker
  previously failed silently); the full worker pipeline is now tested
  against a mock host.
- An LLM translation engine whose endpoint isn't verifiably on the host's
  loopback needs the same per-job consent as online translators.
- The chosen dub file keeps its real name (on screen and as the upload
  filename); clearing it says Remove, not Delete.
- Picker values take the space the label doesn't need; dub history uses
  compact rows; searches with no matches say so; tabs render immediately.
- 15 new mobile strings translated into all 21 locales.
2026-10-18 00:14:49 +05:30
debpalash 890389897f fix(mobile): CodeRabbit review — resilient stores, zh script locales, foreground refusal
- Android DubWorker keeps going when Android refuses a foreground-service
  start, and declares the dataSync type; cancellation still propagates.
- Corrupt or unreadable saved state falls back to defaults instead of
  crashing every launch.
- Reconnecting keeps the saved host's label.
- zh-Hans*/zh-Hant*/zh-HK/zh-MO map to the bundled zh-CN/zh-TW catalogs.
- Upload failure receipts are shown once.
- A failed attempt on another host leaves the active session intact; PIN-only
  disconnect sends no revoke.
- Android parses only the fallback-chain catalogs, cached per locale.
2026-10-18 00:01:12 +05:30
debpalash 41566b71ac fix(mobile): review P1s — explicit translation provider, multi-phrase dictation, honest dub voice, host isolation
- Dub translation always names the host's active engine (GET
  /engines/translation), as the desktop does; an online engine needs
  per-job consent, and declining sends nothing. Previously the backend fell
  back to Google.
- iOS dictation keeps recording across Sherpa utterance finals; only
  the session summary ends it (Android summary handling aligned).
- Dub voice is an explicit choice of engine preset or saved voice; the
  'Use source voice' label promised source-speaker cloning that the
  app's transcription path can't prepare.
- Switching or disconnecting hosts clears host-specific state, stops
  old-host monitoring and rejects stale replies.
2026-10-17 23:48:27 +05:30
debpalash d9b83e6a17 feat(mobile): native iOS and Android companion apps (preview)
SwiftUI (mobile/ios) and Jetpack Compose (mobile/android) apps that pair
with the user's own VoiceStudio backend by QR/PIN or API-key session and
drive Speak, Voices/cloning, Dub and Dictate. Both implement one contract,
mobile/contract/SPEC.md.

- Theme tokens are generated from the Electron theme
  (scripts/export-mobile-tokens.ts) and the API description from the
  backend (scripts/export_openapi.py); tests/test_mobile_contract.py fails
  on drift.
- 199 mobile.* strings added to all 21 renderer locale catalogs.
- es: tts.record now reads "Grabar" (record), not "Registro" (log).
- New mobile CI workflow; docs/mobile.md user guide; CHANGELOG entry.
2026-10-17 23:02:12 +05:30