fix(matrix): disable streaming cursor decoration on Matrix

This commit is contained in:
helix4u 2026-04-12 16:20:56 -06:00 committed by Teknium
parent 0ffb6f2dae
commit f94f53cc22
2 changed files with 60 additions and 6 deletions

View file

@ -7816,6 +7816,11 @@ class GatewayRunner:
# response, just without the typing indicator.
_adapter_supports_edit = getattr(_adapter, "SUPPORTS_MESSAGE_EDITING", True)
_effective_cursor = _scfg.cursor if _adapter_supports_edit else ""
# Some Matrix clients render the streaming cursor
# as a visible tofu/white-box artifact. Keep
# streaming text on Matrix, but suppress the cursor.
if source.platform == Platform.MATRIX:
_effective_cursor = ""
_consumer_cfg = StreamConsumerConfig(
edit_interval=_scfg.edit_interval,
buffer_threshold=_scfg.buffer_threshold,