From 8071c7b522c32d708f38a7630ca5fe0a02ab014f Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Thu, 3 Jul 2025 22:40:16 +0200 Subject: [PATCH] Store the normalized line not the raw line! --- app/models/command/ai/parser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/command/ai/parser.rb b/app/models/command/ai/parser.rb index c2e1db3b3..59014f900 100644 --- a/app/models/command/ai/parser.rb +++ b/app/models/command/ai/parser.rb @@ -30,7 +30,7 @@ class Command::Ai::Parser commands.unshift Command::VisitUrl.new(user: user, url: query_context.url, context: resolved_context) end - Command::Composite.new(title: query, commands: commands, user: user, line: query, context: resolved_context) + Command::Composite.new(title: query, commands: commands, user: user, line: normalized_query, context: resolved_context) end def commands_from_query(normalized_query, context)