An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: https://github.com/siyuan-note/siyuan/issues/5149
Vanessaf0f8ab895fcd
diff --git a/app/stage/auth.html b/app/stage/auth.htmlindex baa31b5856..8cedecaa2f 100644--- a/app/stage/auth.html+++ b/app/stage/auth.html@@ -411,32 +411,38 @@}}const exitSiYuan = () => {- fetch('/api/system/exit', {- method: 'POST',- body: JSON.stringify({force: false}),- }).then((response) => {- return response.json()- }).then((response) => {- if (response.code === 1) {- document.querySelector('#message').classList.add('b3-snackbar--show')- document.querySelector('#message').firstElementChild.textContent = response.msg- const buttonElement = document.querySelector(`#message button`)- if (buttonElement) {- buttonElement.addEventListener('click', () => {- fetch('/api/system/exit', {- method: 'POST',- body: JSON.stringify({force: true}),- }).then((response) => {- return response.json()- }).then(() => {- exitApp()+ try {+ fetch('/api/system/exit', {+ method: 'POST',+ body: JSON.stringify({force: false}),+ }).then((response) => {+ return response.json()+ }).then((response) => {+ if (response.code === 1) {+ document.querySelector('#message').classList.add('b3-snackbar--show')+ document.querySelector('#message').firstElementChild.textContent = response.msg+ const buttonElement = document.querySelector(`#message button`)+ if (buttonElement) {+ buttonElement.addEventListener('click', () => {+ fetch('/api/system/exit', {+ method: 'POST',+ body: JSON.stringify({force: true}),+ }).then((response) => {+ return response.json()+ }).then(() => {+ exitApp()+ })})- })+ }+ } else {+ exitApp()}- } else {+ }).catch(() =>{exitApp()- }- })+ })+ } catch (e) {+ exitApp()+ }}const inputElement = document.getElementById('authCode')