Skip to content

Commit 58aeac6

Browse files
committed
chore: silence nudge and synthetic instruction injection logs
1 parent 14fdcf6 commit 58aeac6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

lib/fetch-wrapper/gemini.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export async function handleGemini(
2828
// Inject periodic nudge based on tool result count
2929
if (ctx.config.nudge_freq > 0) {
3030
if (injectNudgeGemini(body.contents, ctx.toolTracker, ctx.prompts.nudgeInstruction, ctx.config.nudge_freq)) {
31-
ctx.logger.info("fetch", "Injected nudge instruction (Gemini)")
31+
// ctx.logger.info("fetch", "Injected nudge instruction (Gemini)")
3232
modified = true
3333
}
3434
}
@@ -38,7 +38,7 @@ export async function handleGemini(
3838
}
3939

4040
if (injectSynthGemini(body.contents, ctx.prompts.synthInstruction, ctx.prompts.nudgeInstruction)) {
41-
ctx.logger.info("fetch", "Injected synthetic instruction (Gemini)")
41+
// ctx.logger.info("fetch", "Injected synthetic instruction (Gemini)")
4242
modified = true
4343
}
4444
}

lib/fetch-wrapper/openai-chat.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export async function handleOpenAIChatAndAnthropic(
3333
// Inject periodic nudge based on tool result count
3434
if (ctx.config.nudge_freq > 0) {
3535
if (injectNudge(body.messages, ctx.toolTracker, ctx.prompts.nudgeInstruction, ctx.config.nudge_freq)) {
36-
ctx.logger.info("fetch", "Injected nudge instruction")
36+
// ctx.logger.info("fetch", "Injected nudge instruction")
3737
modified = true
3838
}
3939
}
@@ -43,7 +43,7 @@ export async function handleOpenAIChatAndAnthropic(
4343
}
4444

4545
if (injectSynth(body.messages, ctx.prompts.synthInstruction, ctx.prompts.nudgeInstruction)) {
46-
ctx.logger.info("fetch", "Injected synthetic instruction")
46+
// ctx.logger.info("fetch", "Injected synthetic instruction")
4747
modified = true
4848
}
4949
}

lib/fetch-wrapper/openai-responses.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export async function handleOpenAIResponses(
3333
// Inject periodic nudge based on tool result count
3434
if (ctx.config.nudge_freq > 0) {
3535
if (injectNudgeResponses(body.input, ctx.toolTracker, ctx.prompts.nudgeInstruction, ctx.config.nudge_freq)) {
36-
ctx.logger.info("fetch", "Injected nudge instruction (Responses API)")
36+
// ctx.logger.info("fetch", "Injected nudge instruction (Responses API)")
3737
modified = true
3838
}
3939
}
@@ -43,7 +43,7 @@ export async function handleOpenAIResponses(
4343
}
4444

4545
if (injectSynthResponses(body.input, ctx.prompts.synthInstruction, ctx.prompts.nudgeInstruction)) {
46-
ctx.logger.info("fetch", "Injected synthetic instruction (Responses API)")
46+
// ctx.logger.info("fetch", "Injected synthetic instruction (Responses API)")
4747
modified = true
4848
}
4949
}

0 commit comments

Comments
 (0)