From dab089b29f2e6bbabe961744e4e6bee1426fa175 Mon Sep 17 00:00:00 2001 From: Tim Smith <1443739+timbot@users.noreply.github.com> Date: Sat, 24 Jan 2026 11:21:43 -0800 Subject: [PATCH] fix: prevent codex spawn error when codex CLI is not installed Return success with empty servers array from the config read endpoint when no config file exists, so the frontend doesn't fall through to the CLI list endpoint which attempts to spawn the codex binary. Co-Authored-By: Claude Opus 4.5 --- server/routes/codex.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/routes/codex.js b/server/routes/codex.js index 40c02a7..a71bdd7 100644 --- a/server/routes/codex.js +++ b/server/routes/codex.js @@ -262,7 +262,7 @@ router.get('/mcp/config/read', async (req, res) => { } if (!configData) { - return res.json({ success: false, message: 'No Codex configuration file found', servers: [] }); + return res.json({ success: true, servers: [] }); } const servers = [];