[connectionagent] move context connect to slot