Stop repeat cognition for stable replies #311

Merged
m merged 2 commits from codex/chat-semantic-inventory into main 2026-08-25 01:44:20 +00:00
+4
View File
@@ -817,8 +817,12 @@ func main() {
stableAct := interactiondomain.ClassifySpeechAct(utterance.Content, utterance.CorrectsUtteranceID)
if stableReply, stable := interactiondomain.StableConversationalReply(utterance.Content, stableAct); stable {
planningReply = stableReply
needsCognition = false
}
}
if identityReply != "" {
needsCognition = false
}
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,