feat: show effective config in /debug

This commit is contained in:
Peter Steinberger
2026-01-10 03:10:01 +01:00
parent 5a6ae2624e
commit afe6f182ca

View File

@@ -783,11 +783,13 @@ export async function handleCommands(params: {
reply: { text: "⚙️ Debug overrides: (none)" },
};
}
const effectiveConfig = cfg ?? {};
const json = JSON.stringify(overrides, null, 2);
const effectiveJson = JSON.stringify(effectiveConfig, null, 2);
return {
shouldContinue: false,
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\`\`\``,
},
};
}