Skip to content

Commit 2a3368c

Browse files
Don't suggest rewind to user messages (#455)
This seems to fix a bug (rewinding to the first user message sometimes failed) but also prevents other rewinds to user messages because I think this is a confusing operation, it restores to a state that shows the user message but doesnt' reactivate the agent.
1 parent badbf9e commit 2a3368c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/components/chat/Messages.client.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ export const Messages = forwardRef<HTMLDivElement, MessagesProps>(function Messa
126126
{isUserMessage ? <UserMessage content={content} /> : <AssistantMessage message={message} />}
127127
{rewindButton &&
128128
earliestRewindableMessageRank !== undefined &&
129+
!isUserMessage &&
129130
index >= earliestRewindableMessageRank &&
130131
index !== messages.length - 1 && (
131132
<Button

0 commit comments

Comments
 (0)