diff --git a/cmd/core-runtime/main.go b/cmd/core-runtime/main.go index bd20cec..d5c718b 100644 --- a/cmd/core-runtime/main.go +++ b/cmd/core-runtime/main.go @@ -813,11 +813,13 @@ func main() { log.Printf("cognitive response review proposed stable semantic rewrite; preserving semantic reply") } } - if !responseResult.Handled && identityReply == "" { - if stableReply, stable := interactiondomain.StableConversationalReply(utterance.Content, deterministicSpeechAct); stable { + if identityReply == "" { + stableAct := interactiondomain.ClassifySpeechAct(utterance.Content, utterance.CorrectsUtteranceID) + if stableReply, stable := interactiondomain.StableConversationalReply(utterance.Content, stableAct); stable { planningReply = stableReply } } + log.Printf("chat response final message=%q act=%s deterministic=%s handled=%t fallback=%q planning=%q", utterance.Content, semantic.Interpretation.SpeechAct, deterministicSpeechAct, responseResult.Handled, semantic.Reply, planningReply) response := interaction.ChatMessageResponse{ ConversationID: conversation.ID, UtteranceID: utterance.ID,