Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

fix(transcription): give the model-registry JSON import its type attribute (#1933)

Gabriel Steinca97c0b1a187
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ab7007a99..4f2b42e0e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,9 +7,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+## [1.9.2] - 2026-08-29
+
+A repair release for two 1.9.1 regressions. Windows desktop sign-in works again — every provider button had gone dead — and the three transcription paths that only failed in packaged builds are back on all platforms. Meeting prompts also pick up swipe-to-dismiss.
+
+### Windows
+
+- **Desktop sign-in works again.** Since 1.9.1, clicking Google, Microsoft, Apple, or SSO on Windows showed a spinner and then nothing. Browser links were routed through `explorer.exe`, which silently opens a File Explorer window instead of the browser for any URL carrying a query string — and every sign-in URL carries one. Connecting a calendar, opening Stripe checkout, and following tagged outbound links broke the same way. Those links now open directly; the ones `explorer.exe` can deliver still go through it, so meeting recordings keep capturing the audio of a browser launched from a meeting link. (#1932)
+
+### Transcription
+
+- **Three transcription paths failed in packaged builds.** A model-registry import added in 1.9.1 was missing the attribute Node's module loader requires for JSON, so xAI dictation, re-transcribing a saved recording, and bring-your-own-key file uploads threw `needs an import attribute of "type: json"` on Windows, macOS, and Linux while ordinary dictation kept working. Development builds inline that import, which is why it reached release. (#1908)
+
### Meetings
-- **Meeting prompts swipe away like desktop notifications.** A horizontal pointer swipe of 80px in either direction dismisses a meeting card — detection, calendar reminder, or the auto-end restart offer — taking the same path as its close button. Swipes that start on an action button are ignored.
+- **Meeting prompts swipe away like desktop notifications.** A horizontal pointer swipe of 80px in either direction dismisses a meeting card — detection, calendar reminder, or the auto-end restart offer — taking the same path as its close button. Swipes that start on an action button are ignored. (#1906)
## [1.9.1] - 2026-08-27
diff --git a/package-lock.json b/package-lock.json
index 332afb8eb..d67a7fac0 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "open-whispr",
- "version": "1.9.1",
+ "version": "1.9.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "open-whispr",
- "version": "1.9.1",
+ "version": "1.9.2",
"hasInstallScript": true,
"license": "MIT",
"dependencies": {
diff --git a/package.json b/package.json
index 52f7abd5b..6adbe7401 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "open-whispr",
- "version": "1.9.1",
+ "version": "1.9.2",
"description": "A desktop dictation application using whisper.cpp for speech-to-text transcription",
"main": "main.js",
"private": true,
diff --git a/src/stores/policyRules.ts b/src/stores/policyRules.ts
index 383b19113..f947f6bde 100644
--- a/src/stores/policyRules.ts
+++ b/src/stores/policyRules.ts
@@ -5,7 +5,7 @@ import { compareAppVersions } from "../utils/version.ts";
// The registry JSON directly (like policyValidation.js), NOT ModelRegistry:
// that module pulls the settings/identity stores, whose module scope needs
// real browser globals, and this file is imported by node-run sync tests.
-import modelRegistryData from "../models/modelRegistryData.json";
+import modelRegistryData from "../models/modelRegistryData.json" with { type: "json" };
export type PolicyStatus = "idle" | "loading" | "managed" | "unmanaged" | "error";
diff --git a/test/helpers/mainProcessEsmEntries.test.js b/test/helpers/mainProcessEsmEntries.test.js
new file mode 100644
index 000000000..813ee914d
--- /dev/null
+++ b/test/helpers/mainProcessEsmEntries.test.js
@@ -0,0 +1,27 @@
+const test = require("node:test");
+const assert = require("node:assert/strict");
+const path = require("node:path");
+const { pathToFileURL } = require("node:url");
+const { spawnSync } = require("node:child_process");
+
+// ipcHandlers.js reaches raw .ts through Electron's bare Node ESM loader, which
+// rejects JSON imports without `with { type: "json" }`. The suite runs under
+// tsx, which resolves them anyway, so importing these from a normal test proves
+// nothing — each entry needs a child process with no loader hooks (#1908).
+const MAIN_PROCESS_ESM_ENTRIES = ["src/helpers/transcriptionRoute.ts"];
+
+const repoRoot = path.resolve(__dirname, "../..");
+const bareEnv = { ...process.env };
+delete bareEnv.NODE_OPTIONS;
+
+for (const entry of MAIN_PROCESS_ESM_ENTRIES) {
+ test(`${entry} imports under a bare Node ESM loader`, () => {
+ const specifier = pathToFileURL(path.join(repoRoot, entry)).href;
+ const result = spawnSync(process.execPath, ["-e", `import(${JSON.stringify(specifier)})`], {
+ env: bareEnv,
+ encoding: "utf8",
+ });
+
+ assert.equal(result.status, 0, result.stderr);
+ });
+}