Files
DeepSeek-TUI/docs
Hunter Bown f76252d02b fix(providers): Ollama default comes from the live local catalog, not a hosted costume (#5795)
* fix(providers): Ollama default comes from the live local catalog, not a hosted costume

Local Ollama painted deepseek-v4-flash because the catalog refresh skipped it
and the constant invented a tag GET /api/tags never returned. Refresh the
PerProvider lake from /v1/models, prefer those tags, and keep unknown only
for the pre-refresh window. Also replace the symmetric fluke with the
side-view prompt-eye whale on the TUI launch mark and website icon.

Co-authored-by: Cursor <cursoragent@cursor.com>

* test: follow Y-2 — Ollama placeholder default, export golden, re-blessed startup mark

The four red rows on #5795 all encode behavior this change deliberately
replaced:

- crates/agent `ollama_default_uses_small_local_model_id` asserted the old
  `deepseek-v4-flash` constant. `DEFAULT_OLLAMA_MODEL` is now `unknown` so the
  header never names a model the session cannot reach; the test now asserts
  that without a live local catalog the registry reports
  `ProviderDefaultUnavailable { provider: Ollama, default_model: "unknown" }`.
- crates/config `providers-export.golden.json` regenerated from
  `ProvidersExport::from_registry` (`WRITE_GOLDEN=1`, the ignored writer test).
- crates/tui `startup_{80x24,100x30,120x32,160x40}` and their `startup_ink_*`
  planes re-blessed with `CODEWHALE_BLESS_GOLDENS=1`: the only drift is the
  hero rows, which now paint the side-view prompt-eye whale mark this PR
  introduces. `startup_40x10` is byte-identical (no mark at the floor).

Evidence (scripts/dev-test.sh, RUST_MIN_STACK=16777216 as CI sets):
  tui underwater::tideline_tests::startup_  Summary 14 tests run: 14 passed
  agent ollama                              Summary  3 tests run:  3 passed
  config route::export                      Summary  5 tests run:  5 passed
  cargo fmt --all -- --check                clean

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AdbuqwHAXSDcikPiS6L6Qw

---------

Co-authored-by: CodeWhale Bot <bot@codewhale.net>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-01 12:55:26 -07:00
..