GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(web): make first-run dictation setup discoverable by juliusmarminge · Pull Request #32197 · pingdotgg/t3code

fix(web): make first-run dictation setup discoverable #32197

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
juliusmarminge merged 12 commits into voice/cloud-byok from voice/first-run-setup
Nov 7, 2026

Uh oh!

There was an error while loading. Please reload this page.

Merged

fix(web): make first-run dictation setup discoverable #32197

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit Hold shift + click to select a range
b861b80
fix(web): make first-run voice setup reachable
voltcrash Nov 6, 2026
aa4a427
test(voice): first-run mic and settings reach voice setup
juliusmarminge Nov 6, 2026
7ca4c07
fix(voice): first-run mic and settings reach voice setup
juliusmarminge Nov 6, 2026
7ce3d70
fix(voice): respect Off and reveal the first setup transcript
juliusmarminge Nov 6, 2026
2b38e1b
fix(voice): integrate the first-run dictation takeover
juliusmarminge Nov 6, 2026
55a6af8
fix(voice): keep explicit Off through first-run cloud setup
juliusmarminge Nov 6, 2026
e21adf5
fix(web): read the current model from the resolved audio choice
juliusmarminge Nov 6, 2026
778421d
fix(web): refresh the model card after its setup download
juliusmarminge Nov 6, 2026
94a285b
test(voice): make sure setup never opens the microphone
juliusmarminge Nov 6, 2026
986061b
Merge the cloud dictation logo fix into first-run setup
juliusmarminge Nov 7, 2026
dd03ff2
fix(web): remove the extra setup step from the voice model list
juliusmarminge Nov 7, 2026
6d79ff4
docs(voice): clarify where the first-run shortcut opens settings
juliusmarminge Nov 7, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Prev Previous commit
Next Next commit
fix(web): remove the extra setup step from the voice model list
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge
juliusmarminge committed Nov 7, 2026
commit dd03ff23a2e32c7478aac721178c6c9d4448f1b5

There are no files selected for viewing

142 changes: 18 additions & 124 deletions 142 apps/web/src/components/settings/VoiceSettingsPanel.browser.test.tsx
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
type EnvironmentSpeechModel,
type EnvironmentSpeechStatus,
} from "@t3tools/contracts";
import { useState } from "react";
import { expect, it, vi } from "vite-plus/test";
import { userEvent } from "vite-plus/test/browser";
import { render } from "../../../test/render";
Expand Down Expand Up @@ -72,7 +71,7 @@ vi.mock("../../connection/runtime", async () => {
};
});

