BotFramework-Composer icon indicating copy to clipboard operation
BotFramework-Composer copied to clipboard

Typing indicator shown after bot has replied

Open bensonjm opened this issue 3 years ago • 13 comments

Describe the bug

The bot shows typing indicator after it replies

Version

Version: 2.1.2 Electron: 8.2.4 Chrome: 80.0.3987.165 NodeJS: 12.13.0 V8: 8.0.426.27-electron.0

Browser

  • [x] Electron distribution
  • [ ] Chrome
  • [x] Safari
  • [ ] Firefox
  • [x] Edge

OS

  • [x] macOS
  • [ ] Windows
  • [ ] Ubuntu

To Reproduce

Steps to reproduce the behavior:

  1. Successfully deploy the Enterprise Assistant template and host it on a SharePoint site using BotFramework WebChat
  2. Open the bot and click on the 'You can ask me' button
  3. The bot will send a card
  4. The bot also sends a typing indicator after the card

Expected behavior

It should not show the typing indicator after it has finished processing a message

Screenshots

image

bensonjm avatar Apr 29 '22 14:04 bensonjm

This is similar to #8840

But there is also another issue with the OAuth login card. I've used Directline Enhanced Authentication. After you click on the 'Sign in' button on the OAuth card it'll open a new tab to select the account to login. Once you select the account and it logs in, it closes the tab and returns to the bot but the bot doesn't show the typing indicator and there a long pause before the reply comes.

The typing indicator should be shown after the user logs in and before the reply is shown.

bensonjm avatar Apr 29 '22 14:04 bensonjm

Hello @bensonjm, I'm investigating this.

ram-xv avatar Apr 29 '22 16:04 ram-xv

@bensonjm, does this typing behavior occur for a specific channel?

ram-xv avatar Apr 29 '22 23:04 ram-xv

@ramfattah the channel is directline and I used BotFramework Webchat to host the bot on SharePoint

ryub3n avatar Apr 30 '22 06:04 ryub3n

@ryub3n thanks. Investigating further.

ram-xv avatar May 02 '22 13:05 ram-xv

Hey @bensonjm

It should not show the typing indicator after it has finished processing a message

I'm not able to reproduce this issue with a fresh Enterprise Assistant Composer bot using direct line webchat.

After clicking You can ask me button, typing indicator doesn't show after a reply. Video demo: https://i.gyazo.com/820f96105c593969e53aea470bfcf2dc.mp4

This is similar to #8840

But there is also another issue with the OAuth login card. I've used Directline Enhanced Authentication. After you click on the 'Sign in' button on the OAuth card it'll open a new tab to select the account to login. Once you select the account and it logs in, it closes the tab and returns to the bot but the bot doesn't show the typing indicator and there a long pause before the reply comes.

The typing indicator should be shown after the user logs in and before the reply is shown.

I'm also not able to reproduce this issue. After clicking Sign in button, I see typing indicator, then reply. Video demo: https://i.gyazo.com/c9976d5929931ac7faf6aa0c66877b6c.mp4

Here are the steps I took:

  1. Created and deployed Enterprise assistant from this documentation
  2. In Azure bot, I added directline channel
  3. Used sample /k.direct-line-token/ to integrate webchat using Direct line.

@bensonjm perhaps I'm doing something wrong from my end? any additional steps I shall add to repro the issue?

ram-xv avatar May 02 '22 17:05 ram-xv

@ramfattah, I used directline enhanced authentication and I hosted it over the internet (bot is on sharepoint) which is probably why the typing indicator is showing in the first place (slow internet perhaps) as locally even I'm unable to reproduce the issue.

ryub3n avatar May 02 '22 19:05 ryub3n

@ryub3n

I was able to reproduce only once when the bot loaded the first time in published webchat, after refreshing my browser, I was not able to repro anymore.

Is this typing indicator behavior happening consistently or only sometimes for you?

ram-xv avatar May 02 '22 21:05 ram-xv

Here's the proof. I can't predict when it happens but it's usually when I send the message/action for the first time. The typing indicator keeps on going even after the bot replies.

I've sent you proofs via mail too.

https://user-images.githubusercontent.com/24279903/166409279-d60e2f39-72fb-48e4-8fcd-64ae77a5748f.mov

ryub3n avatar May 03 '22 05:05 ryub3n

@ramfattah , any update on this?

ryub3n avatar May 11 '22 04:05 ryub3n

Hi @ryub3n

Update: It appears I'm able to reproduce this typing behavior while running the enterprise-assistant locally. This only occurs after the template has been created for the first time. Afterward, I'm not able to repro anymore.

I followed this documentation to set up the enterprise-assistant template without using Direct Line.

For example, the extra typing activity shows up at 0:22 after the sign-in card:

https://user-images.githubusercontent.com/38049078/175469002-6d9fa104-c562-429f-8e88-cf02a7cd47cd.mp4

ram-xv avatar Jun 24 '22 05:06 ram-xv

@ramfattah , any updates on these rogue typing activities?

ryub3n avatar Jul 06 '22 05:07 ryub3n

Perhaps related to https://github.com/microsoft/BotFramework-WebChat/issues/4344 ?

ram-xv avatar Jul 20 '22 23:07 ram-xv

@ceciliaavila any update on this?

johnataylor avatar Aug 26 '22 18:08 johnataylor

@ceciliaavila any update on this?

Hi @johnataylor, this issue is on our backlog. We'll be tackling it next week. Thanks.

ceciliaavila avatar Aug 26 '22 18:08 ceciliaavila

Corrected by linked PR. Will require SDK release.

tracyboehrer avatar Sep 06 '22 18:09 tracyboehrer