Skip to content

Conversation

@ddjain
Copy link
Contributor

@ddjain ddjain commented Dec 3, 2025

Description

Fixes #1148

When a new model is created, it now immediately appears in the "Select Model" dropdown while configuring an agent, without requiring a manual page refresh.

Changes

  • Added refreshModels function to AgentsProvider context
  • Call refreshModels after successful model creation/update in /models/new page

Testing

  1. Go to Models → Create New Model
  2. Create a model successfully
  3. Navigate to Agents → Add Agent
  4. Open the Model dropdown
  5. Newly created model appears immediately

Before

  • Newly created models only appeared after manual page refresh

After

  • Models list automatically refreshes and new model is immediately available in dropdown

Signed-off-by: ddjain <nnd.darshan@gmail.com>
@ddjain ddjain requested a review from peterj as a code owner December 3, 2025 18:45
@peterj peterj merged commit 5dd5f41 into kagent-dev:main Dec 5, 2025
17 checks passed
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.

[BUG] Newly created model does not appear in agent model dropdown without page refresh

2 participants