openclaw/src/web
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.test.ts web: isolate session fixtures and skip heartbeat when busy 2025-12-02 06:17:16 +00:00
auto-reply.ts Add IPC to prevent Signal session corruption from concurrent connections 2025-12-02 06:31:07 +00:00
inbound.media.test.ts Fix test isolation to prevent loading real user config 2025-11-30 18:00:57 +00:00
inbound.test.ts refactor(web): split provider module 2025-11-26 01:16:54 +01:00
inbound.ts Add IPC to prevent Signal session corruption from concurrent connections 2025-12-02 06:31:07 +00:00
ipc.ts Add IPC to prevent Signal session corruption from concurrent connections 2025-12-02 06:31:07 +00:00
login.coverage.test.ts docs: finalize web refactor and coverage 2025-11-26 02:54:43 +01:00
login.test.ts web: add heartbeat and bounded reconnect tuning 2025-11-26 02:34:43 +01:00
login.ts refactor(web): split provider module 2025-11-26 01:16:54 +01:00
logout.test.ts chore: commit pending cli/web test tweaks 2025-11-26 02:19:45 +01:00
media.test.ts fix(media): sniff mime and keep extensions 2025-11-28 08:07:53 +01:00
media.ts fix(media): sniff mime and keep extensions 2025-11-28 08:07:53 +01:00
monitor-inbox.test.ts Fix test corrupting production sessions.json 2025-12-02 05:54:31 +00:00
outbound.test.ts web: add heartbeat and bounded reconnect tuning 2025-11-26 02:34:43 +01:00
outbound.ts web: add heartbeat and bounded reconnect tuning 2025-11-26 02:34:43 +01:00
reconnect.test.ts web: extract reconnect helpers and add tests 2025-11-26 02:39:31 +01:00
reconnect.ts web: extract reconnect helpers and add tests 2025-11-26 02:39:31 +01:00
session.test.ts web: extract reconnect helpers and add tests 2025-11-26 02:39:31 +01:00
session.ts Heartbeat defaults and ws guard; format 2025-11-27 18:37:30 +01:00
test-helpers.ts Fix test corrupting production sessions.json 2025-12-02 05:54:31 +00:00