(c *gin.Context, eid int64, userID int64, agent *model.Agent, conversationIDValue interface{})
| 250 | } |
| 251 | |
| 252 | func handleRelayConversationIDForAgent(c *gin.Context, eid int64, userID int64, agent *model.Agent, conversationIDValue interface{}) bool { |
| 253 | if agent != nil && agent.IsOpenClawWSCompatible() { |
| 254 | rawConversationID, ok := stringifyConversationID(conversationIDValue) |
| 255 | if !ok { |
| 256 | writeConversationNotFound(c) |
| 257 | return false |
| 258 | } |
| 259 | c.Set(session.SESSION_CONVERSATION_ID, rawConversationID) |
| 260 | return true |
| 261 | } |
| 262 | return handlePlatformConversationID(c, eid, userID, conversationIDValue) |
| 263 | } |
| 264 | |
| 265 | func handlePlatformConversationID(c *gin.Context, eid int64, userID int64, conversationIDValue interface{}) bool { |
| 266 | conversationID, ok := parsePlatformConversationID(conversationIDValue) |
no test coverage detected