Commit graph

2 commits

Author SHA1 Message Date
2d0d4da992 fix(02-02): typing indicator lifecycle, model identity, tool permissions
- Fix typing indicator not showing: clean up stale typing tasks between
  messages and use dynamic event lookup in callbacks instead of capturing
  a specific event at creation time
- Fix stream-json input format: use nested message object for stdin NDJSON
- Switch --system-prompt to --append-system-prompt so Claude Code's
  default system prompt (with model identity) is preserved
- Add --dangerously-skip-permissions for full tool access in subprocess
- Use full model ID (claude-sonnet-4-5-20250929) in default persona

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 22:10:02 +00:00
6b624d7f80 feat(02-01): create telegram_utils with message formatting
- Add split_message_smart: code-block-aware message splitting at 4000 chars
- Add escape_markdown_v2: escape 17 special chars outside code blocks
- Add typing_indicator_loop: re-send typing every 4s with asyncio.Event
- Smart splitting respects triple-backtick and single-backtick boundaries
- Never splits inside code blocks (preserves syntax)
- Regex pattern identifies code regions for selective escaping
2026-02-04 19:17:20 +00:00