Skip to content

Telegram photo bursts can interrupt active runs with 'Operation interrupted: waiting for model response' #1409

@jplew

Description

@jplew

Summary

Rapid Telegram photo bursts/albums can arrive as multiple near-simultaneous PHOTO updates. The gateway treats later images as fresh user interrupts while the model is still responding, which can surface this error:

Operation interrupted: waiting for model response (0.5s elapsed).

Repro pattern

  • send multiple Telegram photos quickly (album or burst)
  • while Hermes is still processing the first image turn, later PHOTO updates arrive
  • the running agent is interrupted even though the updates are part of the same logical image send

Expected

Photo bursts/albums should be batched/queued and processed as one logical follow-up without interrupting the active run.

Actual

The run can be interrupted mid-response, producing the user-visible interruption error.

Notes

We validated this behavior in a local Telegram gateway setup and prepared a fix that:

  • batches Telegram photo bursts/albums
  • avoids priority interrupts for PHOTO follow-ups
  • adds regression coverage for Telegram photo batching and image enrichment handling

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions