Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## 0.9.0 · Settings, found at once (on `main`, ships with 1.0)

- Rebuild Settings as one page: a search field that finds a setting in any category, five categories (Recording, Transcription, AI, Output, App) and one row per setting.
- Remove Save and Cancel: every change applies at once, text fields after a short pause in typing, and closing Settings writes what is still waiting. A short "✓ Saved" confirms it; a failed write says so.
- Refuse a vocabulary word with `<` or `>` or a language that is not a code at its field, and mark such entries stored by earlier versions.
- Register a new dictation key and write the start-at-login entry the moment they change; a key another application holds is reported at its field.
- Move explanations into tooltips and technical details (local model list, text model and effort, prompt text) one level down.

See [0.9.0 release notes](docs/releases/v0.9.0.md).

## 0.8.0 — v0.8.0 · Omarchy's dictation key

- Register Utterform as an Omarchy dictation backend when the Linux installer runs on Omarchy 4.5 or later. **Setup → Defaults → Dictation → Utterform** then binds Alt + Space to start and finish and Right Alt to push-to-talk. The installer adds one row to the user's Omarchy menu extension, with a backup, and three `omarchy-*-dictation-utterform` commands next to the launcher; `omarchy-remove-dictation-utterform` takes them away again.
Expand Down
76 changes: 40 additions & 36 deletions README.md

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions docs/ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,11 @@ Omarchy is detected only in a Hyprland desktop session with an Omarchy installat

`src-tauri/icons/app-icon.svg` is the single source for the in-app brand (imported by Vite), Settings header, and generated desktop icons. Run `npm run icons` after changing it. The generator uses Tauri's renderer, copies only desktop assets, and canonicalizes ICNS chunk order for byte-stable regeneration. The app identifier, executable name and storage paths remain unchanged. The tray continues to use Tauri's default window icon.

Settings uses the same theme tokens and custom `SelectMenu` as the main controls, including microphone/model selection. Opening motion is disabled under reduced motion; keyboard focus is contained and restored, and Escape closes an open selector before closing the dialog.
Settings (since 0.9.0) is one page over the main window, using the same theme tokens and custom `SelectMenu` as the main controls. Opening motion is disabled under reduced motion; keyboard focus is contained and restored, the search field takes focus on open, and Escape closes an open selector, then a detail page, then the search, then Settings.

