🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
🐛 fix(copilot): pass correct scope when creating new session in PageEditor (#11714)
Innei0259270871f8
diff --git a/src/features/PageEditor/Copilot/Toolbar.tsx b/src/features/PageEditor/Copilot/Toolbar.tsxindex db200256a41..798bb2195f0 100644--- a/src/features/PageEditor/Copilot/Toolbar.tsx+++ b/src/features/PageEditor/Copilot/Toolbar.tsx@@ -189,7 +189,7 @@ const CopilotToolbar = memo<CopilotToolbarProps>(({ agentId, isHovered }) => {<div className={cx(styles.fadeContainer, isHovered ? styles.fadeIn : styles.fadeOut)}><ActionIconicon={PlusIcon}- onClick={() => switchTopic()}+ onClick={() => switchTopic(null, { scope: 'page' })}size={DESKTOP_HEADER_ICON_SIZE}title={t('actions.addNewTopic')}/>diff --git a/src/styles/antdOverride.ts b/src/styles/antdOverride.tsindex 2d62b51408b..24a246dfe9e 100644--- a/src/styles/antdOverride.ts+++ b/src/styles/antdOverride.ts@@ -1,3 +1,4 @@+import { isDesktop } from '@lobechat/const';import { type Theme, css } from 'antd-style';import { rgba } from 'polished';@@ -16,4 +17,12 @@ export default ({ token }: { prefixCls: string; token: Theme }) => css`background: ${rgba(token.colorBgLayout, 0.5)} !important;backdrop-filter: blur(2px);}++ ${isDesktop &&+ css`+ .${token.prefixCls}-modal-mask.${token.prefixCls}-modal-mask-blur {+ background: ${rgba(token.colorBgLayout, 0.8)} !important;+ backdrop-filter: none !important;+ }+ `}`;