Continue location follow-ups from recent context
CI / test (push) Successful in 1m16s
CI / test (pull_request) Successful in 1m6s

This commit is contained in:
m
2026-08-25 06:00:45 +03:00
parent e271fbb1e1
commit 48af97fbdd
2 changed files with 10 additions and 5 deletions
+1 -3
View File
@@ -511,7 +511,6 @@ func main() {
var effectiveTaskMessage = interactiondomain.StripAssistantVocative(utterance.Content)
var previousTask *interaction.HumanUtterance
var conversationHistory []interaction.HumanUtterance
var conversationOnlyHistory []interaction.HumanUtterance
if request.ConversationID != "" {
var historyErr error
conversationHistory, historyErr = interactionRepository.Utterances(r.Context(), conversation.ID)
@@ -519,7 +518,6 @@ func main() {
log.Printf("interaction conversation history unavailable: %v", historyErr)
}
}
conversationOnlyHistory = append(conversationOnlyHistory, conversationHistory...)
// Keep durable user context available even when the web client carries a
// conversation ID; a new or rotated conversation must not erase learned
// preferences.
@@ -530,7 +528,7 @@ func main() {
log.Printf("interaction principal history loaded: %d utterances", len(recentUserHistory))
}
conversationHistory = append(conversationHistory, recentUserHistory...)
if continuation := interactiondomain.ContinueLocalSearch(effectiveTaskMessage, conversationOnlyHistory); continuation != "" {
if continuation := interactiondomain.ContinueLocalSearch(effectiveTaskMessage, conversationHistory); continuation != "" {
effectiveTaskMessage = continuation
}
if request.ConversationID != "" && interactiondomain.IsRetryRequest(utterance.Content) {