Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug:

Vanessa9916fe7f65d3
diff --git a/app/src/block/Panel.ts b/app/src/block/Panel.ts
index b933c7be3a..44fdf3674e 100644
--- a/app/src/block/Panel.ts
+++ b/app/src/block/Panel.ts
@@ -254,7 +254,7 @@ export class BlockPanel {
showMessage(response.msg);
return;
}
- if (this.targetElement) {
+ if (!this.targetElement) {
return;
}
const action = [];
@@ -313,7 +313,7 @@ export class BlockPanel {
}
private render() {
- if (!this.element.parentElement.parentElement) {
+ if (!document.body.contains(this.element)) {
this.destroy();
return;
}