Skip to content

feat(telegram): forward full CC output in verbose mode#3196

Merged
aegis-gh-agent[bot] merged 3 commits into
developfrom
feat/3190-telegram-verbose-output
May 11, 2026
Merged

feat(telegram): forward full CC output in verbose mode#3196
aegis-gh-agent[bot] merged 3 commits into
developfrom
feat/3190-telegram-verbose-output

Conversation

@OneStepAt4time

Copy link
Copy Markdown
Owner

Summary

Implements #3190 — forward full Claude Code output to Telegram (thinking, tool calls, code) via configurable verbose mode.

Changes

  • config.ts: Add tgVerbose boolean (default: false), env AEGIS_TG_VERBOSE
  • telegram.ts: Forward message.thinking as 💭 italic text when verbose
  • telegram.ts: Forward message.tool_use details with 🔧 code formatting when verbose
  • server.ts: Wire verbose flag to TelegramChannel config
  • Tests: Updated 8 test fixtures with tgVerbose: false default

Usage

# Enable verbose Telegram output
AEGIS_TG_VERBOSE=true

Or in config:

tgVerbose: true

Behavior

Event Without verbose With verbose
message.thinking Silent 💭 thinking text (truncated 800 chars)
message.tool_use Progress tracking only 🔧 tool.label + code block (truncated 600 chars)
message.assistant Forwarded Forwarded (unchanged)
message.user Forwarded Forwarded (unchanged)

Verification

tsc --noEmit  ✓  (zero errors)
npm run build ✓
npm test      ✓  (1248 passed, 0 failed)

Fixes #3190

Add configurable verbose mode that forwards thinking blocks, tool call
details, and code to Telegram instead of silencing them.

Changes:
- config.ts: add tgVerbose boolean (default: false), env AEGIS_TG_VERBOSE
- telegram.ts: forward message.thinking as italic when verbose
- telegram.ts: forward tool_use details with code formatting when verbose
- server.ts: wire verbose flag to TelegramChannel config

Usage: set AEGIS_TG_VERBOSE=true or tgVerbose: true in config.

Without verbose: only assistant messages shown (existing behavior).
With verbose: thinking and tool calls also forwarded to Telegram.

Gate: tsc --noEmit ✓, build ✓, 1248 tests ✓

Closes #3190

@aegis-gh-agent aegis-gh-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔧 Changes requested — 2 findings.

Finding #1 (Medium): feat-minor-bump-gate failing
Title is feat(telegram):... — needs approved-minor-bump label. Add label and re-run CI.

Finding #2 (HIGH): Markdown formatting in HTML parse_mode
The channel uses parse_mode HTML everywhere, but the new verbose messages use Markdown syntax:

  • text renders as literal underscores in HTML mode, not italic. Use i tags instead.
  • Backtick code blocks render as literal backticks. Use code and pre tags instead.

Fix: replace Markdown formatting with proper HTML tags consistent with the rest of the channel.

Otherwise clean: Config wiring correct (env var + config file + defaults), truncation sensible, 8 test fixtures updated, opt-in default.

@OneStepAt4time OneStepAt4time added the approved-minor-bump Approves a minor version bump for release-please label May 11, 2026
Argus review finding: channel uses HTML parse_mode, not Markdown.
Replace Markdown italic (_text_) with <i> via italic() helper.
Replace Markdown backticks with <code> and <pre> via code() helper.

@aegis-gh-agent aegis-gh-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Approved. Both findings resolved — HTML formatting now uses italic()/code()/pre tags from telegram-style.ts. CI green, label present. Merging.

@aegis-gh-agent aegis-gh-agent Bot merged commit 2409f5a into develop May 11, 2026
17 checks passed
@aegis-gh-agent aegis-gh-agent Bot deleted the feat/3190-telegram-verbose-output branch May 11, 2026 11:05
aegis-gh-agent Bot pushed a commit that referenced this pull request May 11, 2026
Documents PR #3196 — forward full CC output (thinking, tool calls, code)
to Telegram via configurable verbose mode.

Updates:
- notifications.md: Verbose Mode section with behavior table
- enterprise.md: AEGIS_TG_VERBOSE env var in config table
- enterprise/01-architecture.md: AEGIS_TG_VERBOSE in env var inventory
aegis-gh-agent Bot pushed a commit that referenced this pull request May 11, 2026
Covers PRs #3176-#3197 merged after the initial CHANGELOG update (#3175):
- Added: budget progress bars (#3183), Telegram verbose mode (#3196),
  dashboard i18n (#3192)
- Fixed: RBAC guards (#3187), process reap (#3191), i18n aria-labels (#3195),
  security helpers (#3177)
- Docs: threat matrix (#3176), blog (#3179), RBAC docs (#3188, #3193),
  tg-verbose docs (#3197)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved-minor-bump Approves a minor version bump for release-please

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant