fix(service): enhance message filtering to drop empty chat messages while retaining tool requests
Some checks failed
CI / lint (push) Has been cancelled
CI / unit tests (push) Has been cancelled
CI / integration tests (push) Has been cancelled
CI / package build (push) Has been cancelled
Commit lint / pull request title (push) Has been cancelled
Commit lint / commit messages (push) Has been cancelled
Docs / links (push) Has been cancelled

This commit is contained in:
2026-06-16 16:18:24 +08:00
parent 0910affc78
commit b243018aff
14 changed files with 248 additions and 38 deletions

View File

@ -18,6 +18,11 @@ def test_has_unparsed_multimodal_false_when_all_text() -> None:
assert availability.has_unparsed_multimodal(items) is False
def test_has_unparsed_multimodal_false_for_md() -> None:
items = [{"type": "md", "text": "# hi"}]
assert availability.has_unparsed_multimodal(items) is False
def test_has_unparsed_multimodal_false_when_already_parsed() -> None:
items = [{"type": "image", "uri": "x", "parsed_content": "ocr"}]
assert availability.has_unparsed_multimodal(items) is False