@llblab/pi-telegram 0.26.15 → 0.26.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.26.16: Follower Edit Normalization Hotfix
4
+
5
+ - `Follower Edit Normalization`: The bus-routed `editMessageText` path now treats Telegram's "message is not modified" rejection as an unchanged edit instead of a failure, matching the direct transport path. Impact: reasoning activity on follower instances no longer freezes its thinking block when an edit targets identical content (for example a repeated reasoning-end flush), because the failed edit no longer marks the whole block as blocked.
6
+
3
7
  ## 0.26.15: Follower Bus Timeout Hotfix
4
8
 
5
9
  - `Follower Bus Timeout`: Restored the 30-second default for follower-client bus calls (update forwarding, thread-target control, and API calls) after an entrypoint compression pass dropped the explicit timeout and left the forwarding path falling through to the 1-second transport default. The shared default now lives on the follower client runtime as `TELEGRAM_BUS_FOLLOWER_CLIENT_TIMEOUT_MS`. Impact: leader-to-follower update forwarding no longer times out under load, so polling stops re-fetching and re-downloading the same update (which previously delivered one voice message as three identical turns).
package/lib/bus-api.ts CHANGED
@@ -5,6 +5,7 @@
5
5
  */
6
6
 
7
7
  import { stripTelegramBusApiMetadata } from "./bus.ts";
8
+ import { isTelegramMessageNotModifiedError } from "./telegram-api.ts";
8
9
  import type {
9
10
  TelegramAnswerGuestQueryOptions,
10
11
  TelegramApiCallOptions,
@@ -262,8 +263,13 @@ export function createTelegramBusAwareApiRuntime(
262
263
  body: TelegramEditMessageTextBody,
263
264
  ): Promise<"edited" | "unchanged"> {
264
265
  if (deps.ownsDirect()) return deps.directRuntime.editMessageText(body);
265
- await deps.callFollowerApi("call", ["editMessageText", body]);
266
- return "edited";
266
+ try {
267
+ await deps.callFollowerApi("call", ["editMessageText", body]);
268
+ return "edited";
269
+ } catch (error) {
270
+ if (isTelegramMessageNotModifiedError(error)) return "unchanged";
271
+ throw error;
272
+ }
267
273
  },
268
274
  async editMessageReplyMarkup(
269
275
  chatId: number,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@llblab/pi-telegram",
3
- "version": "0.26.15",
3
+ "version": "0.26.16",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"