Skip to content

Commit 26613d9

Browse files
committed
log: moar benchify logs
1 parent 7822a99 commit 26613d9

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

backend/src/tools/batch-str-replace.ts

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,16 @@ async function applyBenchifyIfNeeded(
453453
toolCalls: CodebuffToolCall<'str_replace'>[]
454454
},
455455
) {
456-
logger.debug({ options, batchContext }, 'Applying Benchify results')
456+
logger.debug(
457+
{
458+
state: batchContext.state,
459+
originalContents: batchContext.originalContents,
460+
editedFiles: batchContext.editedFiles,
461+
intendedChanges: batchContext.intendedChanges,
462+
},
463+
'called applyBenchifyIfNeeded',
464+
)
465+
457466
// Early exit conditions - fail gracefully without blocking user edits
458467
if (batchContext.intendedChanges.size === 0) {
459468
return
@@ -489,12 +498,27 @@ async function applyBenchifyIfNeeded(
489498
return
490499
}
491500

501+
logger.debug(
502+
{
503+
filteredChanges,
504+
options,
505+
},
506+
'about to call callBenchifyWithResilience',
507+
)
508+
492509
// Call Benchify with timeout and retry logic
493510
const benchifyResult = await callBenchifyWithResilience(
494511
filteredChanges,
495512
options,
496513
)
497514

515+
logger.debug(
516+
{
517+
benchifyResult,
518+
},
519+
'callBenchifyWithResilience response',
520+
)
521+
498522
if (benchifyResult && benchifyResult.length > 0) {
499523
logger.info(
500524
{

0 commit comments

Comments
 (0)