File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -826,7 +826,6 @@ export const createMynahUi = (
826
826
type : oldMessage . type ,
827
827
...prepareChatItemFromMessage ( updatedMessage , getTabPairProgrammingMode ( mynahUi , tabId ) ) ,
828
828
}
829
-
830
829
mynahUi . updateChatAnswerWithMessageId ( tabId , updatedMessage . messageId , chatItem )
831
830
} )
832
831
}
@@ -898,6 +897,9 @@ export const createMynahUi = (
898
897
// Adding this conditional check to show the stop message in the center.
899
898
const contentHorizontalAlignment : ChatItem [ 'contentHorizontalAlignment' ] =
900
899
message . type === 'directive' && message . messageId ?. startsWith ( 'stopped' ) ? 'center' : undefined
900
+
901
+ const shouldMute = message . header ?. status ?. text === 'Stopped' || message . header ?. status ?. text === 'Rejected'
902
+
901
903
return {
902
904
body : message . body ,
903
905
header : includeHeader ? processedHeader : undefined ,
@@ -914,6 +916,7 @@ export const createMynahUi = (
914
916
: isPairProgrammingMode
915
917
? { 'insert-to-cursor' : null }
916
918
: undefined ,
919
+ ...( shouldMute ? { muted : true } : { } ) ,
917
920
}
918
921
}
919
922
You can’t perform that action at this time.
0 commit comments