Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

fix: silence deprecation warnings without NODE_OPTIONS (#80)

Jon Church05c458b51e81
diff --git a/codex-cli/src/cli.tsx b/codex-cli/src/cli.tsx
index 0af421a431..df72136e0c 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";