feat: Disable automatic saving of agent during running agent #3349 (#3350)

### What problem does this PR solve?

feat: Disable automatic saving of agent during running agent #3349

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-11-12 12:47:36 +08:00
committed by GitHub
parent db23d62827
commit 00b6000b76
8 changed files with 22 additions and 118 deletions

View File

@ -14,9 +14,10 @@ import styles from './index.less';
interface IProps {
showChatDrawer(): void;
chatDrawerVisible: boolean;
}
const FlowHeader = ({ showChatDrawer }: IProps) => {
const FlowHeader = ({ showChatDrawer, chatDrawerVisible }: IProps) => {
const { saveGraph } = useSaveGraph();
const handleRun = useSaveGraphBeforeOpeningDebugDrawer(showChatDrawer);
const { data } = useFetchFlow();
@ -28,7 +29,7 @@ const FlowHeader = ({ showChatDrawer }: IProps) => {
} = useSetModalState();
const { visible, hideModal, showModal } = useSetModalState();
const { id } = useParams();
const time = useWatchAgentChange();
const time = useWatchAgentChange(chatDrawerVisible);
return (
<>