openclaw/src
Peter Steinberger e86b507da7 Add IPC to prevent Signal session corruption from concurrent connections
When the relay is running, `warelay send` and `warelay heartbeat` now
communicate via Unix socket IPC (~/.warelay/relay.sock) to send messages
through the relay's existing WhatsApp connection.

Previously, these commands created new Baileys sockets that wrote to the
same auth state files, corrupting the Signal session ratchet and causing
the relay's subsequent sends to fail silently.

Changes:
- Add src/web/ipc.ts with Unix socket server/client
- Relay starts IPC server after connecting
- send command tries IPC first, falls back to direct
- heartbeat uses sendWithIpcFallback helper
- inbound.ts exposes sendMessage on listener object
- Messages sent via IPC are added to echo detection set
2025-12-02 06:31:07 +00:00
..
auto-reply Fix test corrupting production sessions.json 2025-12-02 05:54:31 +00:00
cli feat(heartbeat): allow manual message and dry-run for web/twilio 2025-11-28 08:14:07 +01:00
commands Add IPC to prevent Signal session corruption from concurrent connections 2025-12-02 06:31:07 +00:00
config Simplify timestampPrefix: bool or timezone string, default true 2025-11-29 05:29:29 +00:00
infra chore: format to 2-space and bump changelog 2025-11-26 00:53:53 +01:00
media chore: release 1.2.1 2025-11-28 08:11:07 +01:00
process chore: format to 2-space and bump changelog 2025-11-26 00:53:53 +01:00
providers chore: format to 2-space and bump changelog 2025-11-26 00:53:53 +01:00
twilio feat(heartbeat): allow manual message and dry-run for web/twilio 2025-11-28 08:14:07 +01:00
web Add IPC to prevent Signal session corruption from concurrent connections 2025-12-02 06:31:07 +00:00
webhook chore: format to 2-space and bump changelog 2025-11-26 00:53:53 +01:00
env.test.ts chore: format to 2-space and bump changelog 2025-11-26 00:53:53 +01:00
env.ts chore: format to 2-space and bump changelog 2025-11-26 00:53:53 +01:00
globals.test.ts chore: format to 2-space and bump changelog 2025-11-26 00:53:53 +01:00
globals.ts chore: format to 2-space and bump changelog 2025-11-26 00:53:53 +01:00
index.commands.test.ts chore: format to 2-space and bump changelog 2025-11-26 00:53:53 +01:00
index.core.test.ts Fix test isolation to prevent loading real user config 2025-11-30 18:00:57 +00:00
index.test.ts chore: format to 2-space and bump changelog 2025-11-26 00:53:53 +01:00
index.ts Heartbeat defaults and ws guard; format 2025-11-27 18:37:30 +01:00
logger.test.ts chore: format to 2-space and bump changelog 2025-11-26 00:53:53 +01:00
logger.ts chore: format to 2-space and bump changelog 2025-11-26 00:53:53 +01:00
logging.ts CLI: rename heartbeat tmux helper and log file path 2025-11-26 18:00:23 +01:00
provider-web.barrel.test.ts docs: finalize web refactor and coverage 2025-11-26 02:54:43 +01:00
provider-web.ts Heartbeat: harden targeting and support lid mapping 2025-11-26 18:15:57 +01:00
runtime.ts chore: format to 2-space and bump changelog 2025-11-26 00:53:53 +01:00
utils.test.ts Heartbeat: harden targeting and support lid mapping 2025-11-26 18:15:57 +01:00
utils.ts Heartbeat: harden targeting and support lid mapping 2025-11-26 18:15:57 +01:00
version.ts Refactor: derive version from package.json 2025-11-25 17:10:53 +01:00