Cursor codebase indexing stuck at Loading... when project is opened in a devcontainer

I have a codebase project directory opened in Cursor. This codebase supports reopening in a devcontainer within Cursor. The Codebase indexing functionality works correctly when I open the project directory locally. However, when I reopen in the devcontainer, the codebase indexing fails and is stuck in the “Loading…” state. Is there a workaround for this issue?

Example when project is opened in devcontainer

Here is an example of the Codebase indexing succeeding when the project codebase is opened locally and not in a devcontainer.