Skip to content

Commit 4658e5c

Browse files
committed
Add stricter prompt to prevent file edit during browser session
1 parent 87d10c3 commit 4658e5c

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## [2.1.1]
4+
5+
- Add stricter prompt to prevent Cline from editing files during a browser session without first closing the browser
6+
37
## [2.1.0]
48

59
- Cline now uses Anthropic's new "Computer Use" feature to launch a browser, click, type, and scroll. This gives him more autonomy in runtime debugging, end-to-end testing, and even general web use. Try asking "Look up the weather in Colorado" to see it in action! (Available with Claude 3.5 Sonnet v2)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "claude-dev",
33
"displayName": "Cline (prev. Claude Dev)",
44
"description": "Autonomous coding agent right in your IDE, capable of creating/editing files, running commands, using the browser, and more with your permission every step of the way.",
5-
"version": "2.1.0",
5+
"version": "2.1.1",
66
"icon": "assets/icons/icon.png",
77
"galleryBanner": {
88
"color": "#617A91",

src/core/Cline.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1467,7 +1467,7 @@ export class Cline {
14671467
formatResponse.toolResult(
14681468
`The browser action has been executed. The console logs and screenshot have been captured for your analysis.\n\nConsole logs:\n${
14691469
browserActionResult.logs || "(No new logs)"
1470-
}\n\n(REMEMBER: if you need to proceed to using non-\`browser_action\` tools or launch a new browser, you MUST first close this browser.)`,
1470+
}\n\n(REMEMBER: if you need to proceed to using non-\`browser_action\` tools or launch a new browser, you MUST first close this browser. For example, if after analyzing the logs and screenshot you need to edit a file, you must first close the browser before you can use the write_to_file tool.)`,
14711471
browserActionResult.screenshot ? [browserActionResult.screenshot] : []
14721472
)
14731473
)

0 commit comments

Comments
 (0)