Skip to content

Commit f6fae1e

Browse files
author
Roo Code
committed
Prepend environment details to user message
1 parent 5c7a302 commit f6fae1e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/Cline.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)