Are you describing a "chat window" experience here? This is apples to oranges.
Open any chat window and ask for a simple SPA with startup instructions. It's fine, it's fine, it works.
Yeah I wonder if they had given their friend Claude code or Codex, would it have been more likely to create what she wanted?
Not really, for making a single-file anything ex nihilo. I suppose the chat window won't be able to run a linter or make and run tests as a typical "eager" agent might, so maybe it will make more mistakes.
As opposed to what?
If you ask a non-programmer to install Claude Code, just installing it will be a challenge, then opening the shell and interacting with it. Things as simple as copying and pasting can present roadblocks if you've never used a shell before, and things intuitive to programmers like using up-arrow to go back to a previous prompt would never occur to someone in the field.
Claude Code seems so simple and natural of a UI to programmers, it's easy to forget how much it builds on.