mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 00:59:48 +08:00
`DEEPTUTOR_CHAT_ENGINE=typescript-native` builds the app with `lazy=True`, and in that profile RouterLoader stores routing patterns on a DeferredRouter instead of the routers themselves, so `_router_loader.records` stays empty. collect_api() reads the socket routes from those records because OpenAPI has no socket namespace, so under that profile the artifact would lose all nine paths. Pin the eager loader before anything imports the app, the way scripts/build_router_index.py already does. Verified by running `--check` in both profiles: without the pin the lazy profile reports drift, with it both report the committed surface.