The War of the Robots
S1, E20: The family's robot is seemingly replaced when Will repairs a robotoid from an advanced civilization - until the new machine wreaks havoc by trying to take over the ship.

S1, E20: The family's robot is seemingly replaced when Will repairs a robotoid from an advanced civilization - until the new machine wreaks havoc by trying to take over the ship.