Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cli/release/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codebuff",
"version": "1.0.625",
"version": "1.0.626",
"description": "AI coding agent",
"license": "MIT",
"bin": {
Expand Down
2 changes: 1 addition & 1 deletion freebuff/cli/release/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "freebuff",
"version": "0.0.2",
"version": "0.0.3",
"description": "The world's strongest free coding agent",
"license": "MIT",
"bin": {
Expand Down
11 changes: 8 additions & 3 deletions packages/agent-runtime/src/run-agent-step.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,10 @@ export const runAgentStep = async (
const iterationNum = agentState.messageHistory.length
const systemTokens = countTokensJson(system)

const cacheDebugCorrelation = CACHE_DEBUG_FULL_LOGGING
? createCacheDebugSnapshot({
let cacheDebugCorrelation: ReturnType<typeof createCacheDebugSnapshot> | undefined
if (CACHE_DEBUG_FULL_LOGGING) {
try {
cacheDebugCorrelation = createCacheDebugSnapshot({
agentType: String(agentType),
system,
toolDefinitions: params.tools
Expand All @@ -284,7 +286,10 @@ export const runAgentStep = async (
agentStepId,
model,
})
: undefined
} catch (err) {
logger.warn({ error: err }, '[Cache Debug] Failed to create snapshot')
}
}

const onCacheDebugProviderRequestBuilt =
cacheDebugCorrelation
Expand Down
Loading