open-code-review/internal/llm
wxwxwxw_orange 39eb0f3984
Some checks are pending
CI / test (push) Waiting to run
fix(tui): persist official-tab models and refine saved secret hint (#260)
* fix(tui): persist official-tab models and refine saved secret hint

Persist user-added models to providers.<name>.models on the official tab.
When an API key or auth token is already saved, show a replace hint with a
prefix/suffix fingerprint (skipped for short keys), use a fixed mask placeholder,
and ensure typing or paste replaces the saved value instead of re-saving it.

* fix(tui): model add/delete UX and config wizard hardening
- Add model add/delete in config provider and config model (official + custom)
- Show d Delete only on model rows; green highlight when selected
- Improve Esc cancel text; track savedInSession to avoid misleading messages
- Reload config on save failure; read registry models fresh after reload
- Export llm.ModelListContains; fix config model persist using registry-only check

* fix(tui): defer provider config until confirm and harden API key UX
Only persist provider/model on wizard confirm; keep in-session picks via
sessionModelPick. Validate API key before quit, clear saved keys when emptied,
and improve official env-var hints and custom edit clear behavior.

* feat(tui): show active model suffix on official provider list
Align Official tab with Custom: display (model) next to the active preset
when cfg.Provider matches and a global model is configured.
2026-07-06 20:38:39 +08:00
..
bpe_data feat: init 2026-05-20 22:03:52 +08:00
client.go fix: add configurable HTTP timeout for LLM API calls (#238) 2026-06-30 11:22:24 +08:00
client_test.go test: expand unit test coverage for agent, llm, llmloop, and tool packages 2026-06-26 23:09:11 +08:00
embedded_loader.go feat: init 2026-05-20 22:03:52 +08:00
embedded_loader_test.go test: add coverage tests for agent, llm, llmloop, and scan packages 2026-06-27 00:15:28 +08:00
message_test.go fix(tui): persist official-tab models and refine saved secret hint (#260) 2026-07-06 20:38:39 +08:00
providers.go feat(llm): add z-ai-coding provider for GLM Coding Plan endpoint (#258) 2026-07-02 19:23:17 +08:00
providers_test.go feat(llm): add z-ai-coding provider for GLM Coding Plan endpoint (#258) 2026-07-02 19:23:17 +08:00
resolver.go fix(tui): persist official-tab models and refine saved secret hint (#260) 2026-07-06 20:38:39 +08:00
resolver_test.go fix: add configurable HTTP timeout for LLM API calls (#238) 2026-06-30 11:22:24 +08:00
usage_resolver.go style: apply go fmt formatting 2026-06-03 17:34:28 +08:00