fix: keep dashboard session stream live#57
Conversation
|
@pilipilisbot Could you review this one? I attempted to request review through GitHub, but the token for |
pilipilisbot
left a comment
There was a problem hiding this comment.
Owner review: approved.
I checked the SSE client behavior against the backend event stream contract. Keeping the EventSource open on onerror lets the browser reconnect, and the new refresh filter still covers the session events that mutate job state (claimed, dispatch lifecycle, and terminal statuses). The high-volume stdout/stderr events continue to update the live activity/transcript caches directly without forcing a job refetch per line.
Validation I ran on commit d2e034c:
npm test -- --runindashboard(8 passed)npm run buildindashboardPYTHONPATH=src /home/openclaw/.openclaw/workspace/github/github-agent-bridge/.venv/bin/python -m pytest -q tests/test_backend.py tests/test_queue.py tests/test_executor.py(54 passed)git diff --check origin/main...HEAD
GitHub Actions are also green for dashboard, pytest (3.11), and pytest (3.12).
|
Post-merge cleanup completed for PR #57.
|
Summary
Validation
npm test -- --runnpm run build/home/openclaw/.local/share/github-agent-bridge/venv/bin/pytest -q tests/test_backend.py tests/test_queue.pygab.gisce.net: authenticated page load OK,/api/jobs/35/session/streamreturned 200, browser console clean