Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
feat(dictation): the translate card names its provider and takes the key
Harald22e3aaf7e0c6
diff --git a/jarvis/ui/web/dictation_routes.py b/jarvis/ui/web/dictation_routes.pyindex 64a3437719..82cd72891b 100644--- a/jarvis/ui/web/dictation_routes.py+++ b/jarvis/ui/web/dictation_routes.py@@ -951,6 +951,66 @@ def delete_history_entry(entry_id: str) -> dict[str, Any]:# ----------------------------------------------------------------------+async def _wording_provider_block(dictation: Any) -> dict[str, Any]:+ """Which family will actually answer the wording pass, and what it needs.++ The settings screen can list every provider and whether each holds a key,+ but not which one the ``auto`` chain will REACH — that is decided by+ :func:`~jarvis.dictation.polish_client.resolve_polish_chain` from the+ credentials on this host, and the privacy rule on top of it. A frontend+ that re-derived the order would be the AP-4 drift trap: the card would name+ one provider while the dictation used another, and neither the user nor a+ bug report could tell which was lying.++ So the answer comes from the resolver itself, and carries the one thing a+ user can act on — the credential slot to fill when the chain came back+ EMPTY. An empty chain is the honest "nothing will answer" state, and it is+ what a fresh clone with no key looks like (AP-23).++ Off the event loop: the resolver reads up to seven credential slots, and a+ locked keyring blocks for seconds. That is the same reason the pass itself+ runs it in a worker thread.+ """+ from jarvis.dictation.polish_client import (+ POLISH_FAMILIES,+ family_has_key,+ resolve_polish_chain,+ )+ from jarvis.ui.web.provider_spec import dictation_spec_id++ def _resolve() -> dict[str, Any]:+ chain = resolve_polish_chain(dictation)+ # The first family that would be DIALLED, or — when nothing is+ # reachable — the first that could be, so the card has a concrete+ # credential to ask for instead of a shrug.+ family = chain[0] if chain else None+ candidates = [f for f in POLISH_FAMILIES if f.needs_key and not family_has_key(f)]+ suggestion = family or (candidates[0] if candidates else None)+ if suggestion is None:+ return {"family": "", "label": "", "spec_id": "", "secret_key": "",+ "needs_key": False, "ready": bool(chain)}+ return {+ "family": suggestion.id,+ "label": suggestion.label,+ "spec_id": dictation_spec_id(suggestion.id),+ # The PRIMARY slot only. The rest are read-only fallbacks the+ # runtime resolves on its own, and offering them as a second input+ # box would ask for a key nobody has to hold.+ "secret_key": suggestion.secret_candidates[0]+ if suggestion.secret_candidates+ else "",+ "needs_key": suggestion.needs_key,+ "ready": bool(chain),+ }++ try:+ return await asyncio.to_thread(_resolve)+ except Exception as exc: # noqa: BLE001 — a settings screen must still render+ log.debug("wording provider resolution failed: %s", exc)+ return {"family": "", "label": "", "spec_id": "", "secret_key": "",+ "needs_key": False, "ready": False}++@router.get("/settings")async def get_settings(request: Request) -> dict[str, Any]:"""The live ``[dictation]`` block plus the accepted values per key.@@ -985,6 +1045,9 @@ async def get_settings(request: Request) -> dict[str, Any]:values = {key: getattr(dictation, key, None) for key in DICTATION_SETTING_KEYS}return {"settings": values,+ # Which provider the wording/translate pass will really reach, resolved+ # by the chain itself rather than guessed from the list below.+ "wording_provider": await _wording_provider_block(dictation),"choices": {"mode": ["hold", "toggle"],"target": ["auto", "insert", "chat"],diff --git a/jarvis/ui/web/frontend/src/hooks/useDictation.ts b/jarvis/ui/web/frontend/src/hooks/useDictation.tsindex 4e90c57075..f8b72e45e4 100644--- a/jarvis/ui/web/frontend/src/hooks/useDictation.ts+++ b/jarvis/ui/web/frontend/src/hooks/useDictation.ts@@ -339,6 +339,32 @@ export interface DictationSettings {translate_drift_max_growth: number;}+/**+ * Which provider the wording/translate pass will REALLY reach on this host,+ * resolved by the backend's own chain.+ *+ * Served rather than derived, because the order the `auto` chain walks depends+ * on which credentials exist here and on the privacy rule that pins an+ * on-device recognizer to on-device models. A frontend that re-derived it+ * would name one provider on the card while the dictation used another — the+ * AP-4 drift trap, with nobody able to tell which of the two was lying.+ *+ * `ready: false` with a `secret_key` is the actionable state: nothing will+ * answer, and this is the key to paste. Optional so an older backend parses.+ */+export interface DictationWordingProvider {+ /** Polish family id, e.g. `"groq"`; `""` when nothing could be suggested. */+ family: string;+ label: string;+ /** Provider-card id for this family, e.g. `"groq-polish"`. */+ spec_id: string;+ /** The family's PRIMARY credential slot; `""` for a keyless family. */+ secret_key: string;+ needs_key: boolean;+ /** Whether the chain came back non-empty — i.e. something will answer. */+ ready: boolean;+}+export interface DictationChoices {mode: string[];target: string[];@@ -440,6 +466,8 @@ export function useDictation() {const [status, setStatus] = useState<DictationStatus | null>(null);const [settings, setSettings] = useState<DictationSettings | null>(null);const [choices, setChoices] = useState<DictationChoices | null>(null);+ const [wordingProvider, setWordingProvider] =+ useState<DictationWordingProvider | null>(null);const [custom, setCustom] = useState<DictationCustom | null>(null);const [entries, setEntries] = useState<DictationEntry[]>([]);const [stats, setStats] = useState<DictationStats | null>(null);@@ -491,10 +519,12 @@ export function useDictation() {settings: DictationSettings;choices: DictationChoices;custom?: DictationCustom;+ wording_provider?: DictationWordingProvider;}>(await fetch("/api/dictation/settings"));setSettings(data.settings);setChoices(data.choices);setCustom(data.custom ?? null);+ setWordingProvider(data.wording_provider ?? null);await Promise.all([refetchStatus(), refetchHistory(), refetchStats()]);} catch (e) {setError((e as Error).message);@@ -610,6 +640,7 @@ export function useDictation() {status,settings,choices,+ wordingProvider,custom,entries,stats,diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.jsonindex 49434bfbc4..a4c2c066d8 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json@@ -422,7 +422,10 @@"sends_text": "Das Übersetzen passiert im selben Schritt wie das Aufräumen der Formulierung — keine zusätzliche Wartezeit, und es läuft bei dem Anbieter, den du oben gewählt hast. Dort nimmt es dessen stärkstes schnelles Modell, denn übersetzen verlangt mehr als Kommas setzen. Antwortet kein Modell rechtzeitig, kommt dein Text in der Sprache an, in der du ihn gesprochen hast.","target_label": "Diktat schreiben in","target_hint": "Alles, was du diktierst, kommt in dieser Sprache heraus — egal, welche du sprichst. Diktate, die schon in dieser Sprache sind, werden einfach nur aufgeräumt.",- "same_language_notice": "Das ist die Sprache, auf die du dein Diktat festgelegt hast — es wird also nichts übersetzt. Wähle eine andere, oder stell die Diktatsprache oben wieder auf automatisch."+ "same_language_notice": "Das ist die Sprache, auf die du dein Diktat festgelegt hast — es wird also nichts übersetzt. Wähle eine andere, oder stell die Diktatsprache oben wieder auf automatisch.",+ "answers_label": "Antwortet gerade",+ "no_provider": "Es kann noch kein Anbieter antworten, also wird nichts übersetzt — dein Text kommt so an, wie du ihn gesprochen hast. Trag unten einen Schlüssel ein, dann läuft es.",+ "key_saved_hint": "Wird nur auf diesem Rechner gespeichert, im Schlüsselbund des Systems."},"api_keys": {"title": "Spracheingabe",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.jsonindex 0a5f70aeaf..bd390da98c 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json@@ -422,7 +422,10 @@"sends_text": "Translating happens in the same step as the wording clean-up, so it costs no extra wait, and it runs at the provider you picked above — on that provider's strongest fast model rather than its quickest, because rewriting a sentence in another language asks more than punctuating it. If no model answers in time, your words arrive in the language you spoke them.","target_label": "Write my dictation in","target_hint": "Everything you dictate comes out in this language, whichever one you speak. Dictations you already speak in it are simply tidied up.",- "same_language_notice": "This is the language you have pinned for dictation, so nothing will be translated. Pick a different one, or set the dictation language above back to automatic."+ "same_language_notice": "This is the language you have pinned for dictation, so nothing will be translated. Pick a different one, or set the dictation language above back to automatic.",+ "answers_label": "Answers right now",+ "no_provider": "No provider can answer yet, so nothing is translated — your words arrive as you spoke them. Paste a key below and it starts working.",+ "key_saved_hint": "Stored on this computer only, in your system keychain."},"api_keys": {"title": "Voice input",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.jsonindex cb40f864c3..061e59da2a 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json@@ -422,7 +422,10 @@"sends_text": "La traducción ocurre en el mismo paso que el repaso de la redacción, así que no cuesta espera adicional, y se ejecuta en el proveedor que elegiste arriba, con su modelo rápido más potente y no con el más veloz: traducir exige más que puntuar. Si ningún modelo responde a tiempo, tus palabras llegan en el idioma en que las dijiste.","target_label": "Escribir mi dictado en","target_hint": "Todo lo que dictes sale en este idioma, hables el que hables. Los dictados que ya están en él simplemente se pulen.",- "same_language_notice": "Es el idioma que has fijado para el dictado, así que no se traducirá nada. Elige otro, o vuelve a poner el idioma de dictado de arriba en automático."+ "same_language_notice": "Es el idioma que has fijado para el dictado, así que no se traducirá nada. Elige otro, o vuelve a poner el idioma de dictado de arriba en automático.",+ "answers_label": "Responde ahora mismo",+ "no_provider": "Aún no hay ningún proveedor que pueda responder, así que no se traduce nada: tus palabras llegan tal como las dijiste. Pega una clave abajo y empezará a funcionar.",+ "key_saved_hint": "Se guarda solo en este ordenador, en el llavero del sistema."},"api_keys": {"title": "Entrada de voz",diff --git a/jarvis/ui/web/frontend/src/views/voice/LanguageTab.test.tsx b/jarvis/ui/web/frontend/src/views/voice/LanguageTab.test.tsxindex 20841b07e3..af31613e68 100644--- a/jarvis/ui/web/frontend/src/views/voice/LanguageTab.test.tsx+++ b/jarvis/ui/web/frontend/src/views/voice/LanguageTab.test.tsx@@ -124,6 +124,41 @@ const POLISH_TEST = {sample_out: "I think we should ship the report on Wednesday.",};+// What GET /api/dictation/settings adds for the translate card: the family the+// backend's own chain resolved. Served rather than derived — see+// `DictationWordingProvider`.+const WORDING_READY = {+ family: "groq",+ label: "Groq",+ spec_id: "groq-polish",+ secret_key: "groq_api_key",+ needs_key: true,+ ready: true,+};++const WORDING_UNSET = { ...WORDING_READY, ready: false };++/** One dictation provider card, as GET /api/providers serves it. */+const PROVIDERS = {+ providers: [+ {+ id: "groq-polish",+ label: "Groq: dictation polish",+ tier: "dictation",+ auth_mode: "api_key",+ secret_keys: ["groq_api_key"],+ secrets_set: { groq_api_key: false },+ dashboard_url: "https://console.groq.com/keys",+ login_cli: null,+ install_hint: null,+ credential_path_hint: null,+ configured: false,+ active: true,+ credential_help: "The Groq key that tidies up your dictation.",+ },+ ],+};+const STATUS = {available: true,active: false,@@ -139,8 +174,13 @@ function routes(extra: Record<string, () => RouteResult> = {}) {return {"GET /api/dictation/status": () => ({ body: STATUS }),"GET /api/dictation/settings": () => ({- body: { settings: SETTINGS, choices: CHOICES },+ body: {+ settings: SETTINGS,+ choices: CHOICES,+ wording_provider: WORDING_READY,+ },}),+ "GET /api/providers": () => ({ body: PROVIDERS }),"GET /api/dictation/history": () => ({ body: { entries: [], count: 0 } }),"GET /api/dictation/stats": () => ({ status: 404, body: { detail: "none" } }),"PUT /api/settings/ui-language": () => ({ body: { ok: true } }),@@ -736,4 +776,104 @@ describe("LanguageTab — the wording pass", () => {);expect(screen.queryByTestId("dictation-translate-same-language")).toBeNull();});++ // ------------------------------------------------------------------+ // The translate card's own provider + credential block+ // ------------------------------------------------------------------+ // Translation runs even with the formatter switched OFF, but the only+ // provider picker used to live inside the formatter's block. So a user could+ // turn translation on, see a switch that read as enabled, and have no way at+ // all to choose a provider or supply the key it needs — the switch that saves+ // and does nothing (AP-31).++ it("names the provider that will actually answer a translation", async () => {+ installFetchMock(+ routes({+ "GET /api/dictation/settings": () => ({+ body: {+ settings: { ...SETTINGS, translate: true },+ choices: CHOICES,+ wording_provider: WORDING_READY,+ },+ }),+ }),+ );+ render(<LanguageTab hideHeader />);++ const name = await waitFor(() =>+ screen.getByTestId("dictation-translate-provider-name"),+ );+ expect(name.textContent).toContain("Groq");+ // Nothing to fix, so nothing is asked for.+ expect(screen.queryByTestId("dictation-translate-key")).toBeNull();+ });++ it("asks for the key right here when nothing can answer", async () => {+ installFetchMock(+ routes({+ "GET /api/dictation/settings": () => ({+ body: {+ settings: { ...SETTINGS, translate: true, polish: false },+ choices: CHOICES,+ wording_provider: WORDING_UNSET,+ },+ }),+ }),+ );+ render(<LanguageTab hideHeader />);++ // The honest sentence first: the switch is on and nothing is translated.+ const notice = await waitFor(() =>+ screen.getByTestId("dictation-translate-no-provider"),+ );+ expect(notice.textContent).toBeTruthy();+ // And the field that fixes it, on the same card.+ expect(screen.getByTestId("dictation-translate-key")).toBeTruthy();+ });++ it("offers the provider picker on the card when the formatter is off", async () => {+ installFetchMock(+ routes({+ "GET /api/dictation/settings": () => ({+ body: {+ settings: { ...SETTINGS, translate: true, polish: false },+ choices: CHOICES,+ wording_provider: WORDING_UNSET,+ },+ }),+ }),+ );+ render(<LanguageTab hideHeader />);++ expect(+ await waitFor(() =>+ screen.getByTestId("dictation-translate-polish-provider"),+ ),+ ).toBeTruthy();+ });++ it("does not show a second picker when the formatter already has one", async () => {+ installFetchMock(+ routes({+ "GET /api/dictation/settings": () => ({+ body: {+ settings: { ...SETTINGS, translate: true, polish: true },+ choices: CHOICES,+ wording_provider: WORDING_READY,+ },+ }),+ }),+ );+ render(<LanguageTab hideHeader />);++ // The formatter's own picker is on screen...+ expect(+ await waitFor(() => screen.getByTestId("dictation-polish-provider")),+ ).toBeTruthy();+ // ...so the translate card does not repeat it as a second setting.+ expect(+ screen.queryByTestId("dictation-translate-polish-provider"),+ ).toBeNull();+ });+});diff --git a/jarvis/ui/web/frontend/src/views/voice/LanguageTab.tsx b/jarvis/ui/web/frontend/src/views/voice/LanguageTab.tsxindex a7c2e7a731..7cfbb9577a 100644--- a/jarvis/ui/web/frontend/src/views/voice/LanguageTab.tsx+++ b/jarvis/ui/web/frontend/src/views/voice/LanguageTab.tsx@@ -21,6 +21,8 @@ import {} from "@/hooks/useDictation";import { Combobox } from "@/components/ui/combobox";import { LanguageSelect } from "@/components/ui/language-select";+import { ApiKeyForm } from "@/components/ApiKeyForm";+import { useProviders } from "@/hooks/useProviders";import { useEventStore } from "@/store/events";import { useT } from "@/i18n";@@ -77,7 +79,12 @@ export interface LanguageTabProps {*/export function LanguageTab({ hideHeader = false }: LanguageTabProps = {}) {const t = useT();- const { settings, choices, loading, error, saveSettings } = useDictation();+ const { settings, choices, wordingProvider, loading, error, saveSettings } =+ useDictation();+ // Only for the credential half of the translate card: the dashboard link and+ // the "which key is this" line live on the provider catalog, and copying+ // them into this view would be a second source of truth for both.+ const { providers, refetch: refetchProviders } = useProviders();const pushToast = useEventStore((s) => s.pushToast);const [testing, setTesting] = useState(false);const [testResult, setTestResult] = useState<DictationPolishTest | null>(null);@@ -200,6 +207,32 @@ export function LanguageTab({ hideHeader = false }: LanguageTabProps = {}) {// the user set is the failure mode worth avoiding.const targetEqualsSource = value !== "auto" && value === translateTarget;+ // The credential half of the translate card.+ //+ // Which family answers is the BACKEND's answer (`wordingProvider`), never a+ // re-derivation from the list above: the `auto` order depends on the keys+ // this host holds and on the privacy rule that pins an on-device recognizer+ // to on-device models, and a second implementation of it here would let the+ // card name one provider while the dictation used another (AP-4).+ //+ // What the card still needs from the provider catalog is the human half —+ // the dashboard link and the "which key is this" sentence — so those are+ // looked up by the spec id the backend handed over rather than copied.+ const wordingCard = wordingProvider?.spec_id+ ? (providers.find((entry) => entry.id === wordingProvider.spec_id) ?? null)+ : null;+ // Asked whenever the resolved provider still needs a key. Deliberately NOT+ // gated on `polish`: a translation runs with the formatter switched off, so+ // hiding the only place to fix it there would leave the switch reading as on+ // with the feature dead and nothing on screen explaining it (AP-31).+ const wordingNeedsKey = Boolean(+ wordingProvider && !wordingProvider.ready && wordingProvider.secret_key,+ );+ // The formatter block already renders this dropdown when it is open. A second+ // identical one a few rows below would read as two settings, so this one+ // appears only where there is otherwise nowhere to choose.+ const showTranslateProvider = !polishOn;+return (<div className="flex h-full flex-col">{!hideHeader && (@@ -523,6 +556,85 @@ export function LanguageTab({ hideHeader = false }: LanguageTabProps = {}) {{translateOn && (<>+ {/* Which provider will really answer, and — when none can —+ the one field that fixes it, right here. Before this, a+ user who turned translation on with the formatter switched+ off had nowhere to choose a provider or add a key at all:+ the only picker lived inside the formatter's own block. */}+ <div+ className="mt-3 rounded-md border border-border/60 bg-background/40 p-3"+ data-testid="dictation-translate-provider"+ >+ <span className="text-[10px] uppercase tracking-wider text-muted-foreground">+ {t("voice.translate.answers_label")}+ </span>+ {wordingProvider?.ready ? (+ <p+ className="mt-1 text-xs font-medium"+ data-testid="dictation-translate-provider-name"+ >+ {POLISH_PROVIDER_LABELS[wordingProvider.family] ??+ wordingProvider.label ??+ wordingProvider.family}+ </p>+ ) : (+ <p+ className="mt-1 text-[11px] text-muted-foreground"+ data-testid="dictation-translate-no-provider"+ >+ {t("voice.translate.no_provider")}+ </p>+ )}++ {showTranslateProvider && (+ <div className="mt-3 flex max-w-xs flex-col gap-1">+ <span className="text-[10px] uppercase tracking-wider text-muted-foreground">+ {t("voice.polish.provider_label")}+ </span>+ <Combobox+ value={polishProvider}+ ariaLabel={t("voice.polish.provider_label")}+ onChange={(id) => void onPickPolishProvider(id)}+ testId="dictation-translate-polish-provider"+ groups={[+ {+ id: "providers",+ options: polishProviders.map((id) => ({+ value: id,+ label:+ id === "auto"+ ? t("voice.polish.provider_auto")+ : (POLISH_PROVIDER_LABELS[id] ?? id),+ })),+ },+ ]}+ />+ </div>+ )}++ {wordingNeedsKey && wordingProvider && (+ <div className="mt-3" data-testid="dictation-translate-key">+ <ApiKeyForm+ secretKey={wordingProvider.secret_key}+ dashboardUrl={wordingCard?.dashboard_url ?? null}+ configured={Boolean(+ wordingCard?.secrets_set?.[wordingProvider.secret_key],+ )}+ credentialHelp={wordingCard?.credential_help ?? null}+ sharedWith={+ wordingCard?.secret_shared_with?.[+ wordingProvider.secret_key+ ]+ }+ onChanged={() => void refetchProviders()}+ />+ <p className="mt-1.5 text-[10px] text-muted-foreground">+ {t("voice.translate.key_saved_hint")}+ </p>+ </div>+ )}+ </div>+<div className="mt-3 flex max-w-xs flex-col gap-1"><span className="text-[10px] uppercase tracking-wider text-muted-foreground">{t("voice.translate.target_label")}diff --git a/tests/unit/ui/web/test_dictation_polish_routes.py b/tests/unit/ui/web/test_dictation_polish_routes.pyindex 28bf5ccb11..89012080af 100644--- a/tests/unit/ui/web/test_dictation_polish_routes.py+++ b/tests/unit/ui/web/test_dictation_polish_routes.py@@ -641,3 +641,66 @@ def test_failed_translation_save_is_not_applied_only_until_restart(assert response.status_code == 500assert "could not be saved" in response.json()["detail"]assert app.state.config.dictation.translate is True+++# --------------------------------------------------------------------------+# Which provider the settings screen may NAME+# --------------------------------------------------------------------------+# The card that offers to fix a missing key has to name the provider the next+# dictation will really reach. That answer belongs to ``resolve_polish_chain``+# — it depends on the credentials this host holds and on the privacy rule that+# pins an on-device recognizer to on-device models — so the route serves it+# rather than letting the frontend re-derive an order it cannot see (AP-4).+++def test_the_settings_route_names_the_provider_that_will_answer(+ client: TestClient, monkeypatch: pytest.MonkeyPatch+) -> None:+ from jarvis.core import config as jarvis_config+ from jarvis.dictation.polish import reset_polish_state+ from jarvis.dictation.polish_client import POLISH_FAMILIES++ reset_polish_state()+ family = POLISH_FAMILIES[0]+ slot = family.secret_candidates[0]+ monkeypatch.setattr(+ jarvis_config,+ "get_secret",+ lambda key, env_fallback=None: "k" if key == slot else None,+ )++ block = client.get("/api/dictation/settings").json()["wording_provider"]+ reset_polish_state()++ assert block["family"] == family.id+ assert block["ready"] is True+ # The PRIMARY slot only: the rest are read-only fallbacks the runtime+ # resolves itself, and a second input box would ask for a key nobody holds.+ assert block["secret_key"] == slot+ assert block["spec_id"].endswith("-polish")+++def test_a_host_with_no_key_still_gets_a_key_to_paste(+ client: TestClient, monkeypatch: pytest.MonkeyPatch+) -> None:+ """The AP-23 state, made actionable instead of merely honest.++ A fresh clone holds no credential anywhere, so the chain is empty and+ nothing is translated. Reporting only "not ready" would leave the user with+ a switch that reads as on and a card with nothing to do; naming a slot they+ can fill turns the dead end into the one next step.+ """+ from jarvis.core import config as jarvis_config+ from jarvis.dictation.polish import reset_polish_state++ reset_polish_state()+ monkeypatch.setattr(+ jarvis_config, "get_secret", lambda key, env_fallback=None: None+ )++ block = client.get("/api/dictation/settings").json()["wording_provider"]+ reset_polish_state()++ assert block["ready"] is False+ assert block["secret_key"]+ assert block["needs_key"] is True