Skip to content

Commit a0ee84f

Browse files
authored
1 parent 28c6b7e commit a0ee84f

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

src/copaw/app/channels/base.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def _on_debounce_buffer_append(
197197
del existing_items
198198

199199
def _content_has_text(self, contents: List[Any]) -> bool:
200-
"""True if contents has actionable text/media payload."""
200+
"""True if contents has at least one TEXT or REFUSAL with non-empty."""
201201
if not contents:
202202
return False
203203
for c in contents:
@@ -212,14 +212,6 @@ def _content_has_text(self, contents: List[Any]) -> bool:
212212
and (getattr(c, "refusal", None) or "").strip()
213213
):
214214
return True
215-
# Media/file-only messages should also be processed immediately.
216-
if t in (
217-
ContentType.IMAGE,
218-
ContentType.VIDEO,
219-
ContentType.AUDIO,
220-
ContentType.FILE,
221-
):
222-
return True
223215
return False
224216

225217
def _apply_no_text_debounce(

0 commit comments

Comments
 (0)