From 05c458b51e8175f595b307a120c751b28c865004 Mon Sep 17 00:00:00 2001 From: Jon Church Date: Wed, 16 Apr 2025 18:25:32 -0400 Subject: [PATCH] fix: silence deprecation warnings without NODE_OPTIONS (#80) Signed-off-by: Jon Church --- codex-cli/src/cli.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/codex-cli/src/cli.tsx b/codex-cli/src/cli.tsx index 0af421a4..df72136e 100644 --- a/codex-cli/src/cli.tsx +++ b/codex-cli/src/cli.tsx @@ -1,5 +1,9 @@ #!/usr/bin/env node +// Hack to suppress deprecation warnings (punycode) +// eslint-disable-next-line @typescript-eslint/no-explicit-any +(process as any).noDeprecation = true; + import type { AppRollout } from "./app"; import type { ApprovalPolicy } from "./approvals"; import type { CommandConfirmation } from "./utils/agent/agent-loop";