Skip to content

POC: Unify --events and --thin-events into a single flag#1763

Draft
yahanxing-stripe wants to merge 2 commits into
masterfrom
yx/poc-unified-events
Draft

POC: Unify --events and --thin-events into a single flag#1763
yahanxing-stripe wants to merge 2 commits into
masterfrom
yx/poc-unified-events

Conversation

@yahanxing-stripe

Copy link
Copy Markdown
Contributor

Summary

POC for v2 stripe listen redesign. Unifies --events and --thin-events into a single --events flag that auto-detects thin vs snapshot from the event name pattern (^v[0-9]+\. = thin).

  • Removes --thin-events, --forward-thin-to, --forward-thin-connect-to
  • --forward-to now forwards both payload styles
  • * wildcard opens both websocket channels

🤖 Generated with Claude Code

This is a v2 breaking change that removes the separate --thin-events,
--forward-thin-to, and --forward-thin-connect-to flags. Instead, the
unified --events flag accepts both snapshot event types (e.g.
charge.captured) and thin event types (e.g. v1.billing.meter.no_meter_found),
auto-detecting the payload style from the event name pattern (v[0-9]+. prefix).

The --forward-to flag now forwards both snapshot and thin events to the
same destination. Internally, events are still split into two channels
(webhooks + v2_events) for the proxy layer.

Key behavior changes:
- `stripe listen` with default --events "*" now opens BOTH websocket
  channels (snapshot + thin)
- `--forward-to` forwards both payload styles to the same URL
- `--forward-connect-to` forwards both payload styles for connect events

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Committed-By-Agent: claude
@yahanxing-stripe yahanxing-stripe force-pushed the yx/poc-unified-events branch from 4e46750 to ab0888c Compare July 9, 2026 17:39
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Committed-By-Agent: claude
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