Closed
Description
openedon Aug 27, 2020
Version
4.10.0
Describe the bug
In Adaptive libraries we moved to a new Recognzer model which allows you to recognize arbitrary Activity objects. The legacy LuisRecognizer implements IRecognzier which is TurnContext based and only recognizes the turnContext.Activity. To prevent us from forking the old recognizer code, we simply created a cloned TurnContext with TurnContext.Activity=ActivityToRecgonize.
The issue is that we didn't do a full clone of the TurnContext, namely we dropped the internal middleware queues that the TurnContext has. This means that outgoing messages from the Luis (aka trace messages) were not sent through middleware and so not logged into transcripts at all.
To Reproduce
- Add transcriptmiddleware
- call LuisRecognizer
- Trace will show up in emulator output, but not in transcript, because the transcript middleware is bypassed.
Expected behavior
Middleware should be invoked by LuisRecognizer SendActivities.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment