From 95304a557e4266f7c318a149254750b43e959a81 Mon Sep 17 00:00:00 2001 From: Devansh Jain <31609257+devanshrj@users.noreply.github.com> Date: Mon, 16 Mar 2026 12:54:45 -0700 Subject: [PATCH] fix: replace console.debug with debugLog in updateAgentSystemPrompt (#1407) Co-authored-by: Letta Code --- src/agent/modify.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/agent/modify.ts b/src/agent/modify.ts index 9ada82e..e3d1820 100644 --- a/src/agent/modify.ts +++ b/src/agent/modify.ts @@ -9,6 +9,7 @@ import type { } from "@letta-ai/letta-client/resources/agents/agents"; import type { Conversation } from "@letta-ai/letta-client/resources/conversations/conversations"; import { OPENAI_CODEX_PROVIDER_NAME } from "../providers/openai-codex-provider"; +import { debugLog } from "../utils/debug"; import { getModelContextWindow } from "./available-models"; import { getClient } from "./client"; @@ -386,7 +387,7 @@ export async function updateAgentSystemPrompt( memoryMode, ); - console.debug("[modify] systemPromptContent:", systemPromptContent); + debugLog("modify", "systemPromptContent: %s", systemPromptContent); const updateResult = await updateAgentSystemPromptRaw( agentId,