Skip to content

Commit 52e49a1

Browse files
committed
empty memory for embedded
1 parent 28c50a5 commit 52e49a1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

web/src/state/settings/reducer.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit'
22
import { MetabaseModel } from 'apps/types';
33
import type { PayloadAction } from '@reduxjs/toolkit'
4-
import { defaultIframeInfoWeb, IframeInfoWeb } from '../../helpers/origin'
4+
import { defaultIframeInfoWeb, getParsedIframeInfo, IframeInfoWeb } from '../../helpers/origin'
55
import { ContextCatalog, MxModel } from '../../helpers/utils'
66

77
export interface MetadataProcessingResult {
@@ -21,8 +21,9 @@ export type SidePanelTabName = 'chat' | 'settings' | 'context'
2121
export type DevToolsTabName = 'Context' | 'History' | 'Action History' | 'Prompts' | 'Available Actions' | 'Planner Configs' | 'Context History' | 'Testing Tools' | 'Custom Instructions' | 'General Settings' | 'Data Catalog' | 'Dev Context' | 'Memory' | 'CSS Customization' | 'Debug Tools'
2222

2323
export const DEFAULT_TABLES = 'Default Tables'
24+
const isEmbedded = getParsedIframeInfo().isEmbedded as unknown === 'true'
2425

25-
export const DEFAULT_MINUSXMD = `
26+
export const DEFAULT_MINUSXMD = isEmbedded ? '' : `
2627
# minusx.md
2728
2829
This is a user-specific reference guide for MinusX. It contains user preferences wrt. essential data sources, common conventions, key business concepts, important metrics and terminologies. The general notes are written by the user. It also includes notable memories that are automatically updated by the agent.

0 commit comments

Comments
 (0)