-
-
Notifications
You must be signed in to change notification settings - Fork 69.4k
fix(ui): agent config page resets to default agent after saving changes #39254
Description
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
- Go to
/agentsin the web UI - Select a non-default agent (e.g. "kimi")
- Change a setting on that agent
- Save
- 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.