Stream disconnected before completion :stream closed before response.completed

Updated codex and it seems to have solved it. I had an issue where codex was both installed as a formula and cask, but it should only be a cask?