Skip to content

Latest commit

 

History

History
649 lines (479 loc) · 63.3 KB

DEVELOPMENT.md

File metadata and controls

649 lines (479 loc) · 63.3 KB

Development & handoff

Shared workflow

  • Canonical repository: https://github.com/jli-software/utterform
  • Fetch main before starting; work on a dedicated branch and preserve other contributors' changes. Commit and push validated work; integrate through a pull request only when authorized. Never force-push.
  • Until 1.0: merge only, no previews, no releases (Jonas, 2026-11-07, after 0.8.0 was released; supersedes the preview gate below): a finished stage whose validation and PR CI pass is merged into main straight away. No Desktop builds preview, no tag, no release: Jonas tests everything once, at 1.0, and that is the next release. The installers, the README and the app version (package.json, Cargo.toml, tauri.conf.json) stay at the last real release, 0.8.0, which the release-metadata test requires; stage numbers such as 0.9.0 name roadmap stages and changelog entries only. 1.0 bumps everything at once. Since 2026-11-08 (stage 1.0.0): the app is at 1.0.0 and the installers and README point to the prerelease v1.0.0-rc.1 that Jonas accepts; releases/latest still serves 0.8.0. Style samples (mock-ups, images) and occasional questions still go to Jonas. Never move a published tag or publish failing/partial work. Other open pull requests are merged only when Jonas says so.
  • Superseded: Test one platform before release: finish the change on a branch/PR, run validation, then build only the first-test platform chosen by Jonas with Desktop builds. For 0.7.8 that platform is Linux. Share the exact commit and downloadable Actions artifact; leave main, release tags and the stable release unchanged while Jonas evaluates it. Iterate on that branch if needed. Only after his acceptance and authorization to finalize, merge and tag for the complete Linux/Windows/macOS release. An explicit “release everything at once” request may skip the manual preview gate. Platform-specific changes still need their relevant native checks before final release. Default to a patch increment unless a version or minor increment is requested. Never move a published tag or publish failing/partial work.
  • Development is shared across machines and coding assistants. Keep architecture, decisions, release notes, and the current handoff in this repository, not only in chat history.
  • Keep credentials, recordings, local transcript history, dependencies, and machine-specific configuration out of Git.
  • GitHub Actions builds the downloadable binaries. Releases must include platform assets, not just source archives.

Road to 1.0

Replanned with Jonas on 2026-11-07: Omarchy dictation backend, Settings from scratch, Codex login for text actions, context from selection and clipboard, action per application, audio files, first-run assistant, then 1.0. Stages, decisions and open proposals are in plans/v1.0-roadmap.md. The plan of 2026-10-31 (reliability, assistant, finish) is superseded; 0.7.13 shipped, 0.7.14 (feat/simple-settings) was rejected and will not be merged.

Current handoff — 1.2.0 Hold the microphone level

Branch work/utterform-1.2.0-hold-mic-level. Jonas asked on 2026-11-13 for the microphone to stay set (a RØDE NT-USB on Windows; its knobs only change the headphone mix) without a separate tool, on Windows and Linux alike. Settings → Recording → Level holds a level while Utterform runs. Design in ARCHITECTURE.md → Microphone level. Released directly as 1.2.0 like 1.1.0. CBZIT007 has no Visual C++ Build Tools: the Windows code was compiled by Desktop builds, the frontend and its Playwright tests ran locally (Edge via PLAYWRIGHT_CHROMIUM_EXECUTABLE). Open: a real check with the NT-USB and Teams running, and Linux on a PipeWire desktop.

Previous handoff — 1.1.0 Microphone in the tray

