microsoft / microsoft/BotFramework-WebChat

`useActiveTyping` start typing time `at` is not correct

Open
#4,209 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bot Services bug customer-reported
Dominant language
HTML
Stars
1.8k
Forks
1.6k
Avg merge
22h 58m
Merged PRs (30d)
2

Description

Screenshots

Version

4.15.1

Describe the bug

The useActiveTyping returns a structure of:

interface Typing {
  at: number;
  expireAt: number;
  name: string;
  role: 'bot' | 'user';
}

The at field represents the start typing time. However, it is updated whenever typing activity is received. Thus, it is not "start typing" time, but "last typing" time.

Steps to reproduce

  1. Use the useActiveTyping hook to observe the changes of typing
  2. Send 2 or more typing activity within 2 seconds

Expected behavior

The useActiveTyping hook should return at with the same value.

Additional context

[Bug]

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 useActiveTyping hook and reproduce the issue by sending two or more typing activities within two seconds. It is done when the returned at value remains the initial typing timestamp while subsequent activity still updates the typing state.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.