[BUG] Task was destroyed but it is pending during background tool execution / web search
Bug Description
The agent crashes shortly after startup during an asynchronous task execution. The error occurs specifically when the agent attempts to trigger an external tool or a background web search task.
Even after restarting the Docker container and trying different context window sizes, the agent immediately hits the same asynchronous error loop upon processing or initializing the session.
Logs
agent-zero | Starting tunnel server...
agent-zero | Initializing Python framework...
agent-zero | Checking for data migration...
agent-zero | Preparing web server runtime...
agent-zero | Initializing Agent Zero components...
agent-zero | Starting UI/API server...
agent-zero | INFO: Started server process [171]
agent-zero | INFO: Waiting for application startup.
agent-zero | INFO: Application startup complete.
agent-zero | INFO: Uvicorn running on [http://0.0.0.0:80](http://0.0.0.0:80) (Press CTRL+C to quit)
agent-zero | Agent Zero is running.
agent-zero | Preload completed.
agent-zero | INFO: [CENSURED_LOCAL_IP] - "WebSocket /socket.io/?EIO=4&transport=websocket" [accepted]
agent-zero | Info: Desktop runtime prepared: {'ok': True, 'skipped': False, 'removed': [], 'installed': ['x11-utils', 'x11-apps', 'xclip', 'xpra-client', 'xpra-client-gtk3'], 'migrated': [], 'warnings': [], 'errors': []}
agent-zero | Initializing VectorDB...
agent-zero | Created knowledge directory: /a0/usr/knowledge/fragments
agent-zero | Found 1 knowledge files in /a0/knowledge, processing...
agent-zero | Processed 1 documents from 1 files.
agent-zero | Found 5 knowledge files in /a0/knowledge/main, processing...
agent-zero | Processed 5 documents from 5 files.
agent-zero | Created knowledge directory: /a0/knowledge/fragments
agent-zero |
agent-zero | [ ... Agent responds to user message and initializes background tools ... ]
agent-zero |
agent-zero | Task was destroyed but it is pending!
agent-zero | task: wait_for=>
agent-zero | INFO: reaped unknown pid 1642 (exit status 0)
agent-zero | INFO: reaped unknown pid 1656 (exit status 0)
Agent Zero (Docker deployment) Model: minimax-m3 Provider: Official MiniMax platform API (configured as Other OpenAI compatible endpoint) Tested with multiple sizes (from low limits up to 256k+), issue persists regardless of the window size. Happens consistently when the agent tries to execute an asynchronous background web search or tool fetching.
Closing due to inactivity of 90 days.