Compare commits
No commits in common. "hermes-repair/sonar-AZ2y3T24Ky9i4pkIpSiI" and "main" have entirely different histories.
hermes-rep
...
main
@ -163,10 +163,11 @@ class MatrixBot:
|
|||||||
note = "thinking"
|
note = "thinking"
|
||||||
snippet = note[:64]
|
snippet = note[:64]
|
||||||
now = time.monotonic()
|
now = time.monotonic()
|
||||||
should_send = (
|
should_send = False
|
||||||
(snippet and snippet != last_note)
|
if snippet and snippet != last_note:
|
||||||
or now - last_sent >= max(60.0, self._settings.thinking_interval_sec * 2)
|
should_send = True
|
||||||
)
|
elif now - last_sent >= max(60.0, self._settings.thinking_interval_sec * 2):
|
||||||
|
should_send = True
|
||||||
if should_send:
|
if should_send:
|
||||||
msg = f"Still thinking — {snippet}…"
|
msg = f"Still thinking — {snippet}…"
|
||||||
await self._client.send_message(token, room_id, msg)
|
await self._client.send_message(token, room_id, msg)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user