fix: make quote trimming explicit

Agent-Logs-Url: https://github.com/MemPalace/mempalace/sessions/775f2fc4-3051-462e-8586-6d694b55da0d

Co-authored-by: igorls <4753812+igorls@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-12 22:26:41 +00:00
committed by Igor Lins e Silva
parent 976289aa5c
commit b1a676fa24
2 changed files with 8 additions and 3 deletions
+1
View File
@@ -112,6 +112,7 @@ class TestTailSentence:
query = ("Prefix text " * 30) + '\n"' + ("x" * 260) + '"'
result = sanitize_query(query)
assert result["method"] == "tail_sentence"
assert result["clean_query"] == "x" * MAX_QUERY_LENGTH
assert not result["clean_query"].startswith('"')
assert not result["clean_query"].endswith('"')
assert len(result["clean_query"]) <= MAX_QUERY_LENGTH