openclaw/src/auto-reply
Peter Steinberger d88ede92b9 feat: same-phone mode with echo detection and configurable marker
Adds full support for self-messaging setups where you chat with yourself
and an AI assistant replies in the same WhatsApp bubble.

Changes:
- Same-phone mode (from === to) always allowed, bypasses allowFrom check
- Echo detection via bounded Set (max 100) prevents infinite loops
- Configurable samePhoneMarker in config (default: "[same-phone]")
- Messages prefixed with marker so assistants know the context
- fromMe filter removed from inbound.ts (echo detection in auto-reply)
- Verbose logging for same-phone detection and echo skips

Tests:
- Same-phone allowed without/despite allowFrom configuration
- Body prefixed only when from === to
- Non-same-phone rejected when not in allowFrom
2025-11-29 04:52:21 +00:00
..
claude.test.ts chore: format to 2-space and bump changelog 2025-11-26 00:53:53 +01:00
claude.ts feat: add heartbeat cli and relay trigger 2025-11-26 17:04:43 +01:00
command-reply.test.ts Tests: cover identity prefix gating 2025-11-27 04:40:03 +01:00
command-reply.ts Claude prompt: only prepend on first turn 2025-11-27 03:53:13 +01:00
reply.ts feat: same-phone mode with echo detection and configurable marker 2025-11-29 04:52:21 +00:00
templating.ts chore: format to 2-space and bump changelog 2025-11-26 00:53:53 +01:00
transcription.test.ts web: add heartbeat and bounded reconnect tuning 2025-11-26 02:34:43 +01:00
transcription.ts refactor(auto-reply): split reply helpers 2025-11-26 02:03:51 +01:00
types.ts refactor(auto-reply): split reply helpers 2025-11-26 02:03:51 +01:00