The dialog is a tablist — General, Recording, AI & Models, Actions, Output — with arrow-key navigation and roving focus; the rail lies down above the panel below 760 px. General is the initial tab. Cancel restores the preference snapshot across every tab; explicit resource operations (model downloads/removal, API key removal, confirmed history deletion and the three support actions at the end of General) remain immediate. Closed selectors show labels, with opt-in hints for missing local models; option descriptions and history timestamps remain available in the open menu. Recording status is announced by its visible status label, without duplicate helper text.
**Rows and search.** `src/lib/settings-catalog.ts` lists every row with its category (Recording, Transcription, AI, Output, App) and the extra words that find it. The categories are a tablist with arrow-key navigation and roving focus; a non-empty search replaces the category with every matching row across all of them, each labelled with its category. A setting that is not in the catalog can be neither shown nor found, so a new setting starts there. Rows that hold technical detail (local model list, text model id and effort, an action's prompt) open a detail page one level down instead of showing it in front. Explanations live in `title` tooltips.

**No Save.** Every control writes at once through `change()` in `App.svelte`: the interface updates, then `save_settings` runs. Text fields pass a 500 ms delay so a write waits for a pause in typing; closing Settings flushes a pending write. Writes are chained on one promise, so an older one can never land after a newer one. A short "✓ Saved" confirms success; a failed write stays as "Not saved" with the backend's message. Values that cannot be stored (a vocabulary term with `<`/`>`, a language that is not a code) are refused at their field and never reach `change()`. The dictation key is stored, then registered behind any capture that is still giving the old key back; a key another application holds is reported at the field and stays stored, so a later start or toggle can try it again. Autostart is not a setting: the switch writes the operating system's entry at once and is reset to what `autostart_enabled` reads back.

## Prompts

Expand Down Expand Up @@ -179,7 +181,7 @@ Diagnostics are local, bounded and free of user content, and `diagnostics.rs` is

**The interface.** `App.svelte` registers `error` and `unhandledrejection` listeners on mount and removes the same handlers on destroy. `createFailureReporter` sends a source category, the error's name and message (500 characters), a stack without the serving origin (2,000 characters) and the current phase — never the rejection value itself, which becomes `Non-error value of type …` — and swallows every failure of its own, so logging cannot cause the next rejection. A command rejects with a string that already carries its reference, so only an `Error` thrown in the interface is reported from `setError`; autostart plugin failures, which no Utterform command sees, are reported explicitly. The backend accepts only known source and phase values, reduces origins again and returns the reference shown beside the message.

**Support actions.** `diagnostics_info` returns the backend's own resolved path; `copy_diagnostics`, `open_log_file` and `open_log_folder` take no arguments at all. The report is built on a blocking thread from the tails of the current, rotated and legacy logs — never settings, history, recordings or exports — newest first, reading only as many bytes as fit, dropping a partial first line so no UTF-8 sequence is split, and stopping at the first file that no longer fits whole so the kept lines are one unbroken stretch. The header names format version, generation time, version, OS, architecture, desktop, run id, previous-run state, log path and suppressed frontend reports; the whole text never exceeds 256 KiB and says when earlier lines were omitted. Opening uses `tauri-plugin-opener`'s Rust API — registered without its link-click script and without any JavaScript permission — `open_path` for the file and `reveal_item_in_dir` for the folder, falling back to opening the folder where the desktop offers no way to select a file. Settings disables only the action in flight, shows its result or failure in the group, and leaves Save and Cancel out of it.
**Support actions.** `diagnostics_info` returns the backend's own resolved path; `copy_diagnostics`, `open_log_file` and `open_log_folder` take no arguments at all. The report is built on a blocking thread from the tails of the current, rotated and legacy logs — never settings, history, recordings or exports — newest first, reading only as many bytes as fit, dropping a partial first line so no UTF-8 sequence is split, and stopping at the first file that no longer fits whole so the kept lines are one unbroken stretch. The header names format version, generation time, version, OS, architecture, desktop, run id, previous-run state, log path and suppressed frontend reports; the whole text never exceeds 256 KiB and says when earlier lines were omitted. Opening uses `tauri-plugin-opener`'s Rust API — registered without its link-click script and without any JavaScript permission — `open_path` for the file and `reveal_item_in_dir` for the folder, falling back to opening the folder where the desktop offers no way to select a file. Settings disables only the action in flight and shows its result or failure in the Diagnostics row; the log path is the row's tooltip.

**Known limits.** Diagnostics are best-effort. If the current log cannot be written or rotated — for example because the disk is full, the directory was removed or Windows has locked a file — that record is still written to stderr but may be absent from the files and copied report. The next record retries; no failed record is retained in memory.

Expand Down
25 changes: 21 additions & 4 deletions docs/DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

- 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.
- **Merge and release at once (Jonas, 2026-11-07; supersedes the preview gate below):** a finished stage whose validation and PR CI pass is merged and tagged straight away for the full Linux/Windows/macOS release. Jonas tests the installed release afterwards; nothing waits for a preview. Never move a published tag or publish failing/partial work. Other open pull requests are merged only when Jonas says so.
- **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. 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.
Expand All @@ -19,7 +19,24 @@ proposals are in [plans/v1.0-roadmap.md](plans/v1.0-roadmap.md). The plan of 202
(reliability, assistant, finish) is superseded; 0.7.13 shipped, 0.7.14
(`feat/simple-settings`) was rejected and will not be merged.

## Current handoff — 0.8.0
## Current handoff — 0.9.0 Settings from scratch

Stage 0.9.0 of [the roadmap](plans/v1.0-roadmap.md), 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](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](plans/v1.0-roadmap.md), branch
`work/utterform-0.8.0-omarchy-dictation` (based on `plan/utterform-1.0`, so it also carries
Expand Down Expand Up @@ -372,9 +389,9 @@ Untested on real hardware other than Jonas's: the fix is platform-independent Ru

**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** — General, Recording, AI & Models, Actions, Output. Tests reach a control by clicking its tab first; `showSettingsTab` in `src/App.test.ts` is the way in.
**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 & Models → Text model**, not under the microphone. Do not move it back without re-reading the transcription reference.
**`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](https://github.com/jli-software/utterform/releases/tag/v0.4.2) is published and its assets independently verified** ([release run 34138984113](https://github.com/jli-software/utterform/actions/runs/34138984113), all three platforms, from `d1461a5`). This is the state to build on and debug from; the next session starts here.

Expand Down
15 changes: 15 additions & 0 deletions docs/TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,21 @@ shortcut capture, typing delay and history retention. Per-panel dark/light scree
are written to the ignored `test-results/` directory for visual inspection. Desktop IPC
is mocked: native WebKit/WebView rendering and physical audio/input remain manual checks.

## 0.9.0 — Settings without Save

Run `npm run check`, `npm test`, `npm run build` and `npx playwright test`.
Unit tests cover the row catalog and search (`settings-catalog.test.ts`), immediate
writes, the 500 ms text delay and its flush on close, a failed write, the dictation key
registered at once (including a taken key), the autostart switch reading the entry back,
vocabulary chips (Enter, pasted lists, ×, refused and flagged terms), action detail pages
and search across categories. Production-browser coverage writes every category at
920×720 and 360×400 without Save, searches across categories, chooses a local model one
level down, edits and resets a prompt, and checks that the header and tabs stay in place
at four window sizes. Per-category dark/light screenshots are written to `test-results/`.
Manual on Linux before acceptance: change each control and restart — the value must be
there; type in Context, close at once — it must be saved; a taken shortcut reports at its
field.

## 0.7.12 — tray confirmation

Native tests cover green/red geometry at 16/32 px, unchanged idle bytes, five-second
Expand Down
Binary file modified docs/images/utterform-settings-actions-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/images/utterform-settings-general-dark.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 6 additions & 3 deletions docs/plans/v1.0-roadmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
Planned with Jonas on 2026-11-07. This replaces the three-stage "Road to 1.0" of
2026-10-31 in [DEVELOPMENT.md](../DEVELOPMENT.md). After 1.0, versions continue normally.

Every stage: own branch from `main`, tests and PR CI green, then merge, tag and release at
once (Jonas, 2026-11-07: no preview acceptance, nothing left standing; he tests the release). One stage per session;
Every stage: own branch from `main`, tests and PR CI green, then merge into `main` at once.
No preview, no tag, no release until 1.0 (Jonas, 2026-11-07): he tests everything together
at 1.0, which is the next release. 0.8.0 was the last one. One stage per session;
each session starts by reading this file and the stage's section.

## Idea
Expand All @@ -24,6 +25,8 @@ and without its subscription:
| 2026-11-07 | New features: Omarchy dictation backend, context (selection/clipboard), action per application, audio files. Codex login for text-model work, OpenAI key for transcription. |
| 2026-11-07 | Settings are redesigned from scratch. 0.7.14 (`feat/simple-settings`) is rejected as well and will not be merged; the branch stays as a reference only. |
| 2026-11-07 | Settings rules: as little text as possible, **no Save button** (every change applies at once), as simple as possible but clear, everything findable. Do not spend long on it — it has to work. |
| 2026-11-07 | Jonas tests only once, at 1.0, everything together; until then no preview builds for him. Stages go through on their own: merge into `main` when tests and CI are green, no tag or release before 1.0. Style samples (mock-ups, images) are still welcome, and so are occasional questions. The two parallel sessions coordinate with each other. |
| 2026-11-07 | Settings mock-up accepted: search field on top, categories as tabs below, one row per setting. The "Context" category appears only once 0.11.0 gives it rows. |

Proposals not yet confirmed by Jonas are marked **Proposal**.

Expand All @@ -32,7 +35,7 @@ Proposals not yet confirmed by Jonas are marked **Proposal**.
| Version | Stage | Status |
|---|---|---|
| 0.8.0 | Omarchy dictation backend | released |
| 0.9.0 | Settings from scratch | planned |
| 0.9.0 | Settings from scratch | merged, ships with 1.0 |
| 0.10.0 | Codex login for text actions | planned |
| 0.11.0 | Context: selected text and clipboard | planned |
| 0.12.0 | Action per application | to discuss first |
Expand Down
31 changes: 31 additions & 0 deletions docs/releases/v0.9.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Utterform 0.9.0 — Settings, found at once

*Stage of the road to 1.0, merged into `main`; not released on its own. It ships with 1.0.*

Settings had a Save button, long explanations and a sorting you had to know. You
changed something, forgot to save, and it was gone; or you did not find it at all.

**No Save button.** Every change applies the moment you make it. A text field waits for
a short pause in typing, and closing Settings writes whatever is still waiting. A small
**✓ Saved** confirms it. What cannot be stored — a vocabulary word with `<` or `>`, a
language that is not a code — stays at its field with the reason, and is not saved.

**Search first.** A search field sits on top. Type `key`, `mic`, `autostart` or `log`
and the matching settings from every category appear, ready to change right there.

**Five categories, one row per setting:**

| Category | Rows |
| --- | --- |
| Recording | Microphone, shortcut, sounds |
| Transcription | Engine (Cloud, Live, Local), OpenAI key, language, vocabulary, context, local model |
| AI | Actions, text model |
| Output | Type at cursor, keystroke delay, folder, history |
| App | Theme, start at login, diagnostics |

**Less to read.** Each row is a short name and its control; explanations are tooltips.
Details sit one level down: the list of local models, the text model and its effort,
an action's prompt. Vocabulary and languages are added one at a time with Enter and
removed with ×; a pasted list keeps its lines.

Nothing about recording changed, and existing preferences carry over untouched.
Loading
Loading