Received 401. The cause is two imports away.
What a single test file can see
A prompt-and-paste chat window has no memory of your repo
A generic chat model answers from the snippet you pasted in, not the actual codebase. It cannot follow the import chain from the test into the auth middleware into the session store.












