fix: read diff ranges not source files in review; ban praise comments in nudge

This commit is contained in:
2026-06-01 13:06:08 -05:00
parent b36abf39d4
commit 1256dd8025
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -323,7 +323,7 @@ async function runOllamaLoop(ctx: AgentRunContext): Promise<AgentResult> {
selectedModeName = selectedMode;
const firstStep = isReviewMode
? "Your first tool call must be checkout_pr with the PR number from the event context."
? "Your first tool call must be checkout_pr. After that: (1) read diff ranges from the returned diffPath using the TOC line numbers — do NOT read full source files one-by-one, that will exhaust your context window; (2) every inline comment MUST identify a specific problem — never write praise or 'looks good' observations."
: "Call the first tool required by the workflow now.";
const endCondition = isReviewMode