fix: enable threaded Flask for SSE and make embed tab switch instant

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-07 11:09:34 +08:00
parent 3db84d07e3
commit 799a4d6b8b
5 changed files with 76 additions and 15 deletions
+1 -1
View File
@@ -9420,4 +9420,4 @@ _purge_key_monitors_if_full_margin()
# 启动
if __name__ == "__main__":
threading.Thread(target=background_task, daemon=True).start()
app.run(host=HOST, port=PORT, debug=DEBUG)
app.run(host=HOST, port=PORT, debug=DEBUG, threaded=True)