Skip to content

Commit 6480d22

Browse files
authored
feat: editable variable for modify functionality (#655)
## Problem The current chat interface lacks support for editing commands/messages after they have been sent. This limits user experience when users need to modify their chat prompts or correct mistakes without starting a new conversation thread. ## Solution Added support for message editing by extending the chat type definitions: add editable property to ChatMessage and editedText to ButtonClickParams <!--- REMINDER: - Read CONTRIBUTING.md first. - Add test coverage for your changes. - Link to related issues/commits. - Testing: how did you test your changes? - Screenshots if applicable --> ## License By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent ded9923 commit 6480d22

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

types/chat.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ export interface ChatMessage {
170170
body?: string
171171
messageId?: string
172172
canBeVoted?: boolean // requires messageId to be filled to show vote thumbs
173+
editable?: boolean
173174
relatedContent?: {
174175
title?: string
175176
content: SourceLink[]

0 commit comments

Comments
 (0)