File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ export const handleChatPrompt = async (
119
119
promptInputDisabledState : false ,
120
120
} )
121
121
122
+ // Add a slight delay to make sure the stop message would render before the new prompt
122
123
await new Promise ( resolve => setTimeout ( resolve , 50 ) )
123
124
}
124
125
@@ -912,8 +913,6 @@ export const createMynahUi = (
912
913
const processedButtons : ChatItemButton [ ] | undefined = toMynahButtons ( message . buttons ) ?. map ( button =>
913
914
button . id === 'undo-all-changes' ? { ...button , position : 'outside' } : button
914
915
)
915
- // Adding this conditional check to show the stop message in the center.
916
- const contentHorizontalAlignment : ChatItem [ 'contentHorizontalAlignment' ] = undefined
917
916
918
917
// If message.header?.status?.text is Stopped or Rejected or Ignored or Completed etc.. card should be in disabled state.
919
918
const shouldMute = message . header ?. status ?. text !== undefined
@@ -926,7 +925,6 @@ export const createMynahUi = (
926
925
// file diffs in the header need space
927
926
fullWidth : message . type === 'tool' && message . header ?. buttons ? true : undefined ,
928
927
padding,
929
- contentHorizontalAlignment,
930
928
wrapCodes : message . type === 'tool' ,
931
929
codeBlockActions :
932
930
message . type === 'tool'
You can’t perform that action at this time.
0 commit comments