As others have said, there's all sorts of things an HTML renderer can do better than terminal: proper (not hacked) image handling on both input and output, rendering graphical results, graphs, better code highlighting and diffs, interactive elements, etc. But one thing that strikes me as especially important: a proper accessibility story with magnification, screen reader, TTS etc.
All the stuff people are hacking into TUIs is honestly a bit silly, they're actually very inefficient for high fidelity UIs. Having worked in it and on it before while @ GOOG, the actual renderer in Chromium is an optimized thing of beauty. It really makes sense to leverage it. Appropriately.
But all of the above could (should) be done as a locally hosted web page via the existing codex CLI launching a local web server... rather than shipping an electron binary with its own entire fork of Chromium.
I prefer the CLI myself, but I could imagine:
- nicer diff rendering, and directly mentioning parts of a diff
- Latex rendering (pretty annoying in the CLI, you have to actively tell Codex it's running in a terminal and replace Latex syntax with UTF-8 glyphs)
Probably ecause OpenAI wants training data from PCs of people who are scared of CLIs as well
As others have said, there's all sorts of things an HTML renderer can do better than terminal: proper (not hacked) image handling on both input and output, rendering graphical results, graphs, better code highlighting and diffs, interactive elements, etc. But one thing that strikes me as especially important: a proper accessibility story with magnification, screen reader, TTS etc.
All the stuff people are hacking into TUIs is honestly a bit silly, they're actually very inefficient for high fidelity UIs. Having worked in it and on it before while @ GOOG, the actual renderer in Chromium is an optimized thing of beauty. It really makes sense to leverage it. Appropriately.
But all of the above could (should) be done as a locally hosted web page via the existing codex CLI launching a local web server... rather than shipping an electron binary with its own entire fork of Chromium.