Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

bug: fix error catching when checking for updates (#597)

Connor Christiec75cb507f085
diff --git a/codex-cli/src/cli.tsx b/codex-cli/src/cli.tsx
index c0aa728f66..1118bfe6df 100644
--- a/codex-cli/src/cli.tsx
+++ b/codex-cli/src/cli.tsx
@@ -294,7 +294,11 @@ config = {
// Check for updates after loading config. This is important because we write state file in
// the config dir.
-await checkForUpdates().catch();
+try {
+ await checkForUpdates();
+} catch {
+ // ignore
+}
// For --flex-mode, validate and exit if incorrect.
if (cli.flags.flexMode) {