open-code-review/internal
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
..
agent fix(agent): recover from panics in per-file review and comment-pool goroutines (#171) (#182) 2026-07-01 23:23:12 +08:00
config feat: add Astro-specific review rules (#289) 2026-07-03 20:05:34 +08:00
diff test(diff): add tests for gitignore pattern matching and mode getters 2026-07-01 14:27:07 +08:00
gitcmd test: expand unit test coverage for agent, llm, llmloop, and tool packages 2026-06-26 23:09:11 +08:00
llm fix(tui): persist official-tab models and refine saved secret hint (#260) 2026-07-06 20:38:39 +08:00
llmloop fix(agent): recover from panics in per-file review and comment-pool goroutines (#171) (#182) 2026-07-01 23:23:12 +08:00
mcp feat: add standard MCP tool support (#212) 2026-07-01 19:10:16 +08:00
model test: add unit tests for output_helpers, config, model, stdout, and telemetry packages 2026-06-26 23:26:49 +08:00
pathutil test: improve coverage for template and pathutil packages 2026-06-27 00:22:30 +08:00
release fix(build): improve Windows support based on PR #13 review feedback 2026-06-02 22:37:27 +08:00
scan fix(session): isolate test sessions to test-sessions subdirectory 2026-06-30 13:23:21 +08:00
session fix(session): isolate test sessions to test-sessions subdirectory 2026-06-30 13:23:21 +08:00
stdout test: add unit tests for output_helpers, config, model, stdout, and telemetry packages 2026-06-26 23:26:49 +08:00
suggestdiff test: add unit tests for pure logic functions across 6 packages 2026-06-26 22:41:35 +08:00
telemetry fix(telemetry): support http:// scheme in otlp_endpoint for insecure gRPC (#280) 2026-07-03 11:26:03 +08:00
tool feat: add standard MCP tool support (#212) 2026-07-01 19:10:16 +08:00
viewer feat(viewer): make human readable token usage for session (#278) 2026-07-03 12:01:46 +08:00