Skip to content

[JS] fix: Fixed stuck typing indicator issue#2286

Merged
corinagum merged 1 commit into
mainfrom
stevenic/typing-indicator-fix
Jan 30, 2025
Merged

[JS] fix: Fixed stuck typing indicator issue#2286
corinagum merged 1 commit into
mainfrom
stevenic/typing-indicator-fix

Conversation

@Stevenic

Copy link
Copy Markdown
Contributor

Linked issues

closes: #2285

Details

The stuck typing indicator appears to occur when we send a message activity while we're in the middle of sending a typing activity. The fix is to delay the outgoing message activity until after we finish sending the typing activity.

Change details

Created a separate promise variable so that we can have two threads waiting for the same operation to complete. This lets us block the outgoing message activity until after the typing activity finishes delivering.

Attestation Checklist

  • My code follows the style guidelines of this project

  • I have checked for/fixed spelling, linting, and other errors

  • I have commented my code for clarity

  • I have made corresponding changes to the documentation (updating the doc strings in the code is sufficient)

  • My changes generate no new warnings

  • I have added tests that validates my changes, and provides sufficient test coverage. I have tested with:

    • Local testing
    • E2E testing in Teams
  • New and existing unit tests pass locally with my changes

@corinagum
corinagum merged commit 951d079 into main Jan 30, 2025
@corinagum
corinagum deleted the stevenic/typing-indicator-fix branch January 30, 2025 18:13
corinagum added a commit that referenced this pull request Feb 4, 2025
## Linked issues

closes: #minor

## Details

Release for JS 1.7.3

## What's Changed
* [JS] fix: local debug environment variables location in teams chef bot
sample by @tecton in #2240
* [JS] bump: (deps): Bump undici from 6.21.0 to 6.21.1 in /js by
@dependabot in #2274
* [JS] bump: (deps): Bump the production group across 1 directory with 3
updates by @dependabot in
#2270
* [JS] bump: (deps-dev): Bump the development group across 1 directory
with 2 updates by @dependabot in
#2271
* [repo] bump: (deps): Bump the production group across 1 directory with
5 updates by @dependabot in
#2272
* [repo] bump: (deps): Bump the production group with 2 updates by
@dependabot in #2281
* [JS] fix: Fixed stuck typing indicator issue by @Stevenic in
#2286
* Upgrade OYD endpoint api-version for supporting managed identity in
embedding cases by @farhad-shakerin in
#2287
* [repo] bump: (deps): Bump the production group with 3 updates by
@dependabot in #2289
* [JS] bump: (deps-dev): Bump the development group in /js with 2
updates by @dependabot in
#2288

Co-authored-by: Corina Gum <>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Typing indicator is "stuck"

3 participants