Is the mock frontend (`npm run dev`) actively main...
# proj-agent-canvas
l
Is the mock frontend (
npm run dev
) actively maintained? I get error 500 on pretty much anything (opening Settings, starting an new conversation, etc.)
f
Not actively maintained. It involves updating the mock on every new feature or fix we push for the cloud version, which isn't priority. This leaves the mock frontend in an outdated/broken state that isn't reflective of how the actual cloud product works.
We are working on new features that will address some of the issues with the mock frontend: https://github.com/All-Hands-AI/OpenHands/pull/9496
Actually you may be running the wrong script too after re-reading your message. You'd have to run the
npm run dev:mock
script to run it with a mocked backend and
npm run dev:mock:saas
to run it with the cloud-mocked backend
l
Thanks. I used the first command I found frontend/README.md. I saw the one you mentioned below, I'll try it now. Maybe the docs have to be updated to make it clearer?
It seems to work now, mostly (I got pushed back to the onboarding screen a few times). Thanks! Still think the docs need an update to make this clear though.
f
Maybe the docs have to be updated to make it clearer?
Yes this dev feature is not well documented or up-to-date at all.
I got pushed back to the onboarding screen a few times
Due to how we mock the backend (via https://mswjs.io/), you should expect the mocked server state to reset on every page refresh
🙏 1