Skip to content

chore: remove dead openwhisprCloudModels data from model registry - #15

Merged
xarthurx merged 1 commit into
mainfrom
claude/sleepy-khayyam-6f0246
Aug 25, 2026
Merged

chore: remove dead openwhisprCloudModels data from model registry#15
xarthurx merged 1 commit into
mainfrom
claude/sleepy-khayyam-6f0246

Conversation

@xarthurx

Copy link
Copy Markdown
Owner

What changed

Deleted the openwhisprCloudModels key (58 lines: fast / balanced / quality tiers) from src/models/modelRegistryData.json, and added a one-line ### Internal note to the [Unreleased] section of docs/CHANGELOG.md.

Why

It is dead data — a leftover from the OpenWhispr Electron port. Nothing reads it.

How I verified it is unreferenced

A name grep alone would miss a dynamic key lookup, so I checked both:

  • Repo-wide grep (excluding node_modules, target, .git) for openwhisprCloudModels hits only the JSON file itself.
  • All three importers of modelRegistryData.json:
    • src/components/settings/LiveProviderModelSelector.tsx:39 — static .transcriptionProviders
    • src/hooks/useLiveDictation.ts:455 — static .transcriptionProviders
    • src/components/settings/ProviderModelSelector.tsx:34 — dynamic modelRegistry[registryKey], but registryKey is typed as the literal union "transcriptionProviders" | "cloudProviders", so the deleted key was unreachable here too.
  • No Rust code reads the file at all.

Remaining root keys: transcriptionProviders, cloudProviders. The file still parses.

Test results

  • bun run typecheck — exit 0, no output
  • cargo test --manifest-path src-tauri/Cargo.toml — 208 passed (lib) + 6 passed (streaming_mock_ws), 0 failed

Reviewer note

This proves no code reads the tier data today; it does not prove the data was never intended to be wired up. If a cloud-tier picker is on the roadmap, this removes its seed data — recoverable from history at 44cb3f4.

The `openwhisprCloudModels` key (fast/balanced/quality tiers) in
src/models/modelRegistryData.json was a leftover from the OpenWhispr
Electron port. No TypeScript or Rust code read it: the three importers of
the registry access `transcriptionProviders` statically, and the one
dynamic lookup in ProviderModelSelector is typed to the literal union
"transcriptionProviders" | "cloudProviders", so the key was unreachable.

Verified with `bun run typecheck` (clean) and
`cargo test --manifest-path src-tauri/Cargo.toml` (214 passed, 0 failed).
Copilot AI lite review requested due to automatic review settings August 25, 2026 10:03

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The removed key is confirmed unreferenced in the repo and the change is a low-risk data cleanup with passing tests reported.

Pull request overview

Removes obsolete OpenWhispr-era tier metadata from the frontend model registry JSON to reduce dead configuration surface area, and records the cleanup in the changelog.

Changes:

  • Deleted the unused openwhisprCloudModels block from src/models/modelRegistryData.json.
  • Added an [Unreleased] changelog entry under ### Internal documenting the removal.
File summaries
File Description
src/models/modelRegistryData.json Removes the unused openwhisprCloudModels key while keeping the remaining root structure valid (transcriptionProviders, cloudProviders).
docs/CHANGELOG.md Documents the internal cleanup in the Unreleased section.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@xarthurx
xarthurx merged commit b21b39b into main Aug 25, 2026
2 checks passed
xarthurx added a commit that referenced this pull request Aug 25, 2026
Refresh the provider model registry, recover from provider model
retirements instead of failing silently, and restore punctuation in
Light and custom-prompt enhancement modes.

Conflict resolution against #15 (remove dead openwhisprCloudModels):
the tier block is deleted, so the branch's update to it is dropped and
the changelog line that referenced its "fast" tier is removed.
@xarthurx
xarthurx deleted the claude/sleepy-khayyam-6f0246 branch August 25, 2026 11:29
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.

2 participants