Skip to content

Refresh available models from Emacs - #332

Open
plux wants to merge 2 commits into
editor-code-assistant:masterfrom
plux:hn/model-catalog-refresh
Open

plux wants to merge 2 commits into
editor-code-assistant:masterfrom
plux:hn/model-catalog-refresh

Conversation

@plux

@plux plux commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Context

  • Requires server PR #631: Adds the models/refresh request used by this client.

Description

Emacs users need a way to request the server's current model catalog without restarting ECA. A refreshed catalog also needs to leave the Providers tab and active chats in a consistent state when models disappear.

Changes

  • Add eca-chat-refresh-models to the chat menu and Providers tab. Refresh the tab's provider counts after the server responds.
  • Ignore superseded providers/list responses so an older reply cannot replace a newer tab view.
  • When a selected model leaves the catalog, omit that model and its variant from the next prompt. Adopt the server's resolved model without overwriting a newer user choice.
  • Keep individual provider warnings in *Messages* and show a final warning count when more than one provider reports a problem.

plux added 2 commits October 2, 2026 17:10
Add one refresh action for the chat menu and Providers tab, and keep stale chat selections safe until the server resolves them.
Ignore superseded provider list replies, clear stale variants when a model falls back, and keep multiple refresh warnings visible.
@plux plux changed the title no ticket: Refresh available models from Emacs Refresh available models from Emacs Oct 5, 2026
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