mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-12-06 18:38:51 +00:00
Move tunnel, browser, document, speech and integration runtimes into plugin-owned sandboxes with lazy dependencies and instance-scoped lifecycle management. Reuse Tuxee display assets and the sandbox image's Python/Node runtimes, enable automatic Desktop login, and show elapsed time for each browser launch. Slim the outer image, use offline ONNX embeddings, and calculate sandbox storage only on demand. Include regression coverage and updated runtime documentation. Exclude local handoff notes and temporary verification artifacts from publication.
14 lines
433 B
Python
14 lines
433 B
Python
"""Retain mailbox UID state and attachments when stopping the guest."""
|
|
def disable():
|
|
from plugins._email_integration.helpers.sandbox import worker
|
|
from plugins._email_integration.helpers.handler import _poll_tasks
|
|
for task in list(_poll_tasks.values()):
|
|
if not task.done():
|
|
task.get_loop().call_soon_threadsafe(task.cancel)
|
|
_poll_tasks.clear()
|
|
worker.stop()
|
|
|
|
|
|
def uninstall():
|
|
disable()
|