Skip to content

Conversation

@tpellet
Copy link

@tpellet tpellet commented Jan 23, 2026

Summary

  • Approval detection: Automatically detects permission requests in Claude responses (patterns like "Do you want...", "Should I...", "Can I...")
  • Prominent display: Shows "ACTION REQUIRED" banner at top with the approval question highlighted
  • Inline buttons: Adds clickable response buttons:
    • ✅ Yes / ❌ No
    • ⏭️ Skip / 🚫 Always Deny
    • ✅ Yes, don't ask again
  • Increased limits: Expanded truncation limits (500 chars for questions, 2500 chars for responses) to show more context
  • Message splitting: Long messages are split into multiple parts with [1/N] labels
  • Callback handling: Webhook processes button clicks and injects responses into tmux session

Test plan

  • Unit tests pass (24/24) - node test-telegram-approval.js
  • Live tested approval notification with buttons
  • Verified button callbacks are processed correctly
  • Tested message splitting with long content

🤖 Generated with Claude Code

- Detect approval/permission requests in Claude responses
- Show ACTION REQUIRED banner with approval question at top
- Add inline buttons: Yes, No, Skip, Always Deny, Yes don't ask again
- Increase truncation limits (500 chars question, 2500 chars response)
- Split long messages into multiple parts with [1/N] labels
- Handle approval button callbacks in webhook

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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