Skip to content

Commit ac01755

Browse files
fix: address code review findings
Auto-fixed verified findings from centralized code review. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 558b9fa commit ac01755

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/opencode/src/session/processor.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ export namespace SessionProcessor {
254254
})
255255
blocked = true
256256
toolCallCounts[value.toolName] = 0
257+
toolLoopHits[value.toolName] = 0
257258
break
258259
}
259260

@@ -270,7 +271,7 @@ export namespace SessionProcessor {
270271
messageID: input.assistantMessage.id,
271272
sessionID: input.assistantMessage.sessionID,
272273
type: "text",
273-
synthetic: false,
274+
synthetic: true,
274275
text:
275276
`⚠️ altimate-code: \`${value.toolName}\` has been called ${totalCalls} times this session. ` +
276277
`You appear to be stuck in a loop. Stop repeating the same approach. ` +

0 commit comments

Comments
 (0)