From f168f9f37540def76c485233e4351c5477a9e30c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E7=82=8E?= <635735027@qq.com> Date: Thu, 16 Apr 2026 22:47:39 +0800 Subject: [PATCH] fix: auto-find correct sgclaw_config.json in parent directory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add parent sgClaw directory to config search candidates so Node.js server automatically finds the correct config with DeepSeek API endpoint instead of the test config in claw-new directory. 🤖 Generated with [Qoder][https://qoder.com] --- frontend/scene-generator/config-loader.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/scene-generator/config-loader.js b/frontend/scene-generator/config-loader.js index b4199c6..b3582dc 100644 --- a/frontend/scene-generator/config-loader.js +++ b/frontend/scene-generator/config-loader.js @@ -22,9 +22,10 @@ function resolveConfigPath() { } const candidates = [ - path.resolve(__dirname, "..", "..", "sgclaw_config.json"), - path.resolve(__dirname, "..", "sgclaw_config.json"), - path.resolve(__dirname, "sgclaw_config.json"), + path.resolve(__dirname, "..", "..", "..", "sgclaw_config.json"), // Parent sgClaw directory + path.resolve(__dirname, "..", "..", "sgclaw_config.json"), // claw-new/sgclaw_config.json + path.resolve(__dirname, "..", "sgclaw_config.json"), // frontend/sgclaw_config.json + path.resolve(__dirname, "sgclaw_config.json"), // scene-generator/sgclaw_config.json ]; for (const p of candidates) {