When sending a long message on Telegram it is split into smaller messages.
Current system seems to trigger a Claude Code run per message sequentially, which works bad, is slow and wasteful.
I would expect it to concatenate all messages into a single request and send it.
This is especially painful when pasting longer texts into the chat.
Perhaps a fix would involve some per-(user, topic) buffer to which messages are appended? If the message sent is close to the limit, start a short timer, and if more messages arrive concat into a single message. Not sure if there is more elegant solution.
When sending a long message on Telegram it is split into smaller messages.
Current system seems to trigger a Claude Code run per message sequentially, which works bad, is slow and wasteful.
I would expect it to concatenate all messages into a single request and send it.
This is especially painful when pasting longer texts into the chat.
Perhaps a fix would involve some per-(user, topic) buffer to which messages are appended? If the message sent is close to the limit, start a short timer, and if more messages arrive concat into a single message. Not sure if there is more elegant solution.