Commit Graph

14 Commits

Author SHA1 Message Date
Narasimha-sc 6d69cf9a7c support-bot: add tests for Grok batch dedup and initial response gating
7 new tests covering the duplicate Grok reply fix:
- batch dedup: only last customer message per group triggers API call
- batch dedup: multi-group batches handled independently
- batch dedup: non-customer messages filtered from batch
- initial response gating: per-message responses suppressed during activateGrok
- gating clears: per-message responses resume after activation completes

Update implementation plan test catalog (122 → 129 tests).
2026-04-16 10:55:28 +00:00
Narasimha-sc 1f1777cbe1 support-bot: more improvemets 2026-04-16 10:23:19 +00:00
Narasimha-sc 8d597ba813 support-bot: use apiCreateMemberContact and apiSendMemberContactInvitation instead of raw commands
Replace sendChatCmd("/_create member contact ...") and sendChatCmd("/_invite member contact ...")
with the typed API methods added in simplex-chat-nodejs. Update plans and build script accordingly.
2026-04-10 12:33:30 +00:00
Narasimha-sc ff5919e731 support-bot: implement stateless bot with cards, Grok, team flow, hardening
Complete rewrite of the support bot to stateless architecture:
- State derived from group composition + chat history (survives restarts)
- Card dashboard in team group with live status, preview, /join commands
- Two-profile architecture (main + Grok) with profileMutex serialization
- Grok join race condition fix via bufferedGrokInvitations
- Card preview: newest-first truncation, newline sanitization, sender prefixes
- Best-effort startup (invite link, group profile update)
- Team group preferences: directMessages, fullDelete, commands
- 122 tests across 27 suites
2026-04-10 12:33:30 +00:00
Narasimha-sc bcafd829e5 support-bot: update implementation plan 2026-04-10 10:32:48 +00:00
Narasimha-sc 3a5808f6b4 support-bot: update product spec — complete state, /join team-only, card debouncing
- Group preferences applied once at creation, not on every startup
- /join restricted to team group only
- Team/Grok reply or reaction auto-completes conversation ()
- Customer message reverts to incomplete
- Card updates debounced globally with 15-minute batch flush
2026-04-10 10:32:48 +00:00
Narasimha-sc c3bd36b205 support-bot: review and refine product spec 2026-04-10 10:32:48 +00:00
Narasimha-sc 8d76f4c65b support-bot: update plan 2026-04-10 10:32:48 +00:00
Narasimha-sc 98bea97d8e simplex-support-bot: update product design plan 2026-04-10 10:32:48 +00:00
Narasimha-sc 4408f335a9 simplex-support-bot: Update support plan to reflect current flow 2026-04-10 10:32:48 +00:00
Narasimha-sc f25f5cbf0a apps: support-bot /add command & fixes 2026-04-10 10:32:48 +00:00
Narasimha-sc ce9dba8ee1 support-bot: Fix basic functionality 2026-04-10 10:32:48 +00:00
Narasimha-sc 0d290eb7b0 apps: support bot relocate 2026-04-10 10:32:48 +00:00
Narasimha-sc baa567e854 Relocate plans 2026-04-10 10:32:48 +00:00