> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
**Goal:** Add whisper-server simulated models to the Local Models page as first-class persisted audio models, remove the old Settings-based whisper-server UI, and unify whisper-server lifecycle with generic model load/unload and on-request behavior.
**Architecture:** Persist whisper-server definitions as `audio_models` entries in `models.json` keyed by `id`, register them at startup through the existing audio-model bootstrap, and route both admin load/unload and transcription on-request startup through the same `MultiModelManager` model lifecycle. Update the Models page to create and display these entries directly, and remove the separate Settings-only whisper-server workflow and endpoints.
- Ensure runtime registration, allowed-model detection, load/unload behavior, and model listing metadata work for whisper-server entries keyed by `id`.
- Modify: `codai/api/transcriptions.py`
- Remove single-instance fallback logic and rely only on configured whisper-server model ids.
- Modify: `codai/main.py`
- Register whisper-server entries using entry-local settings only, without legacy config fallback.
- Modify: `codai/config.py`
- Stop persisting/surfacing whisper-server settings in `config.json` if no longer used by the UI.
if(!r.ok)thrownewError(d.detail||'Failed to add whisper-server model');
refreshLocal();
}
```
```python
# codai/models/manager.py
models.append(ModelInfo(
id=model_id,
type=resolved_type,
capabilities=caps.to_list(),
backend=meta.get("backend"),
model_path=meta.get("model_path"),
port=meta.get("port"),
gpu_device=meta.get("gpu_device"),
load_mode=meta.get("load_mode"),
))
```
-[]**Step 8: Run the UI and metadata tests to verify they pass**
Run: `pytest tests/test_whisper_server_local_models.py -k "template_contains_whisper_server or settings_template_no_longer or list_models_includes_whisper_server_metadata" -v`
Expected: PASS for the Local Models form, Settings cleanup, and listing metadata tests.
-[]**Step 9: Commit the Models-page whisper-server UI**