Skip to content

fix(ui): agent config page resets to default agent after saving changes #39254

@fwends

Description

@fwends

Problem

When editing an agent's settings in the web UI (/agents), saving any change causes the page to reset back to the default agent instead of staying on the agent you were just editing. This is extremely confusing and error-prone.

Steps to reproduce

  1. Go to /agents in the web UI
  2. Select a non-default agent (e.g. "kimi")
  3. Change a setting on that agent
  4. Save
  5. The UI jumps back to the default agent

What happens

You think you're still on the agent you were editing, so you either:

  • Make further edits on the wrong agent (the default one) without realizing
  • Have to re-select the agent you were working on after every single save

This has caused accidental edits to the main/default agent multiple times — settings get applied to the wrong agent because the UI silently switched context.

Expected behavior

After saving changes to an agent, the UI should stay on that agent. The selected agent should persist across saves, refreshes, and any config updates. The user should never be silently redirected to a different agent than the one they were actively editing.

Impact

This is a usability footgun that causes real configuration mistakes. Every save requires the user to manually re-select their agent, and if they don't notice the switch, they end up editing the wrong agent's config.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions