Skip to content

fix(settings): require a model ID and keep model panels URL-driven - #2159

Open
czcjsxmhqydncgg1 wants to merge 1 commit into
HKUDS:mainfrom
czcjsxmhqydncgg1:fix/model-config-state-machine
Open

czcjsxmhqydncgg1 wants to merge 1 commit into
HKUDS:mainfrom
czcjsxmhqydncgg1:fix/model-config-state-machine

Conversation

@czcjsxmhqydncgg1

Copy link
Copy Markdown
  • The Add model panel now asks for a model ID (prefilled from provider defaults and discovered models) and keeps Continue disabled until it is filled, so an unusable row can no longer reach the draft.
  • The model editor marks a blank ID as required, explains it inline, and blocks "Set as default" until it is fixed.
  • Apply now names the first incomplete model and opens the page and row that can repair it, instead of failing with a message pointing nowhere.
  • Add/selection state lives in the URL, so refreshing no longer swaps the add panel for the list (or vice versa).
  • Backend guidance points at the current page names (Language models / Embedding models / Search) instead of the removed Catalog page.
  • Regression tests cover the add flow, URL state, editor validation, and the Apply preflight; new i18n keys for en/zh/de/pl/fr/uk.

Description

A clear and concise description of the changes.

Related Issues

  • Closes #...
  • Related to #...

Module(s) Affected

  • agents
  • api
  • config
  • core
  • knowledge
  • logging
  • services
  • tools
  • utils
  • web (Frontend)
  • docs (Documentation)
  • scripts
  • tests
  • Other: ...

Checklist

  • This PR targets dev (not main — see the base-branch selector above).
  • I have read and followed the contribution guidelines.
  • My code follows the project's coding standards.
  • I have run pre-commit run --all-files and fixed any issues.
  • I have added relevant tests for my changes.
  • I have updated the documentation (if necessary).
  • My changes do not introduce any new security vulnerabilities.

Additional Notes

Add any other context or screenshots about the pull request here.

- The Add model panel now asks for a model ID (prefilled from provider
  defaults and discovered models) and keeps Continue disabled until it is
  filled, so an unusable row can no longer reach the draft.
- The model editor marks a blank ID as required, explains it inline, and
  blocks "Set as default" until it is fixed.
- Apply now names the first incomplete model and opens the page and row
  that can repair it, instead of failing with a message pointing nowhere.
- Add/selection state lives in the URL, so refreshing no longer swaps the
  add panel for the list (or vice versa).
- Backend guidance points at the current page names (Language models /
  Embedding models / Search) instead of the removed Catalog page.
- Regression tests cover the add flow, URL state, editor validation, and
  the Apply preflight; new i18n keys for en/zh/de/pl/fr/uk.

Co-Authored-By: Claude <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

1 participant