diff --git a/cli/release/package.json b/cli/release/package.json index d741807550..101a5f3228 100644 --- a/cli/release/package.json +++ b/cli/release/package.json @@ -1,6 +1,6 @@ { "name": "codebuff", - "version": "1.0.625", + "version": "1.0.626", "description": "AI coding agent", "license": "MIT", "bin": { diff --git a/freebuff/cli/release/package.json b/freebuff/cli/release/package.json index a3f05378dd..10e3835633 100644 --- a/freebuff/cli/release/package.json +++ b/freebuff/cli/release/package.json @@ -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": { diff --git a/packages/agent-runtime/src/run-agent-step.ts b/packages/agent-runtime/src/run-agent-step.ts index 7c677d755c..8e9eaf946d 100644 --- a/packages/agent-runtime/src/run-agent-step.ts +++ b/packages/agent-runtime/src/run-agent-step.ts @@ -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 | undefined + if (CACHE_DEBUG_FULL_LOGGING) { + try { + cacheDebugCorrelation = createCacheDebugSnapshot({ agentType: String(agentType), system, toolDefinitions: params.tools @@ -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