chenchen and Claude Opus 4.8
6dbfc98552
fix(agent): refresh live status from AM in the agent LIST endpoint
...
GET /api/heicode/agents previously returned only the stored status, so a
freshly-deployed agent stayed "Pending"/"启动中" forever — the desktop client
polling the list never saw it go "running", and the web list only updated when
the user opened the detail panel (which polls /agents/{id}/status and was the
only path that refreshed from AM).
Now the list refreshes every non-terminal (non-"stopped") agent's live status
from AM before responding, concurrently under an 8s deadline. Per-user agents
are capped (≤8) so the fan-out is bounded and the list never hangs on a slow
AM. refreshAgentStatus now takes context.Context (callers pass the request ctx).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-06-08 15:47:10 +08:00
..
2026-06-04 00:05:08 +08:00
2026-06-01 23:45:10 +08:00
2026-06-01 23:45:10 +08:00
2026-06-02 00:05:43 +08:00
2026-06-01 23:45:10 +08:00
2026-06-02 16:20:38 +08:00
2026-06-01 23:45:10 +08:00
2026-06-01 23:45:10 +08:00
2026-06-02 17:45:00 +08:00
2026-06-01 23:45:10 +08:00
2026-06-04 15:30:33 +08:00
2026-06-08 15:47:10 +08:00
2026-06-05 11:06:49 +08:00
2026-06-05 11:06:49 +08:00
2026-06-04 16:25:21 +08:00
2026-05-25 17:41:43 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-22 14:24:20 +08:00
2026-06-04 16:15:47 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-06-01 23:45:10 +08:00
2026-05-20 14:07:30 +08:00
2026-06-01 23:45:10 +08:00
2026-05-20 14:07:30 +08:00
2026-05-21 11:31:21 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-06-01 23:45:10 +08:00
2026-06-08 15:26:47 +08:00
2026-06-08 15:26:47 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 16:43:36 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00
2026-05-20 14:07:30 +08:00