Files
EvoFlow Resolver AgentandWorkBuddy d578dcb26b perf: 事件循环阻塞防护与长任务观测,渠道/网关/技能增强
- 新增 async 阻塞调用检测脚本 + 测试:async def 内 FS/同步 HTTP/subprocess/time.sleep 视为违规,基线只缩不增,支持 inline waiver;防「同步阻塞跑在主事件循环」导致的全网关间歇性卡死回归
- 前端新增主线程 longtask 观测(>200ms 环形缓冲 + 节流告警,__dumpEvoflowLongtasks 诊断口)
- 后端渠道(飞书/Telegram/企微/微信)与网关(channel_result_push、events、organizations、tasks、sse_ui_normalize、attach_evf_stream、unattended_task_pipeline、v4 conversation)增强
- harness:collab app_run_events/subtask_reporting、proactive router、skills loader、task_tool
- 前端首页仪表盘数据 / 工作台偏好 / router / react-chat 样式调整;watch-external-gateway 脚本增强
- 新增测试:async blocking gate、terminal_push、v4 snapshot tail window、subtask_reporting_mode

Co-Authored-By: WorkBuddy <workbuddy@example.com>
2026-10-27 08:15:02 +08:00
..

Windows contributor scripts

Isolated dev stack only.

Script Purpose
dev-stack-isolated.bat One-click isolated stack
start-dev-stack.ps1 / restart-dev-stack.* Start / restart
watch-external-gateway.ps1 Supervise uvicorn on 8070; log every exit + auto-restart
backend-common.ps1 Shared helpers
pytest-backend.ps1 Backend tests

Unstable Gateway (ERR_CONNECTION_REFUSED)

  1. Run Gateway under supervisor (not a bare terminal uvicorn):
    .\scripts\windows\watch-external-gateway.ps1 -Port 8070
    
  2. Desktop with $env:EVOFLOW_GATEWAY_URL='http://127.0.0.1:8070'
  3. When it flaps, grep:
    • [gateway-watch] / window.__EVOFLOW_GATEWAY_WATCH__ (UI)
    • ~/.evoflow-dev/logs/gateway-supervisor.log (exit codes)
    • ~/.evoflow-dev/logs/evoflow-gateway-*.log → [GATEWAY-EXIT] (why Python shut down)

Publish / release: ../maintainer/windows/.