microsoft / microsoft/BotFramework-WebChat

[Direct Line Speech] Stopped working after some Markdown syntax

Open
#5,168 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-direct-line-speech bug
Dominant language
HTML
Stars
1.8k
Forks
1.6k
Avg merge
22h 58m
Merged PRs (30d)
2

Description

Is it an issue related to Adaptive Cards?

No

Is this an accessibility issue?

No

What version of Web Chat are you using?

Latest production

Which distribution are you using Web Chat from?

Bundle (webchat.js)

Which hosting environment does this issue primarily affect?

Web apps

Which browsers and platforms do the issue happened?

Others or unrelated

Which area does this issue affect?

Protocol or service

Which theme pack does this issue affect?

I did not test it on other theme packs

What is the public URL for the website?

No response

Please describe the bug

When sending some Markdown syntax, the bot stopped responding.

This is the Markdown we tested and not working: <https://example.com>.

Do you see any errors in console log?

No response

How to reproduce the issue?
  1. Navigate to Web Chat Loader
  2. Connect to the Direct Line Speech MockBot
  3. Send echo "<https://example.com>" to the bot
  4. Send Hello, World! to the bot
What do you expect?

The bot should respond with a link, followed by echoing back "Hello, World!"

What actually happened?

The bot stopped responding after the link.

Do you have any screenshots or recordings to repro the issue?

image

Adaptive Card JSON

No response

Additional context

It seems Direct Line Speech services has issues handling some syntax of Markdown.

The Markdown we included is supported by CommonMark.

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Web Chat Loader and connect to the Direct Line Speech MockBot, then reproduce the issue with echo "https://example.com" followed by "Hello, World!". Compare the behavior with the expected link response and subsequent echo; done means the bot continues responding after the Markdown link.

Written by the indexing model from the issue text.

Assessment

Tech stack
markdown
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.