Skip to content

Make model downloads explicit with visible progress; starting never downloads (D-59) - #41

Merged
eddybean merged 1 commit into
mainfrom
feat/explicit-downloads
Nov 28, 2026
Merged

eddybean merged 1 commit into
mainfrom
feat/explicit-downloads

Conversation

@eddybean

Copy link
Copy Markdown
Owner

Summary

Picking Irodori-TTS Large on the モデル screen only set the model name; the download then ran inside the engine start (speech pull with no progress, no cancel, engine still shown as stopped), so the app looked frozen. Large was not in the catalog dialog at all.

  • No implicit download: resolve_model looks NAME / NAME:TYPE up in speech models --json and returns the fetched file's path, or an error that points to カタログから入手. Covers engine start, モデルを確認 and ASR.
  • One place to download: the catalog dialog adds Irodori-TTS v4.1 Small and v4 Large (Gemma Terms of Use, consent required). speechPull models get every quantization from speech.cpp (Catalog::merge_speech: size, VRAM estimate, ✓ 取得済) and download with speech pull NAME:TYPE, using the existing progress / cancel / free-space check.
  • モデル screen: offers only fetched Irodori models plus a link to the catalog; a profile naming an unfetched model shows a warning and its start button is disabled.
  • Progress everywhere: the status bar shows the running download and opens the dialog on click.
  • Preparing state: start buttons show 準備中… and are disabled from the click until engine_start returns; a second start is ignored.

Recorded as D-59 (D-02 marked superseded); CLAUDE.md and engine-protocol.md updated.

Test plan

  • npm run check (format, lint, clippy, vitest, cargo test), with new tests for catalog lookup/merge, the status bar summary, the モデル screen and the start guard
  • In the app over WebView2 DevTools: unfetched model warning + start refused in 44 ms without a download; 準備中… → 読み込み中… → ready; catalog lists all Irodori/ASR quantizations with fetched marks; a 0.5 GB download showed progress in the card and status bar and completed; a cancelled download showed 中断 / 再開

🤖 Generated with Claude Code

…ownloads (D-59)

- resolve_model looks catalog names (NAME or NAME:TYPE) up in `speech models --json`
  and fails with a message pointing to the catalog when the file is not fetched,
  instead of running `speech pull` silently inside the engine start.
- The catalog dialog lists Irodori-TTS v4.1 Small and v4 Large (Gemma terms, consent),
  and fills speechPull models' variants from speech.cpp (sizes, VRAM estimate, fetched).
- The モデル screen offers only fetched Irodori models, warns about a missing one and
  disables its start; the status bar shows running downloads; starts show 準備中… and
  a second start is ignored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@eddybean
eddybean enabled auto-merge (squash) November 28, 2026 12:58
@eddybean
eddybean merged commit a2d4e7f into main Nov 28, 2026
7 checks passed
@eddybean
eddybean deleted the feat/explicit-downloads branch November 28, 2026 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant