fix: read diff ranges not source files in review; ban praise comments in nudge
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user