peppa/openspec/changes/archive/2026-11-14-pep-37-live-events/tasks.md
Асель 4a80d9dc6b PEP-32/33/37: story page tabs, live agent step feed, SSE live updates instead of 5 s polling
- PEP-37: change hub (runner/live.ts) woken by notify() (new 'web' subscriber) and
  PRAGMA data_version; per-scope fingerprints; GET /api/live SSE (no-transform, ping 15 s);
  LiveRefresh replaces AutoRefresh with a connection indicator and polling fallback
- PEP-33: async PostToolUse/PostToolUseFailure hook -> 'step' events (last 200 per
  session), AgentSteps live feed on the story page and runner panel, tasks.md progress
  on board cards and the story header
- PEP-32: story page header + tabs Proposal/Design/Specs/Tasks/Comments/Tests/Merge
  request/Activity, safe Markdown renderer, PM comments visible in get_task, edit
  title/description/epic, accept-and-merge (acceptStory)
- OpenSpec changes archived; specs live-updates, agent-steps, story-page

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 05:59:15 +05:00

685 B
Raw Blame History

1. Сервер

  • 1.1 Подписчик web в notify()
  • 1.2 Хаб изменений runner/live.ts: data_version + сокет, отпечатки областей, подписка
  • 1.3 SSE GET /api/live?scope= с проверкой доступа

2. Клиент

  • 2.1 LiveRefresh (EventSource, дебаунс, черновики, индикатор, откат на опрос)
  • 2.2 Заменить AutoRefresh на страницах

3. Проверка

  • 3.1 e2e: отпечатки и change по областям, шум не будит, чужая область → 404
  • 3.2 Документация (AGENTS.md)