Skip navigation
Codex can now use the in-app browser to test your app at different viewport sizes!
0:00 / 0:24

Codex can now use the in-app browser to test your app at different viewport sizes!

James Sun

@JamesZmSun9.6K followers

Visit on X
1,384 likesDownloadOriginal post

229,312 views

Codex can now use the in-app browser to test your app at different viewport sizes! It will control the device tool bar and click through your app at different breakpoints to validate & iterate. If it's a long run, Codex will take screenshots at key moments during testing and show them to you at the end of the turn, so you can verify its work. To speed up testing, Codex can hide the IAB to disable animations, and accelerate testing by 1-2x. Separately, we also made annotations send faster and consume less tokens. Hope you enjoy the updates and let us know what you think!

50 Comments

Comments from the original post on X (Twitter)

  • James Sun's profile picture

    @JamesZmSun

    Shoutout to @jnpdx & @olivertepman who cooked on this update

    26 likes

  • Peter Yang's profile picture

    @petergyang

    Damn - I think the browser is codex’s best feature tbh

    20 likes

  • James Sun's profile picture

    @JamesZmSun

    Thanks! Big fan

    7 likes

  • nsxdavid's profile picture

    @nsxdavid

    Much as I love the sauce you be cookin'.... but Codex browser preview still does some awful, horrendous behaviors that just kills its usefulness right in the face. Like, say you get one of these nice next errors, and then you try to click the oh so helpful copy button. Whatcho play'n at son!?

    9 likes

  • James Sun's profile picture

    @JamesZmSun

    Yikes! Thanks for reporting the bug, we have a big upgrade coming next week that should make the core browser experiences much much better. Let me know if you still see it then

    15 likes

  • nsxdavid's profile picture

    @nsxdavid

    Other major one... and maybe it's user-knumbskulliness... but no way to see a dev console. I don't need the whole shebang, just a console would be super helpful. Fully realize a web browser in essentially a web view can be a barrel of fun.

    3 likes

  • am.will's profile picture

    @LLMJunky

    Wow that's slick. I would say the biggest downside to these browser tools is how slow they are so that is really helpful. Thank you

    7 likes

  • Venkat Dinavahi's profile picture

    @venkatdinavahi

    Amazing! Could you make file uploads work in the browser? Makes testing many features hard for us

    3 likes

  • James Sun's profile picture

    @JamesZmSun

    Yep, working on bringing full feature capability to the browser!

    5 likes

  • Venkat Dinavahi's profile picture

    @venkatdinavahi

    Amazing! Browser use and the chrome plugin work really well.

    1 like

  • Brett Lamy's profile picture

    @brett_lamy

    I should be allowed to set my viewports in config.toml and the iframes should render on an infinite canvas using translate() css props for panning and zoom. Then each iframe should have it's own subagent which try to accomplish the task so all sizes are tested in parallel.

    2 likes

  • James Sun's profile picture

    @JamesZmSun

    Good feedback! We need to get better at parallelization for browser use. For saving viewports, thoughts on just saving that in a skill instead?

    4 likes

  • Brett Lamy's profile picture

    @brett_lamy

    A skill would probably be fine. But I think codex browser usage tools are undocumented so writing a skill to prompt an undocumented feature triggers iOS app store rejection PTSD.

    3 likes

  • V's profile picture

    @Aceshootzxx

    @jxnlco omg this is so hugeeee😭😭 no more me manually editing piece by piece and telling codex its looking at different view resolutions

    1 like

  • Praveen's profile picture

    @nmPraveen

    why does all the codex generated UI look the same. its getting boring. seriously need to get better frontend.

    1 like

  • Mr Z's profile picture

    @MrZ2128

    Say what? @VraserX

    1 like

  • Jonathan | Fabworks 🏭's profile picture

    @fabworks_guy

    Can you please make codex detect .localhost domains 🙏 Current treats them as remote and doesn’t open them in the app browser like localhost:port or other ips.

    1 like

  • vel ⋈ 🤌🧦's profile picture

    @Velcrafting

    @OpenAIDevs Feature is working well - seeing the screenshots as they come through was very neat. Validation of testing in progress is a nice feature

    1 like

  • Derek Neighbors's profile picture

    @dneighbors

    Hey @cursor_ai team this is something that you lost going to v3 that desperately needs to come back.. viewport size changing in the embedded browser.

    1 like

  • 🥔🥔🥔's profile picture

    @argofowl

    @OpenAIDevs yes! lfg

    1 like