Skip to content

Fix duplicate route handler registration panic#55

Merged
JoshuaAFerguson merged 2 commits into
mainfrom
claude/fix-duplicate-routes-01K3yV9euHhj5co3Krrmjm2H
Nov 17, 2025
Merged

Fix duplicate route handler registration panic#55
JoshuaAFerguson merged 2 commits into
mainfrom
claude/fix-duplicate-routes-01K3yV9euHhj5co3Krrmjm2H

Conversation

@JoshuaAFerguson

Copy link
Copy Markdown
Member

No description provided.

Removes the duplicate GET /sessions/:id/activity route from ActivityHandler.RegisterRoutes()
since this route is already registered with SessionActivityHandler which provides more
comprehensive activity tracking with database persistence and caching.

The ActivityHandler now only registers the POST /sessions/:id/heartbeat endpoint,
avoiding the panic: handlers are already registered for path '/api/v1/sessions/:id/activity'

Fixes duplicate route registration that was causing API server startup failure.
Removes the duplicate GET /ws/sessions route from the manual WebSocket group
since this route is already registered by websocketHandler.RegisterRoutes()
which provides comprehensive real-time session updates.

The manual WebSocket group now only contains cluster, logs, and enterprise
routes, while the websocketHandler handles sessions, notifications, metrics,
and alerts.

Fixes panic: handlers are already registered for path '/api/v1/ws/sessions'
@JoshuaAFerguson JoshuaAFerguson merged commit 21413cd into main Nov 17, 2025
8 of 23 checks passed
@JoshuaAFerguson JoshuaAFerguson deleted the claude/fix-duplicate-routes-01K3yV9euHhj5co3Krrmjm2H branch November 17, 2025 00:23
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.

2 participants