@@ -1259,17 +1259,6 @@ here to see if it gets cut off properly as expected, with an ellipsis through cs
12591259 ` ) ;
12601260 } ,
12611261 onChatPrompt : ( tabId : string , prompt : ChatPrompt ) => {
1262- // Clear modified files tracker only for commands that modify files
1263- const fileModifyingCommands = [
1264- Commands . MODIFIED_FILES_DEMO ,
1265- '/dev' ,
1266- '/transform' ,
1267- '/generate'
1268- ] ;
1269-
1270- if ( prompt . command && fileModifyingCommands . includes ( prompt . command ) ) {
1271- mynahUI . clearModifiedFiles ( tabId ) ;
1272- }
12731262
12741263 Log ( `New prompt on tab: <b>${ tabId } </b><br/>
12751264 prompt: <b>${ prompt . prompt !== undefined && prompt . prompt !== '' ? prompt . prompt : '{command only}' } </b><br/>
@@ -1587,9 +1576,6 @@ here to see if it gets cut off properly as expected, with an ellipsis through cs
15871576 onMessageDismiss : ( tabId , messageId ) => {
15881577 Log ( `Card dismissed: tabId: <b>${ tabId } </b>, messageId: <b>${ messageId } </b>` ) ;
15891578 } ,
1590- onModifiedFileClick : ( tabId , filePath ) => {
1591- Log ( `Modified file clicked on tab <b>${ tabId } </b>: <b>${ filePath } </b>` ) ;
1592- } ,
15931579 } ) ;
15941580
15951581 setTimeout ( ( ) => {
@@ -1636,23 +1622,6 @@ here to see if it gets cut off properly as expected, with an ellipsis through cs
16361622 case Commands . VOTE :
16371623 mynahUI . addChatItem ( tabId , exampleVoteChatItem ) ;
16381624 mynahUI . addChatItem ( tabId , defaultFollowUps ) ;
1639- break ;
1640- case Commands . MODIFIED_FILES_DEMO :
1641- // Demo the modified files tracker
1642- mynahUI . addChatItem ( tabId , {
1643- type : ChatItemType . ANSWER ,
1644- messageId : generateUID ( ) ,
1645- body : 'Demonstrating the modified files tracker. Watch the component above the chat!' ,
1646- } ) ;
1647-
1648- // Demo will be handled through chatItem approach now
1649- mynahUI . addChatItem ( tabId , {
1650- type : ChatItemType . ANSWER ,
1651- messageId : generateUID ( ) ,
1652- body : 'Modified files tracker demo is now handled through chatItem.header.fileList approach.' ,
1653- } ) ;
1654-
1655-
16561625 break ;
16571626 case Commands . CARD_WITH_MARKDOWN_LIST :
16581627 getGenerativeAIAnswer ( tabId , sampleMarkdownList ) ;
0 commit comments