Skip to content

fix: surface session.stuck events as banner + nav badge#913

Open
vivekchand wants to merge 1 commit intomainfrom
auto/issue-29-stuck-session-alerts
Open

fix: surface session.stuck events as banner + nav badge#913
vivekchand wants to merge 1 commit intomainfrom
auto/issue-29-stuck-session-alerts

Conversation

@vivekchand
Copy link
Copy Markdown
Owner

Closes #29

Summary

  • Detects session.stuck events arriving via the /api/logs-stream SSE in startLogStream() and tracks them in a _stuckSessions map
  • Shows a dismissable purple banner (below existing banners) listing the stuck session IDs; clears automatically when a terminal session.state event arrives for that session
  • Adds a purple badge on the Overview nav tab showing the count of currently stuck sessions (Overview is where active sessions are displayed; no standalone Sessions tab exists in the nav)

Test plan

  • Start the dashboard with a running OpenClaw workspace
  • Emit a log line containing {"event":"session.stuck","sessionId":"abc123","ageMs":30000} — confirm purple banner appears and Overview badge shows 1
  • Emit {"event":"session.state","sessionId":"abc123","state":"completed"} — confirm banner and badge clear
  • Click Dismiss on the banner — confirm banner hides (badge stays until session resolves)
  • Click View Sessions in banner — confirm navigates to Overview tab
  • Confirm no JS errors in browser console on fresh load

Generated by Claude Code

When OpenClaw emits a session.stuck event in the log stream,
detect it in startLogStream() and show a persistent purple
banner with the stuck session IDs. A matching badge appears
on the Overview nav tab (where active sessions are shown).
Both clear automatically when a terminal session.state event
arrives for that session. Dismissable without affecting the
badge count.

Closes #29

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(v0.11): Stuck Session Alerts — detect and surface session.stuck events in real time

2 participants