Branch work/utterform-1.1.0-tray-microphone. Jonas asked on 2026-11-13 for a quick microphone switch in the tray (headset plugged in for calls, but dictating into the laptop's microphone), Windows first, then macOS and Linux, released directly as 1.1.0 without a release candidate; nobody else uses Utterform yet. He chose "release 1.1.0 straight away" over first releasing 1.0.0: 1.1.0 is the first stable release since 0.8.0 and contains all of 1.0.0-rc.1. Design in ARCHITECTURE.md → Microphone in the tray. CBZIT007 (Windows) has no Visual C++ Build Tools; Rust was compiled and tested by the Desktop builds workflow, the frontend locally. Open after the release: a real check of the tray submenu on each desktop, the open points of plans/v1.0-acceptance.md, and a new WinGet submission (PR #27 is the last one, at 0.7.11).

Previous handoff — 1.0.0 Finish

Stage 1.0.0 of the roadmap, branch work/utterform-1.0.0-finish. Jonas decided on 2026-11-08 to accept a real signed prerelease: the app is 1.0.0, the installers default to v1.0.0-rc.1, and the tag publishes it as a prerelease, so releases/latest keeps serving 0.8.0. What he checks is in plans/v1.0-acceptance.md (upgrade, clean profile and assistant, dictation and tray, ChatGPT, Context, per-app, audio files, start at login with issue #40, Omarchy keys, macOS Gatekeeper). Stages 0.9.0–0.14.0 had only Linux CI; the full Desktop-builds run on this branch was the first Windows and macOS build of them. Next: Jonas's results. A fix → v1.0.0-rc.2; acceptance → installers, README and notes to v1.0.0, tag, verify assets and macOS signing, then a new WinGet submission (PR #27 is the last one, at 0.7.11).

Previous handoff — 0.14.0 First-run assistant

Stage 0.14.0 of the roadmap, branch work/utterform-0.14.0-assistant. Jonas accepted the mock-up on 2026-11-08: four steps (where to transcribe · key or model · language and words · ChatGPT, dictation key, start at login), Skip on every step, nothing applied before Finish. Built on the contract of Draft PR #39, adapted: no Live choice and no recording topic in the assistant (both stay in Settings), and issue #40 stays with 1.0. settings.onboarding_completed (legacy files read as done), cli::Intent::route holds every intent back while setting up, lib/OnboardingAssistant.svelte with lib/onboarding.ts. Design in ARCHITECTURE.md → First-run assistant, validation and what is open for 1.0 in TESTING.md. Merged into main without tag or release; ships with 1.0. Next stage: 1.0.0.

Previous handoff — 0.12.0 Action per application

Stage 0.12.0 of the roadmap, branch work/utterform-0.12.0-per-app. Jonas decided to build it small and accepted the mock-up: Settings → Context → Per app, empty by default; + App offers the apps dictated into lately (settings.recent_apps) or a typed name; a rule applies only when the dictation key starts the recording; a notification names the action and app only when a rule changes the action. foreground.rs names the app in front (Hyprland, Sway, X11, Windows, macOS; none on GNOME/KDE Wayland), lib/app-actions.ts matches the rule. Design in ARCHITECTURE.md → Action per application, validation in TESTING.md. Merged into main without tag or release; ships with 1.0. Next stage: 0.14.0 first-run assistant.

Previous handoff — 0.11.0 Context: selected text and clipboard

Stage 0.11.0 of the roadmap, branch work/utterform-0.11.0-context. A new built-in action Context: the transcript is the instruction, the selected text (Linux, read at recording start) or else the clipboard is the material (context.rs). Jonas decided: its own action, no per-action switch; Linux reads the selection, Windows/macOS the clipboard only (no simulated Ctrl+C). Settings → Context has the two switches; the transcription row Context became Topic. Design in ARCHITECTURE.md → Context, live measurement in TESTING.md. Merged into main without tag or release; ships with 1.0. Next stage: 0.12.0 action per application — discuss with Jonas first; 0.14.0 first-run assistant is the next one that can simply be built.

Previous handoff — 0.13.0 Audio files

Stage 0.13.0 of the roadmap, branch work/utterform-0.13.0-audio-files. Voice messages and recordings are decoded by audio_file.rs (Symphonia plus bundled libopus) into a temporary 16 kHz WAV and run through process_recording with Origin::File; GPT Transcribe uploads longer than twelve minutes in parts cut at pauses. In: folder button / O, drop, --file, "Open with" (desktop entry, NSIS OpenWithProgids, macOS document types — none takes the default). Jonas accepted the mock-up. Design in ARCHITECTURE.md → Audio files, live results and what is open for 1.0 (Windows/macOS "Open with", drag and drop in a real window) in TESTING.md. Merged into main without tag or release; ships with 1.0.

Previous handoff — 0.10.0 Codex login for text actions

Stage 0.10.0 of the roadmap, branch work/utterform-0.10.0-codex. Settings → AI → Provider chooses OpenAI key or ChatGPT; with ChatGPT the text actions run on the subscription through the Codex CLI login (transcription/codex.rs, approach from kit). Jonas decided: "Experimental" label, no fallback to the API key; mock-up accepted. Design in ARCHITECTURE.md → Text actions on ChatGPT, measurements and what was not exercised live in TESTING.md. Merged into main without tag or release; ships with 1.0. Next stage: 0.11.0 context — it can build on either provider through transcription::transform.

Previous handoff — 0.9.0 Settings from scratch

Stage 0.9.0 of the roadmap, branch work/utterform-0.9.0-settings (worktree ~/git/utterform-settings on asus16), rebased on main/v0.8.0.

Jonas accepted the mock-up on 2026-11-07: search field on top, categories as tabs below, one row per setting. Built to the roadmap rules: no Save/Cancel, every change applies at once (text fields after 500 ms), minimal text with tooltips, technical details one level down. Design and code map in ARCHITECTURE.md → Shared visual identity. The "Context" category of the roadmap proposal is left out until 0.11.0 gives it rows; 0.10.0 adds the Codex provider to the AI category. Reused from the rejected 0.7.14 branch: vocabulary as chips, local model chosen in its list. Not its layout.

Settings schema and backend are unchanged; existing preferences carry over. A Linux preview (run 42369624453) was built before the release rule changed and Jonas called it "super". Per the rule above it is merged into main without tag or release; it ships with 1.0.

Previous handoff — 0.8.0

Stage 0.8.0 of the roadmap, branch work/utterform-0.8.0-omarchy-dictation (based on plan/utterform-1.0, so it also carries the roadmap to main). Utterform becomes an Omarchy 4.5 dictation backend: three commands in packaging/omarchy/, shipped in the Linux package under share/omarchy/ and copied by install-linux.sh next to the launcher only where omarchy-dictation-use exists, plus one row in ~/.config/omarchy/extensions/omarchy-menu.jsonc. App.svelte keeps a stop that arrives while a recording is starting. Design in ARCHITECTURE.md → Global dictation, validation in TESTING.md.

Released directly as 0.8.0; the Linux preview build 42369068585 (5aee9d1) passed its package checks. To test a branch build of the integration, go through its installer, from the extracted Desktop builds Linux artifact: UTTERFORM_VERSION=preview UTTERFORM_RELEASE_BASE_URL="file://$PWD" sh install-linux.sh. Still to be checked on asus16 after the release: Utterform in Setup → Defaults → Dictation, Alt + Space, Right Alt held (also briefly), Super + D still working.

Previous handoff — 0.7.12

work/utterform-0.7.12-tray-success is based on main/v0.7.11. The requested Linux and Windows previews add five-second green success feedback in tray.rs. commands.rs calls it after successful transformation and every requested output; live.rs after nonempty successful processing/delivery (history is best-effort). Sound is independent. The event loop serializes state, icon writes and token-checked expiry. One retained async timer is cancelled/replaced on every status change; no polling or new thread. TrayState is managed in lib.rs. Icon geometry and recording red are unchanged.

On 2026-10-20 Tony explicitly requested the regular release without a preview: merge and complete Linux/Windows/macOS publication are authorized after automated CI and full native package checks. This is a scoped waiver for 0.7.12, not a change to future releases. Actual tray visibility, sound-off confirmation, rapid restart, cancellation/failure and five-second reset will be tested after publication; do not claim these installed-desktop checks passed. Linux/Windows preview package runs 39395502112/39395505476 and both CI runs passed at 748c000; the final documentation change adds stable Latest one-liners to both READMEs. Windows install-windows.ps1 checks public checksums and opens the NSIS installer; -VerifyOnly verifies downloads without changing the installed app.

Current handoff — 0.7.9

0.7.9 turns the existing utterform.log troubleshooting aid into bounded, privacy-safe local diagnostics for the complete Record → Transcribe → Transform → Deliver workflow. There is no telemetry, background upload or remote crash service. Settings exposes immediate Copy diagnostics, Open log file and Open log folder actions; they do not participate in Settings Save/Cancel. Rust panics, unhandled WebView errors and an unclean previous exit are covered, while native process crash dumps remain explicitly outside this release.

The implementation contract, code map and privacy rules are in the 0.7.9 diagnostics plan; the final design is in ARCHITECTURE.md → Diagnostics and validation evidence in TESTING.md.

Implementation state (2026-09-16). The reviewed implementation and synchronized 0.7.9 metadata are on the diagnostics PR branch. Linux frontend, browser and native checks pass, including release:check; no desktop preview, merge, tag or release has been made. Four reviewed decisions differ from the plan's initial wording:

  • tauri-plugin-log is 2.9.1, not 2.7.0. Its stable Tauri-2 logger/filter integration is used, but its file target retains failed writes without a memory bound. Utterform therefore supplies the file target through Dispatch: one-record memory, 2 MiB active file and exactly two numbered rotations. tauri-plugin-opener is 2.5.5 as planned.
  • The logger is built with the plugin's split and attached first thing in setup, not registered with .plugin(...): the plugin would add a WebView log command, and an uncreatable log directory would fail the launch instead of falling back to stderr.
  • The opener plugin is registered with open_js_links_on_click(false); no capability entry was added for either plugin.
  • A keyring that cannot be read now says so ("could not be read from the operating system keyring", with a reference) instead of "No OpenAI API key is stored"; a missing entry still gets the old guidance.

Before tagging: run PR CI, the Linux manual checks in the plan (startup, successful recording, induced API failure and its reference, the three support actions, rotation/truncation, force-kill and restart) and Desktop builds on all three platforms — the Windows and macOS typing and Live files changed their log calls and cannot be compiled on the Linux host. Then verify Finder, Explorer and the Linux file manager and the actual log paths on each desktop.

Diagnostics and logging invariant

Diagnostics are part of a feature's definition of done, not follow-up work. Every new or changed operation that can fail, fall back, wait on an external system or leave durable state must define privacy-safe lifecycle and outcome events at the same time as its behavior. A pull request must:

  • log actionable boundaries and failures with a stable event name and correlation/session id;
  • aggregate or rate-limit repeated events and never write from audio, input or rendering hot loops;
  • never log API keys, authorization material, transcript/history/clipboard/file contents, audio, prompts, vocabulary, recording context, window titles or raw network bodies;
  • treat device names, process/application identifiers and HTTP status codes as diagnostic metadata, while redacting user-home prefixes and user-selected file paths;
  • add or update tests for event formatting, error/fallback coverage, redaction and bounded output;
  • update the diagnostics documentation when an event or privacy rule changes.

Pure getters and successful high-frequency polling do not need success records. Their failures do. Logging must never change the functional completion boundary: history remains attempted before external delivery, every requested output finishes before the command answers, and decorative feedback such as the Done cue remains detached and safely superseded by the next recording.

Previous handoff — 0.7.8

Settings has a viewport-bound height (up to 820 px), independent of the active category. The header, navigation and Save/Cancel footer stay in place; only the panel scrolls. A stable scrollbar gutter keeps form widths unchanged between short and long panels. Compact windows retain horizontal navigation and an independently scrolling panel. Dictation shortcut is the first group in General; shortcut registration failures return there, and the live-dictation setup hint points there. No settings schema, Save/Cancel semantics or native recording/input code changes.

Jonas accepted the Linux preview 2eb11b6 on 2026-09-14 and authorized this final shortcut move, merge and full Linux/Windows/macOS release. No second manual preview gate is required. For future preview handoffs he wants a ready-to-run, verified curl command, not just manual download/extract steps. Bind it to the exact preview artifact/commit and document any required GitHub authentication; never invent an anonymous URL for an Actions artifact or put credentials in the shared command. A preview must not silently install latest.

Preview and release procedure

  1. Push the validated branch and open/update its PR. Ordinary CI does not package binaries.
  2. Build only Jonas's selected test platform, explicitly on that branch:
    gh workflow run desktop-builds.yml --ref work/utterform-0.7.8-stable-settings -f platform=linux
    Manual runs default to Linux to avoid an accidental three-platform preview; the tag workflow still calls the full three-platform matrix.
  3. Share the successful run's utterform-binaries-linux-x86_64 artifact and head SHA. It expires after 30 days; it is not a GitHub Release and does not change latest. Download/extract the artifact, verify it, and launch the test binary:
    sha256sum -c SHA256SUMS.txt
    tar -xzf utterform-linux-x86_64-system.tar.gz
    env -u LD_LIBRARY_PATH GDK_BACKEND=x11 ./utterform-linux-x86_64-system/bin/utterform
    Quit the installed Utterform first (single-instance application). The test uses the existing user settings; no installer is needed. Do not run the included release installer for a branch preview: it downloads from a release tag that does not exist yet.
  4. Jonas checks General ↔ Recording ↔ AI & Models ↔ Actions ↔ Output, scrolling, compact windows and Save/Cancel. Revise and rebuild only the chosen platform as needed.
  5. After acceptance and authorization to finalize, update the pending release wording, merge the approved revision into main, tag v0.7.8, and let the tag workflow build and publish all three platforms. Verify assets/checksums and macOS signing as usual.

Previous handoff — 0.7.6

Three changes, all built and tested on Linux; the branch is handed over uncommitted for review, the Desktop-builds run, platform checks, signing and the release.

macOS is a menu-bar application for good. LSUIElement = true in Info.plist and ActivationPolicy::Accessory in lib.rs, set before the window can first be shown and never switched back: no Dock icon and no ⌘-Tab entry whether the window is showing or hidden. The RunEvent::Reopen handler stays — it is what a second launch from Finder, Launchpad or Spotlight reaches, since Launch Services starts no second process — and its comment now says so. A launch that asks for the window goes through activation::reveal_main_window on macOS, because an accessory application is not activated for being launched; tao's set_focus does the activation. package-macos.sh refuses a bundle without a boolean LSUIElement. The details and what is still to be seen on a real Mac are in MACOS.md. This touches cfg(target_os = "macos") code, so run Actions → Desktop builds for all three platforms before tagging.

The main window chooses the transcription. The static chip is a SelectMenu with GPT Transcribe, GPT Live Transcribe and Local Whisper, written at once through save_settings as exactly engine and cloud_model — no new setting, no migration; Local Whisper keeps the cloud model chosen before it. The selector is locked while its write is out and while a recording is starting, running, paused or processing; a failed write names itself and returns the two fields to what the backend confirmed. A recording started while the write is out waits for it (transcriptionWork in App.svelte). The local model is only named here, with its absence; choosing and downloading stay in Settings. Below 600 px the two selectors stack; at 360 × 400 they sit side by side again, because a stacked pair pushes the recorder and the output bar out of a 400 px window — that is the one layout judgement call in this change.

The next dictation no longer waits for the Done cue. finish_recording used to await the whole Done cue (lead-in, tone and 300 ms tail, up to the three-second deadline on a slow output) before answering, and the interface sat in processing until then. The cue is now started detached through feedback::DoneCues, batch and live alike, and every real recording start makes it stale before the new start cue is scheduled; see ARCHITECTURE.md for the generation rule. No new backend event was added: the interface already dropped intents during processing and started exactly once afterwards, which the new interface and Playwright tests now pin down. The Playwright and Vitest coverage proves the interface boundary with mocked IPC, not the audio cancellation — that is proven by the feedback.rs tests driving the callback logic without a device, and only a real speaker shows whether the silenced cue is inaudible in practice (expected: at most a click where the tone was cut).

Previous handoff — 0.7.5

macOS releases are Developer ID signed and Apple notarized. Repository secrets form one required set; a partial configuration fails instead of falling back to an ad-hoc signature. The release job verifies the Developer ID authority and Team ID, validates the stapled ticket, asks Gatekeeper to assess the app, then verifies the app again after extracting the ZIP. The tag workflow must pass its repository secrets into the reusable desktop workflow; tagged builds also fail when all six values are absent. Run 34696227610 proved the complete path with Apple status Accepted. The private key and passwords are never stored in the repository.

0.7.4 is superseded. Its tag workflow omitted secrets: inherit; all Apple values were therefore absent and the permissive non-release fallback produced an ad-hoc app. The public release is marked accordingly. Never move that published tag; 0.7.5 carries the workflow fix and the correctly versioned replacement assets.

Still needs a real update test: install 0.7.5 over an earlier Utterform on a Mac that already granted Microphone and Accessibility, then confirm both grants survive. The CI build proves identity, notarization and packaging; an SSH build host cannot exercise TCC dialogs or type into another user's window session.

Previous handoff — 0.7.3

Local Whisper crashed on Linux because the binary was built for the build server. ggml's GGML_NATIVE defaults to ON — -march=native — so GitHub's runner baked its AVX-512 and AMX into the release. On a processor without them the model load dies with SIGILL. Fixed by packaging/cmake/portable-cpu.cmake, reached through .cargo/config.toml. Full evidence in docs/TESTING.md.

Two things to know before touching the whisper build again:

  1. Cargo will not rebuild whisper-rs-sys when that toolchain file changes. cmake-rs emits no rerun-if-env-changed, so the flag only reaches a fresh build. Locally: cargo clean -p whisper-rs-sys --release (the --release matters; without it only the dev profile is cleaned). In CI: raise the -portable-cpu-N suffix on the Swatinem/rust-cache key in both workflows.
  2. Verify the artifact, never the intent. scripts/test-linux-system-package.sh disassembles the packaged binary and refuses AVX-512 or AMX inside a ggml or whisper symbol; local.rs has a test that reads the compiled feature set on every platform. Both were checked against the broken 0.7.2 binary and flag it.

Still open: nobody has transcribed with Local Whisper on a processor without AVX-512 with a fixed build — that is Jonas on the N300. Local Whisper on Windows has never been tried by anyone at all; it had the same fault, so 0.7.3 is the first build that could work there.

Current handoff — 0.7.2

Branch feat/shortcut-autostart-0.7.2, pushed, not tagged. Two features, both built and tested on Linux only: the dictation key is recorded by pressing it, and Utterform can start with the user's session. No release was made — the brief for this work asked for none.

What needs a real desktop, and nobody has given it one. Every platform-specific part of autostart is what tauri-plugin-autostart writes, not something a test here observed:

  • Omarchy/Linux: install 0.7.2, turn the switch on, quit, sign out and in again. Expect a process and a tray icon, no window and no focus taken; the tray opens it; utterform --toggle reaches that same instance. Turn it off and check ~/.config/autostart/Utterform.desktop is gone. Then reinstall over it and confirm an entry that was on still works — it names ~/.local/share/utterform/bin/utterform, resolved when the app starts, and that path does not move on update.
  • macOS: from /Applications, not the mounted DMG — auto-launch refuses a path that does not exist, and the LaunchAgent would name a volume that is gone. After a login, no window and no focus; the tray and the Dock still open it. Try the recorder with ⌃⌥ and ⌘ combinations.
  • Windows: the NSIS build. The entry is under HKCU, so no elevation; after signing in the app is in the tray with no window. Change the key with the recorder.

What the recorder does that a Linux session cannot show: on Windows, macOS and X11 the operating system really is holding the combination, so the field releases it for the seconds it is listening and takes it back afterwards. If a shortcut ever stops working after visiting Settings, that is the place to look — captureHotkey/suspendHotkey in App.svelte, serialized through one promise chain that Save waits on.

One judgement call to know about. The brief asked that a hotkey must not start a recording while Settings is open. It is turned away while the shortcut field is listening, not for as long as the dialog happens to be open: on Wayland the compositor binding is the only way to dictate, and silencing it because a dialog is up would take away the Omarchy workflow the README documents.

Current handoff — 0.6.1

Omarchy Live restart regression (Tony, 2026-09-09): a second GPT Live Transcribe start in the same field could stop at once with "Live typing paused because the target or desktop focus changed", with a workspace reaction around the restart. Diagnosed from the code, Hyprland's sources (KeybindManager::onKeyEvent, FocusState), Omarchy's default bindings and Chromium's Wayland keyboard path; fixed on fix/omarchy-live-focus-0.6.1 and released as 0.6.1. Three verified mechanisms:

  1. live_linux.rs latched every workspace*, focusedmon*, activespecial*, openlayer, submap, configreloaded and monitor event as a permanent target loss (the only source of that message) and queried Hyprland's command socket every 20 ms, including during the OpenAI handshake.
  2. Hyprland resolves bindings for a virtual keyboard by keycode through its own configured layout, with modifiers merged from all keyboards. Utterform's keymap put "ä" on keycode 172 = XF86AudioPlay (Omarchy: play/pause via swayosd, whose OSD layer then fired openlayer), "." on Tab (SUPER+TAB = next workspace), "!"…")" on code:10–18 (SUPER+code:N = workspace N), "-" on Backspace. Text typed while the stop shortcut's Super key is still held therefore switched workspaces.
  3. Chromium on Wayland drops keys without a DOM code (keycode 92 carried "s", 172 "ä") and derives editing from the US meaning of the keycode ("-" on Backspace = DeleteBackward).

Fix: only activewindowv2 with a different non-empty address or closewindow of the target is a loss; an empty active window blocks only text due while it lasts; one Hyprland query per chunk with retries; technical faults worded as such; characters allocated on quiet, DOM-code-backed keycodes (keypad, F13–F19/F24, Intl, legacy keys) before ordinary keys, never Escape/Tab/Backspace/Return/modifiers/F1–F12/navigation/media/print/power; a 700 ms typing hold after every stop request (STOP_HOLD in live.rs); numbered sessions whose worker releases the virtual keyboard and event socket before the next start, with privacy-safe per-session log lines (utterform.log). The input worker is driven through the LiveInput trait so its lifecycle is unit-tested with a fake typer.

Still to confirm on the real Omarchy desktop (Tony): ten Super+D → speak → Super+D → restart in the same field rounds in a native editor, Chromium and an XWayland app; no workspace change, no old or duplicated text; a real window switch still stops insertion; "ä", "s" and "-" arrive in Chromium; the log shows one live session N block per round. If a workspace reaction remains, send the live.* lines of the log (since 0.7.9: Settings → General → Copy diagnostics) — they name the classified Hyprland events without any text.

Build note: the portable CMake described below had been removed from .tools/; it was re-downloaded (official 4.4.3 tarball, SHA-256 verified) into .tools/cmake-4.4.3-linux-x86_64, still ignored by Git. cargo test needs its bin on PATH because whisper-rs-sys builds whisper.cpp with CMake.

Current handoff — 0.4.6

Confirmed on Windows by Jonas on 2026-09-08, on 0.4.6. Paste into Windows Terminal works, the administrator warning shows, changing the dictation key to Alt+C works, and his verdict on Windows overall was "sensationell". Nothing is open on Windows from his side. What remains unconfirmed in words is only the start click with the window in the background (see below); the 0.4.5 log shows it playing.

Jonas's Windows setup, for the next diagnosis: Windows Terminal started as administrator; a Jabra Link 390 headset as the output; a Logitech C270 webcam as the microphone at 48 kHz stereo F32; the log lives at %LOCALAPPDATA%\software.jli.utterform\utterform.log up to 0.7.8 and at %LOCALAPPDATA%\software.jli.utterform\logs\utterform.log from 0.7.9, where Settings → General → Copy diagnostics puts a bounded report on the clipboard; he sends it when asked. Ask for it before theorising: the 0.4.5 round was settled by one log line.

How this was found, for whoever debugs Windows next:

Jonas tested 0.4.5 on Windows within the hour. Paste into Windows Terminal still failed, and his log settled why: pasting into window class "CASCADIA_HOSTING_WINDOW_CLASS" of program "WindowsTerminal" with Shift+Insert on every attempt — recognition and chord were right — and his terminal runs as administrator. That is UIPI: a medium-integrity process cannot inject input into a high-integrity window, and SendInput still returns the full count, so 0.4.5's "Windows blocked the keystrokes" warning could never fire. typing/windows.rs now reads both processes' integrity levels from their tokens (TokenIntegrityLevel, last SID sub-authority: 0x2000 medium, 0x3000 high) and refuses with a warning naming the program when the window outranks Utterform. Do not try to work around UIPI: the only sanctioned route is a code-signed binary with uiAccess="true" installed under Program Files, and the Windows builds are unsigned. The user's options are an elevated Utterform or an unelevated terminal.

The start click may already be fixed. The same log shows start cue played on "Kopfhörer (Jabra Link 390)" … device took the whole cue after ~500 ms on all five recordings, with recording armed ~525 ms after the microphone opened. Not yet known: whether Utterform's window was in the background for those, which is the case that was silent on 0.4.4. Ask before closing the story.

Before 0.4.6

Current handoff — 0.4.5

Jonas's second Windows report, on 0.4.4, the same day: the text pastes everywhere except into a terminal; the start click sounds only when Utterform's own window is in the foreground — behind another window there is nothing, and once the stop click was missing too; and the tray dot should be more discreet.

Windows terminals get Shift+Insert, and every key carries a scan code. typing/windows.rs pressed VK_CONTROL and VK_V with wScan = 0. Classic Win32, GTK, Qt and Chromium windows take that; Windows Terminal reads KeyStatus().ScanCode off the message and asks CoreWindow.GetKeyState for LeftControl and RightControl separately, and a bare VK_CONTROL without a scan code satisfies neither. virtual_key now fills the scan code from MapVirtualKeyW and sets the extended flag on Insert; the chord names VK_LCONTROL / VK_LSHIFT. focused_window reads the foreground window's class and, through QueryFullProcessImageNameW, the program behind it, and paste_for_window in typing/mod.rs recognises a terminal by either — Windows Terminal's class is CASCADIA_HOSTING_WINDOW_CLASS, the console host's ConsoleWindowClass under any shell, Electron terminals only by program. A terminal gets Shift+Insert rather than Ctrl+Shift+V because conhost, PuTTY and ConEmu do not know the latter and all of them know the former. The decision is logged with the class and program, so a window that gets the wrong chord can be named. VS Code is deliberately not a terminal: the whole window pastes on Ctrl+V.

Every cue on its own thread, after the microphone. feedback::start now spawns a thread that opens, plays, finishes and drops the stream and logs the outcome; Playback is a receiver for the result. audio::start_recording opens the microphone first and starts the cue after stream.play(). commands::start_recording is async and does its work in spawn_blocking, so none of it runs on the main thread any more — a synchronous Tauri command does, and on Windows that is WebView2's thread. arm logs unconditionally with the time since the microphone opened.

What is not settled: why the foreground mattered. Nothing in WASAPI cares which window is in front. Candidates, in the order to check: the cue thread and stream living on the main thread (removed now); the microphone opening reconfiguring the output device — a Bluetooth headset dropping to its hands-free profile silences the A2DP stream the cue was on, and this also explains a stop click going missing when the profile switches back late (order changed now, so the cue opens on whatever the device has become); Windows' communications ducking, Sound → Communications → "Mute all other sounds", which starts when a capture stream opens on the default communications device; and Windows 11 timer coalescing for processes whose windows are not visible, which should not touch an event-driven WASAPI stream but has not been ruled out.

What to ask Jonas, and what the log will say. Which speaker and which microphone — laptop, dock, Bluetooth headset — and whether they are the same device. Then: Settings → Recording → Recording feedback → Test sounds (5s delay), switch to another window, and read the result. All three play → the cue path is fine in the background and the microphone is the culprit; then try Sound → Communications → Do nothing, and a wired microphone. None play → the cue path itself is blocked in the background; the log line says whether the stream opened and how long the device took. The log is %LOCALAPPDATA%\software.jli.utterform\utterform.log; every real recording writes microphone … open after, start cue played on … or start cue not played: …, and recording armed … ms after the microphone opened. For the terminal: which terminal program, and whether a physical Shift+Insert pastes there.

The tray dot is a third of the size, without the ring. recording_badge in tray.rs: radius 0.19 of the side, 0.06 margin, one pixel of anti-aliasing, no white ring — the corner it sits in is the icon's dark surface. Still six pixels across at 16. If Jonas wants it quieter still, the next step is tinting the microphone capsule rather than adding anything.

Windows cannot be compiled here. cargo check --target x86_64-pc-windows-msvc fails in ring's build script for want of a C compiler for that target. Run Actions → Desktop builds on the branch, windows for a quick answer and all before tagging.

Before 0.4.5

Current handoff — 0.4.4

Jonas tested 0.4.3 on Windows the same afternoon. Three findings, all fixed here; the first was a blocker.

An Xrun is a glitch, not a failure. After re-plugging a docking station and microphone, every recording ended with "Microphone stream failed: A buffer underrun or overrun occurred." cpal's WASAPI backend emits ErrorKind::Xrun whenever a capture packet carries AUDCLNT_BUFFERFLAGS_DATA_DISCONTINUITY — a note that a few milliseconds are missing from a stream that carries on. build_input_stream's error callback stored every error as fatal, and finalize discarded the recording over it. note_stream_error in audio.rs now counts an Xrun and fails only on the rest. macOS raises the same kind from a processor-overload listener, so this was waiting there too. Do not turn the glitch count into a UI warning: some Windows drivers set the flag on every recording and the warning would be noise.

The start click was too quiet for a laptop speaker. Calibrated at 0.12 for headphones; now 0.26 and 70 ms, about 6 dB over Stop, with a slower decay. Stop and Done are unchanged on purpose — Jonas hears them fine and the contrast is the point.

The tray shows recording. tray::set_recording is called from the four places capture starts or ends in commands.rs: start, finish, cancel, and the limit watchdog. The badge is recording_badge, drawn over the app icon at runtime — a second icon file would drift. Linux goes through the ksni handle's update, which emits NewIcon; Windows and macOS through tray_by_id(NATIVE_TRAY), which is why the native tray now has an id. Windows 11 hides new tray icons behind the overflow arrow until the user pins them; the README says so.

Confirmed on Windows by Jonas on 2026-09-08, on 0.4.4: recording through the re-plugged dock and microphone works again, and the tray dot shows. The start click is still missing on Windows. At the new level, so this is not audibility — the stop click, through the same speaker, is fine. That is where the next session starts.

What is known: no notification appeared, so arm most likely returned Ok — the device took every sample and finish returned normally — and nothing was heard. Stop, through play_detached, works. The two cues differ in exactly three ways, and the job is to bisect them:

  1. When the stream is opened. Start's output stream is opened before the microphone, Stop's after capture has ended. Try Start through play_detached after stream.play() (accepting it may land in the recording for the experiment) — if it sounds, the answer is in what opening WASAPI capture does to a render stream opened moments earlier.
  2. Which thread opens it. Start is opened on the Tauri command thread and finished on a spawned one; Stop is opened and finished on one fresh thread. cpal initialises COM per thread; a WASAPI stream created on one thread and dropped on another is worth ruling out.
  3. The waveform. Different frequency, gain and length — least likely, since the Linux fix works with the same code.

First step before any of that: log the outcome of arm unconditionally with the time finish took, so a Windows run says which branch it went down instead of leaving it to inference. The AirPods-on-Linux case is fixed and should not be regressed while doing this.

Before 0.4.4

Current handoff — 0.4.3

0.4.3 is one fix: the start click was missing on AirPods. Jonas found it dictating with the window hidden, where that click is the only feedback there is.

The cause was not Bluetooth. His microphone was the internal one, so no profile switch was involved. An idle output device suspends, and waking one costs a few hundred milliseconds before it makes any sound; feedback.rs gave the cue 500 ms and then closed the stream, which discards whatever the device still holds. The stop click survived because by then the speaker was awake. Confirmed by Jonas on 2026-09-08: playing a YouTube video first, so the sink was already running, made the start click appear every time.

The rule this leaves behind: a cue is finished when the device says so, not when a timer says so. Every cue now has a 60 ms silent lead-in for a device that discards its first samples and a 300 ms tail for one that buffers, and Playback::finish waits for the callback to take all of it. Do not shorten the tail to make something feel snappier — that is the bug.

Capture now waits for the cue instead of the other way round. The microphone opens first and discards through the armed gate until the start cue has played. That is what keeps the cue out of its own recording, now that the cue may take longer than the 500 ms it used to be allowed. The recording clock restarts at arming, so the ten-minute limit still counts kept audio.

Cue failures are reported. feedback::play returns a reason, and the one that used to look like success — an output sample format we cannot write — is an error now. announce_recording in commands.rs raises a desktop notification only when the start cue could not be played at all; it is not a second confirmation channel, and adding one would defeat the point of a quiet click.

Untested on real hardware other than Jonas's: the fix is platform-independent Rust and the same code runs everywhere, but the AirPods case that motivated it can only be confirmed on his machine.

Before 0.4.3

Current handoff — 0.4.2

0.4.2 hands the prompts to whoever installed the app. Jonas asked for it directly: the five shipped actions are fine as defaults, but the people who download Utterform must be able to adapt them.

The shipped prompts live in actions.rs and nowhere else. The interface fetches them through list_built_in_actions instead of keeping a copy, so what Settings shows, what Reset restores and what a recording runs cannot drift apart. action_overrides stores only what the user replaced, name and prompt independently, so an action that was merely renamed still benefits when we improve its instructions. A blank replacement resolves back to the default rather than failing the recording that used it. Resolution is in Rust, with the settings finish_recording already loads, which is why the tray, the dictation key and --toggle run the edited prompts without the frontend sending prompt text.

Vocabulary is one field feeding two engines. GPT Transcribe takes it as keywords[]; local Whisper takes it joined as initial_prompt. The API refuses a keyword containing <, >, CR or LF and refuses the whole request with it, so the interface names a term it would drop and usable_keywords filters again before sending. text_effort becomes reasoning.effort and is sent only when chosen — Auto keeps 0.4.1 behaviour and cannot be rejected by a model that does not offer the level.

Settings is a tablist now — since 0.9.0 Recording, Transcription, AI, Output, App. Tests reach a control by clicking its tab first; showSettingsTab in src/App.test.ts is the way in.

gpt-transcribe has no effort parameter. Jonas asked for one alongside the vocabulary; the current API gives transcription keywords, prompt and languages and nothing else. Effort is reasoning.effort on the Responses call that runs Clean/Polish/Summarize/Prompt/Email, which is where it now sits — under AI → Text model, not under the microphone. Do not move it back without re-reading the transcription reference.

v0.4.2 is published and its assets independently verified (release run 34138984113, all three platforms, from d1461a5). This is the state to build on and debug from; the next session starts here.

Not yet used by a person: everything in 0.4.2. It is tested (70 Rust, 53 Vitest, 11 Playwright) but the words that matter — does a rewritten prompt read the way Jonas wants, is the Email default worth keeping as shipped, does "Careum" come back spelled correctly once it is in the vocabulary — are for a real recording to answer. The reasoning-effort levels have never been sent to a live model either. Start the next session by asking Jonas what his own use turned up, before adding anything.

Before 0.4.2

0.4.0 made dictation work without the window, on Omarchy. 0.4.1 gives Windows and macOS the same key and fixes the text arriving damaged.

One intent, two ways in. hotkey.rs reserves a key combination where the platform grants one — Windows, macOS, Linux under X11 — and emits the same remote-intent event that a compositor binding produces through cli.rs and the single-instance plugin. The interface therefore keeps exactly one recording state machine. Wayland registers nothing and Settings says what to bind instead. The plugin is installed from setup, not at build time: a host that will not create a hotkey manager must cost the dictation key, not the application.

Typing at the cursor pastes by default. Jonas reported terminals losing letters — "Session" arriving as "ession" — while a manual paste of the same text was intact. That is delivery, not transcription: keystrokes cross the compositor, the input method and the target application one character at a time, and any of them can drop or reorder one. A paste moves the whole text at once. typing/ chooses the chord from the focused window's class, because Ctrl+Shift+V pastes in a terminal and does something else entirely in a browser or an editor.

Keystrokes stay selectable, with the two documented fixes: a leading Shift_L press/release for the Wayland clients that swallow the first character a fresh virtual keyboard sends, and a delay between keys.

Windows types through SendInput. No helper program, Unicode rather than scan codes, one atomic call per batch. typing/mod.rs holds the text→key rule so it is tested on every platform; typing/windows.rs holds only the unsafe glue.

Confirmed on Omarchy by Jonas on 2026-09-07. The dropped letters are gone: the finished text arrives in the focused window intact. v0.4.1 is published and its assets independently verified. This is the state to build on and debug from; the next session starts here.

Platform reality — do not assume parity

All three platforms have now been exercised by a person; macOS since 0.7.0 beta 1, confirmed by Jonas on a MacBook Air (M2, macOS 26) on 2026-09-10. Windows cannot be compiled on the Linux development machine (ring's build script needs a C compiler for the target), so every change to cfg(target_os = "windows") code is verified through Actions → Desktop builds on the branch before it is tagged.

Linux / Omarchy macOS Windows
Typing at the cursor, as a paste works, confirmed 2026-09-07 works, confirmed 2026-09-10 (0.7.0 beta 1), ⌘V after the Accessibility grant works, confirmed 2026-09-08 (0.4.6), Windows Terminal included; elevated windows are refused with a warning
Typing at the cursor, as keystrokes 0.4.0 worked; not re-tested since the Shift tap and delay implemented in 0.7.0 beta 1; Jonas confirmed typing without saying which method implemented, never tried by a person
Reserved dictation key n/a under Wayland, by design works, confirmed 2026-09-10, including changing it in Settings works, confirmed 2026-09-08, including changing it in Settings (Alt+C)
utterform --toggle reaching the running app works, confirmed plugin supports it, never tried plugin supports it, never tried — the key is what Jonas uses
Binding it to a key bind = in hyprland.conf Settings → Dictation key Settings → Dictation key
Tray click opens the window works, confirmed never tried the recording dot is confirmed (0.4.4, smaller since 0.4.5); the click was not mentioned
Recording, transcription, clipboard, file works, confirmed works, confirmed 2026-09-10 (microphone dialog, GPT Transcribe, Local Whisper); 0.6.1 never asked for the microphone works, confirmed 2026-09-08 (dock and webcam microphone, Jabra headset)

Jonas tested Windows on 2026-09-08 across 0.4.4 to 0.4.6; the answers are in the handoffs above. If a paste does not arrive in some window, read the typing.paste event in the log first (pasting into window class … before 0.7.9): it names the class, the program and the chord. An elevated window is refused by design; an unrecognised terminal is added to typing::TERMINALS; the last fallback is Settings → Output → Typing at the cursor → Keystrokes.

The misleading "needs a graphical session" message on Windows is gone — the platform is implemented. macOS typing arrived in 0.7.0 beta 1; what it needs and how it is built on the Mac mini is in MACOS.md.

Waiting, not released

Pull request #8 (feat/robustness-and-models, CI green, mergeable) carries two things Jonas asked for but has not released, because he wanted to test 0.4.0 first:

  • Robustness: a command answers even when its work panics (resilience.rs), bounded retries with backoff for rate limits and server faults (openai::retry_delay), and a 30-minute ceiling in the interface (lib/ceiling.ts).
  • The larger offline models: Medium, Large v3 Turbo, and the quantized Large v3 Turbo.

It bumps the version to 0.4.1, which is already released. Jonas asked for the Windows dictation key as 0.4.1 and asked for it first; 0.4.2 is now taken as well. Re-target #8 to 0.4.3 before merging it; do not release it unasked.

Windows distribution — signing and winget

Windows builds are unsigned, and staying unsigned is a deliberate decision, not an oversight. Researched on 2026-09-07 for Jonas as a Swiss sole proprietor (Einzelfirma):

  • Azure Artifact Signing (the renamed Azure Trusted Signing) is the cheapest CI-capable route at roughly CHF 100/year, but Microsoft restricts Individual Developer accounts to the USA and Canada. A Swiss Einzelfirma only qualifies through Organization identity validation, which requires an Azure billing account of that type and an officially verifiable registration. Not confirmed for this business; it has to be tested by actually running the validation.
  • SSL.com EV Sole Proprietor + eSigner (roughly CHF 485/year) is the fallback that explicitly covers sole proprietors, lists Switzerland, and documents GitHub Actions.
  • Signing does not silence SmartScreen immediately in any case. Reputation accrues to the signing identity over downloads.

The decision: do not buy a certificate at current download volumes. Revisit if users report abandoning the install because of the warning.

Instead, distribute through winget, which is free and needs no certificate. Manifests for 0.4.2 are prepared and validated in packaging/winget/; see that directory's README for the submission command and what is still open. The package is not submitted yet, so the README must not advertise winget install until the pull request is merged.

Then

Ordered as Jonas chose: robustness (in #8) before streaming. After that, file streaming and the vocabulary, then longer recordings and GPU acceleration. File streaming and realtime transcription are different projects and only the first is planned for 0.4.

Running the tests

dbus-run-session -- cargo test --manifest-path src-tauri/Cargo.toml. The tray activation test needs a session bus of its own; plain cargo test fails without one.

The Windows-only code cannot be checked with cargo check --target x86_64-pc-windows-msvc: ring's build script needs an MSVC toolchain. Type-check typing/windows.rs against the real API by compiling it in a throwaway crate that depends only on windows-sys, with the Tauri and domain layers stubbed out.

The hotkey tests deliberately avoid tauri::test::mock_app: adding tauri = { features = ["test"] } as a dev-dependency made the Windows test binary fail to start with STATUS_ENTRYPOINT_NOT_FOUND, the same class of dev-feature unification problem as the 0.3.4 ksni/zbus regression. Keep the decisions out of the AppHandle — a pure support_with(failure) and a Failure that records and reports on its own — so the tests need no runtime at all.

A green local Clippy says nothing about the other platforms. cargo clippy -- -D warnings on Linux compiles only the cfg(target_os = "linux") items, so anything the Linux backend alone uses looks alive here and is dead code — a hard error — on Windows and macOS. That failed the first v0.4.1 release run after the tag was already pushed. Whenever a change adds or moves cfg(target_os) code, run Actions → Desktop builds on the branch for all before tagging. It runs the same fmt/Clippy/test steps on all three platforms and publishes nothing.

Current handoff — 0.3.4

0.3.3 broke GPT Transcribe and 0.3.4 fixes it. The lesson is about Cargo feature unification: ksni's tokio feature switched zbus to zbus/tokio build-wide, and the keyring's blocking zbus calls then panicked inside Tauri's async runtime. Keep ksni on async-io, and check cargo tree -e features -i zbus before adding any dependency that speaks D-Bus.

Current handoff — 0.3.3

Utterform is single-instance (0.3.2) and owns its Linux tray icon (0.3.3). Every path that opens the window — tray click, tray menu, a second launch from the app drawer — goes through activation::reveal_main_window.

The Linux tray is a ksni StatusNotifierItem, not AppIndicator, because AppIndicator exposes no Activate and therefore cannot report a left click. Tauri's native tray remains for Windows/macOS and as the Linux fallback when no StatusNotifierItem host answers. Run the Rust suite as dbus-run-session -- cargo test: the tray activation test needs a session bus of its own.

Confirmed on Omarchy by Jonas on 2026-09-07: a left click on the tray icon opens Utterform. The ksni path works on the real desktop, not only against the test's D-Bus watcher.

Still to confirm by hand: that launching Utterform a second time from the app drawer focuses the running instance instead of starting another.

Current handoff — 0.3.1

Published and verified: Utterform 0.3.1 is Latest, source 368bdc7, branch feat/compact-recorder-0.3.1 (not merged into main). The release run passed all three platforms and published all six assets plus checksums. Independently downloaded assets, isolated Linux installation, Windows GUI subsystem and real-Mac DMG/ZIP strict signatures passed. See release notes and testing for validation/publication status. The tray popup remains a discussion proposal, not part of this release.

Latest text is a collapsed disclosure by default, leaving the copy button visible. The native result includes copiedToClipboard from actual delivery, never inferred from requested settings. Automatic and manual copying show a short checkmark confirmation; stale asynchronous copy replies cannot label a different history entry as copied. Manual Copy stays visible but is disabled while recording/processing; an outstanding manual write drains before a new recording starts. A native two-note Done cue follows successful transform and all requested outputs; history-only failure does not suppress delivery success. All cues follow the existing sound preference.

The floating-window minimum is now 360 × 400. Stop and Pause share a control group; short/narrow layouts reduce secondary hints while preserving recording controls, output and copy. Expanded history/settings can scroll. Ambient recording motion and reduced-motion preferences remain intact.

The 0.3.0 ARM macOS artifact was tested on a real Mac and failed strict signature verification: its executable had only a linker signature and the app resources were unsealed. New macOS builds explicitly ad-hoc sign the assembled bundle before packaging, then verify signatures in the app, mounted DMG and extracted ZIP. This fixes a verified packaging defect, not Apple trust/notarization. Intel builds are removed; Apple Silicon requires macOS 11+.

0.2.0 Beta scope

  • Remove native window decorations on Omarchy only; preserve other platforms' window controls.
  • Subtle violet/blue, large-area, microphone-responsive recording motion, respecting reduced-motion preferences.
  • Short start/stop sounds; styled action and file-format menus.
  • Persistent, locally titled recent texts, a compact history selector, and copy-again button/shortcut.
  • Verify microphone capture continues across focus changes and when the window is hidden.
  • Publish unsigned Linux, macOS, and Windows binaries through Actions.
  • No automatic Omarchy theme switching in this iteration. Global recording shortcuts remain separate from background microphone capture.

Initial audit

The app uses Svelte 5/TypeScript and Tauri 2/Rust, with CPAL microphone capture. Focus changes do not stop capture, but the current close-to-tray handler explicitly cancels it. The frontend currently discards its last text when starting another recording and keeps no persistent history. Release automation currently publishes Linux packages only.

Implemented for 0.2.0

History, themed menus, copy-again controls, responsive ambient motion, optional native cues, Omarchy decorations, and background/close-to-tray capture are implemented. Local checks pass: Svelte/TypeScript, 9 component/unit tests, 16 Rust tests, Clippy, and production-bundle browser tests. Browser screenshots have been inspected in light/dark themes, at 920×720 and 720×620, including reduced motion and menu overlays. Browser tests use synthetic IPC, never the user's microphone, credentials, or clipboard.

Browser validation: npx playwright install chromium, then npm run test:e2e. For an existing local Chromium installation use PLAYWRIGHT_CHROMIUM_EXECUTABLE=/usr/bin/chromium npm run test:e2e. Visual artifacts are written below ignored test-results/.

On the initial Linux development machine CMake was missing. An official, SHA-256-verified portable CMake was extracted into ignored .tools/cmake-4.4.3-linux-x86_64; prepend its bin directory to PATH for native builds. No system configuration was changed.

Release workflow

Versions are synchronized across npm, Cargo (including lockfiles), Tauri, the installer and docs. Settings reads the package version automatically.

The release title appears once. docs/releases/<tag>.md opens with # Utterform X.Y.Z — …, which release:check requires and the docs link to. The Release workflow takes that line as the GitHub release title and publishes the file without it as the body, because GitHub shows the title above the body already; 0.3.x to 0.4.5 had it twice, and Jonas asked on 2026-09-08 that it stop. Do not repeat the title inside the body, and do not remove it from the file.

Push/PR CI runs frontend checks, production UI tests and native Linux fmt/Clippy/tests, without release-profile compilation or packaging. Desktop builds is manually runnable for Linux, Windows, macOS or all; it produces artifacts but never publishes. Manual dispatch becomes available only after the workflow reaches the default branch; tag releases already call it directly from their tagged source. The tag-triggered Release workflow validates metadata and calls Desktop builds once for all three supported targets. It requires all six binary/installer assets plus a combined checksum manifest before publication. Normal vX.Y.Z is Latest; explicit prerelease tags do not replace Latest. Stable download filenames are retained.

For each completed change set, update package.json/package-lock.json, Cargo.toml/the Utterform Cargo.lock entry, tauri.conf.json, the Linux installer's default tag, README, changelog and docs/releases/<tag>.md. Run npm run release:check -- <tag> and the normal test suite, commit/push, then create and push the new tag. Wait for the Release workflow and verify its downloadable checksums/asset set. Never move a published tag; use a new version for later corrections. Validation-only follow-up documentation for an already verified release does not need an otherwise identical new application release.

Before starting work on another device/assistant, pull main, read this file, CHANGELOG.md, and docs/ARCHITECTURE.md, and inspect the latest Actions result. Project-wide decisions stay here; machine-specific setup and user data stay outside Git.

The four-target CI run passed, including all installers/archives. The downloaded Linux CI binary also passed an isolated native startup/tray-Quit smoke test. See TESTING.md for exact coverage and an open, intermittent WebKit subprocess shutdown observation on the local Omarchy runtime. No fix for that non-reproducible observation is claimed.

Beta 1 was published with all assets and verified checksums. Final asset inspection found its Windows executable used the console PE subsystem. Beta 2 corrects that desktop-only issue and adds a binary-level CI assertion; Beta 1's tag is left intact. Previous published release: v0.2.0-beta.2. All four release jobs passed; all downloaded assets, the Linux installer, the Windows GUI subsystem, and both macOS architectures were verified. The next work is beta-user feedback and the open WebKit shutdown observation in TESTING.md, not unfinished release packaging.

Native interactive microphone/speaker and macOS/Windows desktop tests must be distinguished from mocked browser tests and cross-platform compilation.