← 教程列表
agents

Solution

📅 2026/6/12 16:30:02⏱ 约 5 分钟阅读👁 8 阅读

**Before dispatching E2E test subagent, include cleanup in prompt:** ``` BEFORE starting any services: 1. Kill existing processes: pkill -f "" 2>/dev/null || true 2. Wait for cleanup: sleep 1 3. Verify port free: lsof -i : && echo "ERROR: Port still in use" || echo "Port free" AFTER tests complete: 1. Kill the process you started 2. Verify cleanup: pgrep -f "" || echo "Cleanup successful" ```

← 返回教程列表 AI8899 · 内容仅供学习参考