aws-samples / aws-samples/bedrock-chat

[BUG] Message tree bug after Editing and Regenerating

Open
#195 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
1.3k
Forks
535
Avg merge
1d 12h
Merged PRs (30d)
10

Description

**Describe the bug**
If you perform the following operations, the message tree will not be displayed correctly:

**To Reproduce**
- Send a message in a new chat
- Regenerate (the first message becomes 2/2)
- Send another message (the second message is created)
- Edit the first message
- The first message should become 3/3, but the second message becomes 2/2 instead.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Research direction

Reproduce the reported sequence in the chat UI: send, regenerate, send again, then edit the first message. Trace how the message tree updates its position counts after regeneration and editing; done means the edited first message shows 3/3 while the second message retains the correct count.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.