Skip to content

feat: Telegram thinking status line behind a config flag - #293

Merged
popodidi merged 1 commit into
mainfrom
axe/task-2528--work
Dec 3, 2026
Merged

popodidi merged 1 commit into
mainfrom
axe/task-2528--work

Conversation

@popodidi

@popodidi popodidi commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Task 2528 (owner msg #6859). Adds [telegram] thinking_status, off by default.

On: in the owner's private chat, an accepted message or button press now also sends sendRichMessageDraft with one <tg-thinking> block. Telegram shows this as an animated status line: "Waking up…" at first, then "Working…" on each 4 s typing refresh while the woken run is live. It stops once the bot sends its next message to that chat, and Telegram clears the draft at that point too. Groups get typing only, because drafts work in private chats only.

Off: today's calls, byte for byte.

API facts (core.telegram.org/bots/api, Bot API 10.5):

  • sendRichMessageDraft was added in 10.1 (2026-06-11).
  • RichBlockThinking "may be used only in sendRichMessageDraft".
  • A draft is a "temporary 30-second preview".

The server adds the status line itself, so the model writes no markup and the prompt and skill are unchanged.

  • Code: TgBot::accepted, TgBot::awaits_reply, thinking_draft and typing_loop in crates/axe-telegram/src/telegram.rs. Api records the last real send* per chat.
  • Config key: crates/axe-core/src/config.rs.
  • Tests: thinking_status_off_sends_typing_only and thinking_status_on_streams_a_thinking_draft_until_the_bot_replies in crates/axe/tests/telegram.rs.
  • Docs: docs/user/reference/config.md, docs/user/primitives/bot.md, docs/design/bots.md.

🤖 Generated with Claude Code

Off by default. On: in the owner's private chat, an accepted message also
streams a sendRichMessageDraft with a <tg-thinking> block (Bot API 10.1),
Waking up then Working, until the bot's next message there. Groups and
flag off keep typing only, byte for byte.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@popodidi
popodidi merged commit 0c0aea9 into main Dec 3, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant