fix: replace console.warn with debugWarn for EAGER_CANCEL timeout (#628)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Charles Packer
2026-01-21 20:43:52 -08:00
committed by GitHub
parent 2e7fe42658
commit 30b265f5bd

View File

@@ -77,7 +77,7 @@ import {
savePermissionRule,
type ToolExecutionResult,
} from "../tools/manager";
import { debugLog } from "../utils/debug";
import { debugLog, debugWarn } from "../utils/debug";
import {
handleMcpAdd,
handleMcpUsage,
@@ -3483,7 +3483,7 @@ export default function App({
// Set timeout as safety net in case server doesn't respond
const abortTimeoutId = setTimeout(() => {
if (abortControllerRef.current) {
console.warn("[EAGER_CANCEL] Forcing abort after 30s timeout");
debugWarn("EAGER_CANCEL", "Forcing abort after 30s timeout");
abortControllerRef.current.abort();
abortControllerRef.current = null;
}