feat(whatsapp): add soft-thread sessions#16953
Conversation
77c2c98 to
0204591
Compare
0204591 to
4fa28fc
Compare
|
Thanks for this — the engineering here is genuinely clean. Mapping reply relationships onto synthetic We're going to close it as a product decision, not a code-quality one. The issue is the platform fit. WhatsApp's UX is a single flat stream — users don't think in "sessions," they just talk. This feature silently forks a chat into context-isolated lanes based on whether someone happened to tap "reply" on an older message, surfaces an unsolicited "🧵 New WhatsApp session started" notice, and exposes If we revisit flat-platform sessions later, the bar would be opt-in and explicit-only: default off, no auto-fork on reply, no unsolicited notices, sessions created solely when a user runs Appreciate the contribution and the care that went into it. |
Summary
thread_idvalues in the adapter./sessionscontrols for listing, switching, and creating WhatsApp sessions.How it works
/sessionslists the active WhatsApp sessions for the chat./sessions newmakes the next unquoted message use a fresh session./sessions new <message>creates a fresh session and sends<message>into it immediately./sessions <number>switches the current unquoted-message focus to one of the listed sessions.Current version
origin/main.02045915eac71eac57f9fa4684c18a6348cef6d7./sessionsUX andenable_sessions/session_idle_minutes/session_max_live_per_chatconfiguration names.Test Plan
git diff --check origin/main...HEADscripts/run_tests.sh tests/gateway/test_whatsapp_sessions.py tests/gateway/test_whatsapp_group_gating.py -q— 41 passedRefresh status
main.4fa28fc8b.mergeable: true;mergeable_state: unstablebecause GitHub checks are pending/absent, not because of conflicts.