Skip to content

Commit 654a25a

Browse files
committed
fix: remove the unused center stop message and add comment
1 parent f6e9904 commit 654a25a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

chat-client/src/client/mynahUi.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ export const handleChatPrompt = async (
119119
promptInputDisabledState: false,
120120
})
121121

122+
// Add a slight delay to make sure the stop message would render before the new prompt
122123
await new Promise(resolve => setTimeout(resolve, 50))
123124
}
124125

@@ -912,8 +913,6 @@ export const createMynahUi = (
912913
const processedButtons: ChatItemButton[] | undefined = toMynahButtons(message.buttons)?.map(button =>
913914
button.id === 'undo-all-changes' ? { ...button, position: 'outside' } : button
914915
)
915-
// Adding this conditional check to show the stop message in the center.
916-
const contentHorizontalAlignment: ChatItem['contentHorizontalAlignment'] = undefined
917916

918917
// If message.header?.status?.text is Stopped or Rejected or Ignored or Completed etc.. card should be in disabled state.
919918
const shouldMute = message.header?.status?.text !== undefined
@@ -926,7 +925,6 @@ export const createMynahUi = (
926925
// file diffs in the header need space
927926
fullWidth: message.type === 'tool' && message.header?.buttons ? true : undefined,
928927
padding,
929-
contentHorizontalAlignment,
930928
wrapCodes: message.type === 'tool',
931929
codeBlockActions:
932930
message.type === 'tool'

0 commit comments

Comments
 (0)