Commit Graph
3 Commits
Author SHA1 Message Date
Naster17 3cc3012b3a feat(tg): collapse context compaction notices into one edited message
Context compaction previously posted two separate chat messages: a
'Compressing context…' notice when compaction started and a follow-up
'Context compacted.' once it finished.

The Telegram channel now collapses this into a single message: the
started phase posts the notice and remembers its message id, and a
terminal phase (succeeded/failed/cancelled) edits that same message in
place instead of posting another. If the edit fails, a fresh message
keeps the outcome visible. Notices are keyed by compaction id and
bounded, so concurrent or abandoned compactions cannot leak state.
2026-09-11 13:16:19 +08:00
Nasterandchengyongru da749b4a87 fix(command): rename hyphenated slash commands to Telegram-safe underscores (#5711)
Co-authored-by: chengyongru <chengyongru.ai@gmail.com>
2026-09-10 13:30:02 +08:00
Naster17 6a8647cfb6 fix(tg): route /compact and /evaluator-prompt to the command router
The Telegram channel forwards slash commands through an allowlist regex
that must mirror the builtin command router. /compact and
/evaluator-prompt were missing from it, and messages starting with '/'
never reach the generic text handler, so both commands were silently
dropped: pressing /compact did nothing at all.

Add both commands to the allowlist, register /compact in the Telegram
command menu, and pin the router/regex pairing in the existing regex
test.
2026-09-10 11:44:17 +08:00