File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -455,7 +455,7 @@ export class Cline {
455455 ...imageBlocks ,
456456 {
457457 type : "text" ,
458- text : `<environment_details>Loading...</environment_details>\n\n< task>\n${ task } \n</task>` ,
458+ text : `<task>\n${ task } \n</task>` ,
459459 } ,
460460 ] )
461461 }
@@ -2765,8 +2765,8 @@ export class Cline {
27652765
27662766 const [ parsedUserContent , environmentDetails ] = await this . loadContext ( userContent , includeFileDetails )
27672767 userContent = parsedUserContent
2768- // add environment details as its own text block, separate from tool results
2769- userContent . push ( { type : "text" , text : environmentDetails } )
2768+ // prepend environment details as its own text block, separate from tool results
2769+ userContent . unshift ( { type : "text" , text : environmentDetails } )
27702770
27712771 await this . addToApiConversationHistory ( { role : "user" , content : userContent } )
27722772
You can’t perform that action at this time.
0 commit comments