We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28c6b7e commit a0ee84fCopy full SHA for a0ee84f
1 file changed
src/copaw/app/channels/base.py
@@ -197,7 +197,7 @@ def _on_debounce_buffer_append(
197
del existing_items
198
199
def _content_has_text(self, contents: List[Any]) -> bool:
200
- """True if contents has actionable text/media payload."""
+ """True if contents has at least one TEXT or REFUSAL with non-empty."""
201
if not contents:
202
return False
203
for c in contents:
@@ -212,14 +212,6 @@ def _content_has_text(self, contents: List[Any]) -> bool:
212
and (getattr(c, "refusal", None) or "").strip()
213
):
214
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
223
224
225
def _apply_no_text_debounce(
0 commit comments