diff --git a/packages/agent/src/server/agent-server.ts b/packages/agent/src/server/agent-server.ts index 7130a5073a..3a1853f7b9 100644 --- a/packages/agent/src/server/agent-server.ts +++ b/packages/agent/src/server/agent-server.ts @@ -3376,10 +3376,10 @@ export class AgentServer { return ( `IMPORTANT — OVERRIDE PREVIOUS INSTRUCTIONS ABOUT CREATING BRANCHES/PRs.\n` + `You already have an open pull request: ${prUrl}\n` + - `You MUST:\n` + + `Unless the user explicitly asks for a new branch or separate PR, you MUST:\n` + `1. ${this.buildExistingPrCheckoutInstruction(prUrl)}\n` + `2. Make changes, commit, and push to that branch\n` + - `You MUST NOT create a new branch, close the existing PR, or create a new PR.` + `By default, do not create a new branch, close the existing PR, or create a new PR — continue on the existing PR. If the user explicitly asks you to create a new branch or a separate PR, follow their instruction instead.` ); } @@ -3497,7 +3497,7 @@ Do the requested work, but stop with local changes ready for review. Important: - Do NOT create new commits, push to the branch, or update the pull request unless the user explicitly asks. -- Do NOT create a new branch or a new pull request. +- Do NOT create a new branch or a new pull request unless the user explicitly asks. ${signedCommitInstructions}${prLinkInstructions}${shellEfficiencyInstructions} `; } @@ -3517,7 +3517,7 @@ After completing the requested changes: List unresolved threads first with \`gh api graphql -f query='{repository(owner:"",name:""){pullRequest(number:){reviewThreads(first:100){nodes{id isResolved comments(first:1){nodes{body}}}}}}}'\` so you can resolve each one you fixed. Important: -- Do NOT create a new branch or a new pull request. +- Do NOT create a new branch or a new pull request unless the user explicitly asks. - Do NOT push fixes for review comments without replying to and resolving each related thread. ${signedCommitInstructions}${prLinkInstructions}${shellEfficiencyInstructions} `;