Repository navigation
BiVox v0.2.8 — engine update
BiVox v0.2.8 — endpoint tail fix + focus stickiness refusal
Both issues from your nuc field report (dictation works in gnome-text-editor —
big progress!) are addressed. Code-only release: models unchanged (still
v0.2.6 payload).
1. Last word truncated on auto-commit
Root cause: the Rust worker's endpoint branch drained the mel accumulator
(acc) but not the sub-packet PCM remainder (pcm). The mic delivers
bursty chunks, so when VAD silence fired the endpoint, the final ~160 ms of
speech sat in pcm and never reached the decoder. The Python worker had this
fixed (711cb94) but the Rust port's endpoint path missed it.
Fix: endpoint now runs push_leftover(pcm → acc) before drain_tail, exactly
matching the ctl stop path. Also clears pcm on session start so
leftover speech from a previous session can't leak in as ghost words. G2 parity
re-verified 3/3 (the drain is tail-only; steady-state packets unchanged).
2. Text kept landing in the abandoned editor after switching apps
Root cause: my own v0.2.6 design flaw. The watcher stores last_editable
sticky (deliberately, so moving to a headerbar button doesn't lose the target),
but when you switched to an app with no editable a11y tree (GNOME Terminal,
Nautilus, Electron-without-a11y), the sticky record survived and the
sole-editable fallback re-selected the old editor — writing text where nobody
was looking. A data-safety violation.
Fix: the current focus (last_any) is now decisive. Resolution logic:
- focus is on an app with an editable tree → target it;
- focus is on the same app as the sticky editable (transient headerbar/toolbar
widget) → stay on that app (the original reason for stickiness); - focus is on a different app with no editable tree → refuse injection
(never fall through to state-scan heuristics — that was the leak); - no fresh focus events at all (fresh boot, watcher not yet fired) →
non-decisive, legacy fallback chain runs.
New tools/refusal_test.py (5 cases) locks this against regression — no live
a11y bus needed. E2E 8/8 and M3 13/13 still pass (the test suite clicks into
the editor, so focus is always on an editable target).
3. Doctor: boot-race honesty
Your output showed worker: asr-worker (rust) running but core said
worker down / bus_alive: false — not a contradiction: you ran doctor seconds
after boot, and model load takes ~3.4 s (worker binds the bus after loading).
Doctor now reports LOADING (models ~3s, bus not yet bound) vs
running, bus bound vs NO WORKER RUNNING, so the boot window is unmistakable.
Honest limitation
Injection into Electron apps (VS Code, Chrome, Telegram Desktop) remains
best-effort: they expose unreliable/absent editable a11y trees, so the decisive
refusal above means BiVox will correctly decline rather than guess. The real
fix for those is the uinput blind-diff fallback (D-003 phase 2) — next major
item after this polish settles.
Assets
| Component | Package |
|---|---|
| Engine (code) | bivox_0.2.8_amd64.deb (this release) |
| Models | unchanged v0.2.6 — see install matrix below (already installed if you have any BiVox ≥ 0.2.6) |
Suites at tag: G2 3/3 · M1 21/21 (rust, G4) · M3 13/13 · E2E 8/8 · refusal 5/5 · M2 9/9.
4. Packaging fix — models dependency (D-022 root-cause)
While testing you hit a genuine bug in my release policy, not just the app:
bivox-models-ru-en : Depends: bivox (= 0.2.6) but 0.2.8 is to be installed
The shipped models_0.2.6 carried a hard Depends: bivox (= 0.2.6) (built
before I loosened it), and my permanent cross-release link pointed at exactly
that file — so any clean install of new code + old models failed, and anyone
who upgraded code to 0.2.8 got a broken models package.
Three compounding mistakes, all fixed:
- Hash-gate measured only the ONNX payload, not package metadata. A
=→>=change alters the .deb but the gate saw "UNCHANGED" — pinning the
broken build forever. Gate now hashes payload + control + manifest. - Models version was static. Even a rebuild wouldn't raise the number, so
apt saw no upgrade. Now the gate auto-bumps the last component
(0.2.6 → 0.2.7) whenever the package hash changes. - Metadata lived inline in the build script (invisible to hashing). Moved
to trackedpackaging/models.control.in+packaging/models.manifest.toml.
This release therefore ships both bivox_0.2.8_amd64.deb and
bivox-models-ru-en_0.2.7_all.deb (the corrected dependency). Verified with
apt install --dry-run of the two together: solves cleanly, no conflict.
Install
| Component | Package |
|---|---|
| Engine (code) | bivox_0.2.8_amd64.deb (this release) |
| Models (dependency-fixed) | bivox-models-ru-en_0.2.7_all.deb (this release) |
# fresh install
sudo apt install ./bivox_0.2.8_amd64.deb ./bivox-models-ru-en_0.2.7_all.deb
# already have models 0.2.6 from an earlier install? repair the broken dep:
sudo apt install ./bivox-models-ru-en_0.2.7_all.deb # bumps 0.2.6 -> 0.2.7 (>= bivox 0.2.6)
sudo apt install -f # if apt flagged bivox-models-ru-en brokenModels 0.2.7 installs alongside any BiVox code ≥ 0.2.6, so future
code-only releases won't break it again.
Suites at tag: G2 3/3 · M1 21/21 (rust, G4) · M2 9/9 · M3 13/13 · E2E 8/8 ·
refusal 5/5 · apt dry-run solve rc=0 for code 0.2.8 + models 0.2.7.