diff --git a/modules/interaction/domain/chat.go b/modules/interaction/domain/chat.go index 11be380..63fc2f7 100644 --- a/modules/interaction/domain/chat.go +++ b/modules/interaction/domain/chat.go @@ -567,7 +567,7 @@ func isAssistantStatusProbe(primary, secondary interaction.SpeechAct, tokens []s return false } for index := 0; index < len(tokens)-1; index++ { - if tokens[index] == "не" && (containsStem(tokens[index+1], "вид", "понима", "ответ", "работа", "реагир", "слыш", "ищ", "уведом", "чувств")) { + if tokens[index] == "не" && (containsStem(tokens[index+1], "вид", "виж", "понима", "ответ", "работа", "реагир", "слыш", "ищ", "уведом", "чувств")) { return true } } diff --git a/modules/interaction/domain/chat_test.go b/modules/interaction/domain/chat_test.go index 6621257..5b8ac77 100644 --- a/modules/interaction/domain/chat_test.go +++ b/modules/interaction/domain/chat_test.go @@ -86,6 +86,7 @@ func TestDeterministicCandidateTreatsModalExplanationRequestsAsCognitionWorthWit "про утро расскажешь", "РАССКАЖИ ПОХОЖЕ ЧТО ПРОИСХОДИТ", "можете обяснить почему база растет", + "ты не видишь ии", } { candidate := BuildDeterministicCandidate(message, "", time.Unix(10, 0).UnixMilli()) if !candidate.NeedsCognition { @@ -116,4 +117,4 @@ func TestNewConversationRequiresActorAndPrincipal(t *testing.T) { if err == nil { t.Fatal("expected invalid principal") } -} \ No newline at end of file +} diff --git a/modules/interaction/domain/semantics_test.go b/modules/interaction/domain/semantics_test.go index effc68e..74298d1 100644 --- a/modules/interaction/domain/semantics_test.go +++ b/modules/interaction/domain/semantics_test.go @@ -145,6 +145,9 @@ func TestInterpretUtteranceNaturalRussianHelpflowUsesContextAwareCognitionInput( {message: "кто ты вообще", wantSpeech: interaction.SpeechActQuestion, wantCognition: true}, {message: "что ты думаешь", wantSpeech: interaction.SpeechActQuestion, wantCognition: true}, {message: "расскажи подробнее", wantSpeech: "", wantCognition: true, allowNoMatch: true}, + {message: "СЕЙЧАС ДОМОВОЙ НЕ ВИДИТ ИИ", wantSpeech: "", wantCognition: true, allowNoMatch: true}, + {message: "не понимаю меня не понимает ии", wantSpeech: "", wantCognition: true, allowNoMatch: true}, + {message: "домовой не вижит ии", wantSpeech: "", wantCognition: true, allowNoMatch: true}, } for _, tc := range cases { result := interpretForTest(t, tc.message, nil, "")