Skip to content

Commit 1cae3a9

Browse files
andigclaude
andcommitted
fix: correct misleading comment about response delivery
The comment incorrectly stated that responses are broadcast to all sessions, but the implementation actually delivers responses to the specific session identified by sessionID using the activeSessions registry. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent a4ec0b3 commit 1cae3a9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

server/streamable_http.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -587,9 +587,7 @@ func (s *StreamableHTTPServer) handleSamplingResponse(w http.ResponseWriter, r *
587587
}
588588

589589
// Find the corresponding session and deliver the response
590-
// Note: In a real implementation, we would need to maintain a mapping of sessionID to session instances
591-
// For now, we'll use a simplified approach by broadcasting to all active sessions
592-
// This is a limitation of the current architecture that would need to be addressed in production
590+
// The response is delivered to the specific session identified by sessionID
593591
s.deliverSamplingResponse(sessionID, response)
594592

595593
// Acknowledge receipt

0 commit comments

Comments
 (0)