We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5f48a8 commit 4997701Copy full SHA for 4997701
src/core/config/ContextProxy.ts
@@ -229,6 +229,10 @@ export class ContextProxy {
229
public async export(): Promise<GlobalSettings | undefined> {
230
try {
231
const globalSettings = globalSettingsExportSchema.parse(this.getValues())
232
+
233
+ // Exports should only contain global settings, so this skips project custom modes (those exist in the .roomode folder)
234
+ globalSettings.customModes = globalSettings.customModes?.filter((mode) => mode.source === "global")
235
236
return Object.fromEntries(Object.entries(globalSettings).filter(([_, value]) => value !== undefined))
237
} catch (error) {
238
if (error instanceof ZodError) {
0 commit comments