claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Add webhook notification support for user confirmation operations

Open 2019COVID opened this issue 1 year ago • 2 comments

Feature Request: Webhook Notifications for User Confirmation Operations

Problem

Currently, when Claude Code encounters operations that require user confirmation, users must remain in the interactive terminal session waiting for the prompt. This creates a poor user experience for long-running tasks or when users need to step away from their terminal.

Proposed Solution

Add configuration support for webhook notifications that can alert users when their confirmation is needed for operations such as:

  • File modifications that require approval
  • Potentially destructive operations
  • Security-sensitive actions
  • Large-scale changes

Suggested Implementation

  1. Add webhook configuration options (URL, authentication, payload format)
  2. Allow users to configure webhook endpoints in settings
  3. Send notifications when user confirmation is required
  4. Include relevant context in webhook payload (operation type, files affected, etc.)
  5. Provide a way for users to respond to confirmations remotely (optional)

Use Cases

  • Users working on long-running tasks who need to step away
  • Team environments where notifications can be sent to communication channels
  • CI/CD integration scenarios
  • Remote development workflows

Configuration Example

webhooks:
  confirmation_required:
    url: "https://api.example.com/claude-notifications"
    headers:
      Authorization: "Bearer token"
    enabled: true

This would significantly improve the user experience by allowing asynchronous interaction with Claude Code operations.

🤖 Generated with Claude Code

2019COVID avatar May 31 '25 11:05 2019COVID

This would be useful, for now I'm using tmux pipe-pane with interactive notifications to drop me back to the tmux pane where the confirmation dialog appeared. It works, but is limited to tmux.

Piotr1215 avatar Jun 07 '25 08:06 Piotr1215

+1

kaseonedge avatar Jun 26 '25 02:06 kaseonedge