it("preserves the model test transcript when its model is filtered out", async () => {
it("tests the selected model after download and preserves its transcript across filters", async () => {
const target = new PrimaryConnectionTarget({
environmentId: EnvironmentId.make("voice-filter"),
label: "Test environment",
Expand Down Expand Up @@ -107,15 +106,23 @@ it("preserves the model test transcript when its model is filtered out", async (
modelUnloadTimeout: "never",
gpuDevices: [],
} satisfies EnvironmentSpeechStatus;
let installed = false;
const fetch = globalThis.fetch;
using _network = vi.spyOn(globalThis, "fetch").mockImplementation((input, init) => {
const url = new URL(input instanceof Request ? input.url : input, window.location.href);
if (url.pathname === "/api/voice/status") return Promise.resolve(Response.json(status));
if (url.pathname === "/api/voice/status")
return Promise.resolve(
Response.json(installed ? status : { ...status, state: "missing-model" }),
);
if (url.pathname === "/api/voice/models/download") {
installed = true;
return Promise.resolve(Response.json({ models: [model] }));
}
if (url.pathname === "/api/voice/models")
return Promise.resolve(
Response.json({
models: [
model,
installed ? model : { ...model, state: "downloadable", active: false },
{
...model,
id: "both",
Expand All @@ -140,6 +147,7 @@ it("preserves the model test transcript when its model is filtered out", async (
return fetch(input, init);
});
const transcript = "Keep this transcript.";
using _scope = vi.mocked(useEnvironmentScope).mockReturnValue(true);
await vi.mocked(useVoiceTranscriptionDestination).withImplementation(
() => ({ environmentId: target.environmentId, label: target.label, grantId: "test", prepared }),
async () => {
Expand Down Expand Up @@ -181,7 +189,13 @@ it("preserves the model test transcript when its model is filtered out", async (
</SettingsScopeProvider>,
);
const testModel = screen.getByRole("button", { name: "Test model", exact: true });
const download = screen.getByRole("button", { name: "Download", exact: true });
await expect.element(download).toBeVisible();
expect(testModel.query()).toBeNull();
expect(screen.getByRole("button", { name: "Set up voice input" }).query()).toBeNull();
await userEvent.click(download);
await expect.element(testModel).toBeVisible();
expect(screen.getByRole("button", { name: "Set up voice input" }).query()).toBeNull();
await userEvent.click(testModel);
const result = screen.getByRole("status", { name: "Test transcript" });
await expect.element(result).toHaveTextContent(transcript);
Expand Down Expand Up @@ -209,126 +223,6 @@ it("preserves the model test transcript when its model is filtered out", async (
);
});

// A fresh destination has not downloaded its selected model, and a French browser filters an
// English-only model out of the catalog. Setup must still be one click away.
it("opens the selected model's setup wizard before it is downloaded or listed", async () => {
using _languages = vi.spyOn(navigator, "languages", "get").mockReturnValue(["fr-FR"]);
const target = new PrimaryConnectionTarget({
environmentId: EnvironmentId.make("voice-first-run"),
label: "Test environment",
httpBaseUrl: window.location.origin,
wsBaseUrl: "ws://localhost",
});
const prepared = { ...target, target, socketUrl: target.wsBaseUrl, httpAuthorization: null };
let installed = false;
const model: EnvironmentSpeechModel = {
id: "tiny",
name: "Tiny",
description: "",
size: 100,
languages: ["en"],
accuracy: 1,
speed: 1,
recommended: true,
supportsStreaming: false,
supportsTranslation: false,
supportsLanguageDetection: false,
active: false,
state: "downloadable",
};
const status = {
supported: true,
state: "missing-model",
modelId: model.id,
model: model.name,
size: model.size,
supportsStreaming: false,
supportsTranslation: false,
acceleration: "cpu",
modelUnloadTimeout: "never",
gpuDevices: [],
} satisfies EnvironmentSpeechStatus;
const fetch = globalThis.fetch;
using _network = vi.spyOn(globalThis, "fetch").mockImplementation((input, init) => {
const url = new URL(input instanceof Request ? input.url : input, window.location.href);
if (url.pathname === "/api/voice/status") return Promise.resolve(Response.json(status));
if (url.pathname === "/api/voice/models")
return Promise.resolve(
Response.json({
models: [
installed ? { ...model, state: "installed", active: true } : model,
{ ...model, id: "both", name: "Bilingual", languages: ["en", "fr"] },
],
}),
);
return fetch(input, init);
});
using mocks = new DisposableStack();
mocks.defer(() => vi.mocked(useEnvironmentScope).mockReset());
vi.mocked(useEnvironmentScope).mockReturnValue(true);
mocks.defer(() => vi.mocked(useVoiceTranscriptionDestination).mockReset());
mocks.defer(() => vi.mocked(useEnvironmentSpeechInput).mockReset());
vi.mocked(useVoiceTranscriptionDestination).mockImplementation(() => ({
environmentId: target.environmentId,
label: target.label,
grantId: "test",
prepared,
}));
// Mirrors the hook: starting with a missing model opens the wizard instead of recording.
vi.mocked(useEnvironmentSpeechInput).mockImplementation((input) => {
const [open, setOpen] = useState(false);
const [ready, setReady] = useState(false);
return {
available: true,
status,
transcriptionEnvironmentId: target.environmentId,
transcriptionEnvironmentLabel: target.label,
setup: {
open,
step: ready ? 1 : 0,
model,
downloading: false,
error: null,
setOpen,
download: async () => {
installed = true;
setReady(true);
},
cancelDownload: async () => {},
startRecording: async () => {
input.commitDraft("microphone test", { start: 15, end: 15 });
setOpen(false);
},
},
state: { phase: "idle", error: null, errorAction: null },
preview: null,
level: 0,
preparing: false,
blocksSubmission: false,
freezesEditor: false,
start: async () => setOpen(true),
submitAfterDictation: () => {},
stop: async () => {},
cancel: () => {},
skipPostProcessing: () => {},
};
});
await using screen = await render(
<SettingsScopeProvider search={{}} onChange={() => {}}>
<VoiceSettingsPanel />
</SettingsScopeProvider>,
);
await expect.element(screen.getByText("Bilingual", { exact: true })).toBeVisible();
await userEvent.click(screen.getByRole("button", { name: /set up voice input/i }));
await expect.element(screen.getByRole("dialog", { name: "Set up voice input" })).toBeVisible();
await userEvent.click(screen.getByRole("button", { name: "Download model" }));
await userEvent.click(screen.getByRole("button", { name: "Start dictating" }));
await expect
.element(screen.getByRole("status", { name: "Test transcript" }))
.toHaveTextContent("microphone test");
await expect.element(screen.getByText("Selected", { exact: true })).toBeVisible();
});

it("loads the models of a relay-connected destination", async () => {
const target = new RelayConnectionTarget({
environmentId: EnvironmentId.make("voice-relay"),
Expand Down
Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402809 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.