Skip to content

Cline editting files while in Plan mode #2131

@Neil-urk12

Description

@Neil-urk12

What happened?

Cline edited a file while in Plan mode. It didn't even ask me to toggle it to Act mode. It just directly edited files while in Plan mode.

Steps to reproduce

  1. I'm using the gemini-2.0-flash-thinking-exp-01-21
  2. I tagged 3 files initially as context and then asked "What should I put in @x file?
  3. It responded with a plan initially but after I responded to it. It edited multiple files

Relevant API REQUEST output

ERROR] You did not use a tool in your previous response! Please retry with a tool use.

# Reminder: Instructions for Tool Use

Tool uses are formatted using XML-style tags. The tool name is enclosed in opening and closing tags, and each parameter is similarly enclosed within its own set of tags. Here's the structure:

<tool_name>
<parameter1_name>value1</parameter1_name>
<parameter2_name>value2</parameter2_name>
...
</tool_name>

For example:

<attempt_completion>
<result>
I have completed the task...
</result>
</attempt_completion>

Always adhere to this format for all tool uses to ensure proper parsing and execution.

# Next Steps

If you have completed the user's task, use the attempt_completion tool. 
If you require additional information from the user, use the ask_followup_question tool. 
Otherwise, if you have not completed the task and do not need additional information, then proceed with the next step of the task. 
(This is an automated message, so do not respond to it conversationally.)

<environment_details>
# VSCode Visible Files
internal/repositories/db.go

# VSCode Open Tabs
cmd/web/main.go
internal/repositories/db.go
internal/handlers/card_scan_handler.go
internal/repositories/rfid_repo.go

# Current Time
3/7/2025, 12:23:53 PM (Asia/Manila, UTC+8:00)

# Current Mode
PLAN MODE
In this mode you should focus on information gathering, asking questions, and architecting a solution. Once you have a plan, use the plan_mode_response tool to engage in a conversational back and forth with the user. Do not use the plan_mode_response tool until you've gathered all the information you need e.g. with read_file or ask_followup_question.
(Remember: If it seems the user wants you to use tools only available in Act Mode, you should ask the user to "toggle to Act mode" (use those words) - they will have to manually do this themselves with the Plan/Act toggle button below. You do not have the ability to switch to Act Mode yourself, and must wait for the user to do it themselves once they are satisfied with the plan.)
</environment_details>

Operating System

Fedora Workstation 41

Cline Version

3.5.1

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions