mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 05:02:44 +00:00
feat: show effective config in /debug
This commit is contained in:
@@ -783,11 +783,13 @@ export async function handleCommands(params: {
|
|||||||
reply: { text: "⚙️ Debug overrides: (none)" },
|
reply: { text: "⚙️ Debug overrides: (none)" },
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
const effectiveConfig = cfg ?? {};
|
||||||
const json = JSON.stringify(overrides, null, 2);
|
const json = JSON.stringify(overrides, null, 2);
|
||||||
|
const effectiveJson = JSON.stringify(effectiveConfig, null, 2);
|
||||||
return {
|
return {
|
||||||
shouldContinue: false,
|
shouldContinue: false,
|
||||||
reply: {
|
reply: {
|
||||||
text: `⚙️ Debug overrides (memory-only):\n\`\`\`json\n${json}\n\`\`\``,
|
text: `⚙️ Debug overrides (memory-only):\n\`\`\`json\n${json}\n\`\`\`\n⚙️ Effective config (with overrides):\n\`\`\`json\n${effectiveJson}\n\`\`\``,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user