zeroclaw/src/channels
Argenis fb01622d47
feat(gateway): persist WS chat sessions across restarts (#3813)
Gateway WebSocket chat sessions were in-memory only — conversation
history was lost on gateway restart, macOS sleep/wake, or client
reconnect. This wires up the existing SessionBackend (SQLite) to
the gateway WS handler so sessions survive restarts and reconnections.

Changes:
- Add delete_session() to SessionBackend trait + SQLite implementation
- Add session_persistence and session_ttl_hours to GatewayConfig
- Add Agent::seed_history() to hydrate agent from persisted messages
- Initialize SqliteSessionBackend in run_gateway() when enabled
- Send session_start message on WS connect with session_id + resumed
- Persist user/assistant messages after each turn
- Add GET /api/sessions and DELETE /api/sessions/{id} REST endpoints
- Bump version to 0.5.0

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-24 15:17:27 +03:00
..
bluesky.rs feat(channels): add Reddit, Bluesky, and generic Webhook adapters (#3598) 2026-03-24 15:17:23 +03:00
clawdtalk.rs Implement ChannelConfig for ClawdTalk 2026-02-21 19:38:19 +08:00
cli.rs fix(channels): preserve slack thread root ids 2026-02-19 18:52:30 +08:00
dingtalk.rs perf(build): gate Matrix channel for faster iteration 2026-02-19 21:29:53 +08:00
discord.rs fix(channel): bypass mention_only gate for Discord DMs (#2983) 2026-03-24 15:17:18 +03:00
email_channel.rs feat(channel): make email subject configurable (#3190) 2026-03-11 23:27:52 -04:00
imessage.rs fix(imessage): parse attributedBody when text column is NULL 2026-03-11 03:25:05 -04:00
irc.rs fix(build): unblock strict 32-bit no-default-features builds (#3375) 2026-03-13 15:45:03 -04:00
lark.rs fix(channel): restore Lark/Feishu channel compilation (#3318) 2026-03-12 13:16:31 +00:00
linq.rs fix(linq): accept latest webhook payload shape (#3351) 2026-03-13 21:53:41 -04:00
matrix.rs fix(channel): use plain "matrix" channel key for consistent outbound routing 2026-03-24 15:16:05 +03:00
mattermost.rs feat(channels): add threading support to message channels 2026-02-19 18:52:30 +08:00
mochat.rs feat(channels): add X/Twitter and Mochat channel integrations (#3735) 2026-03-24 15:17:17 +03:00
mod.rs feat(runtime): add configurable reasoning effort (#3785) 2026-03-24 15:17:24 +03:00
mqtt.rs fix(web): call doctor endpoint with authenticated POST 2026-02-24 16:02:59 +08:00
nextcloud_talk.rs Fix: Support Nextcloud Talk Activity Streams 2.0 webhook format (#3737) 2026-03-24 15:17:22 +03:00
nostr.rs feat(channel): add Nostr channel with NIP-04 and NIP-17 support 2026-02-21 13:16:20 +08:00
notion.rs feat(notion): add Notion database poller channel and API tool (#3650) 2026-03-24 15:17:11 +03:00
qq.rs test(channel): add QQ markdown msg_type regression test (#3752) 2026-03-24 15:17:22 +03:00
reddit.rs feat(channels): add Reddit, Bluesky, and generic Webhook adapters (#3598) 2026-03-24 15:17:23 +03:00
session_backend.rs feat(gateway): persist WS chat sessions across restarts (#3813) 2026-03-24 15:17:27 +03:00
session_sqlite.rs feat(gateway): persist WS chat sessions across restarts (#3813) 2026-03-24 15:17:27 +03:00
session_store.rs feat(sessions): add SQLite backend with FTS5, trait abstraction, and migration 2026-03-24 15:17:14 +03:00
signal.rs feat(channels): add threading support to message channels 2026-02-19 18:52:30 +08:00
slack.rs fix(slack): subscribe to thread message events in polling mode (#3435) 2026-03-13 16:33:26 -04:00
telegram.rs feat(knowledge): add knowledge graph for expertise capture and reuse (#3596) 2026-03-24 15:17:23 +03:00
traits.rs fix(config): encrypt and decrypt all channel secrets on save/load (#3217) 2026-03-11 20:02:20 -04:00
transcription.rs feat(multi): LinkedIn tool, WhatsApp voice notes, and Anthropic OAuth fix (#3604) 2026-03-24 15:17:23 +03:00
tts.rs feat(multi): LinkedIn tool, WhatsApp voice notes, and Anthropic OAuth fix (#3604) 2026-03-24 15:17:23 +03:00
twitter.rs feat(channels): add X/Twitter and Mochat channel integrations (#3735) 2026-03-24 15:17:17 +03:00
wati.rs Addressed clippy lint issues 2026-03-10 01:48:19 -04:00
webhook.rs feat(channels): add Reddit, Bluesky, and generic Webhook adapters (#3598) 2026-03-24 15:17:23 +03:00
wecom.rs feat(channel): add WeCom (WeChat Enterprise) Bot Webhook channel (#3439) 2026-03-13 16:44:34 -04:00
whatsapp_storage.rs fix(security): remove sensitive fields from Debug impls 2026-02-20 22:06:21 -08:00
whatsapp_web.rs feat(multi): LinkedIn tool, WhatsApp voice notes, and Anthropic OAuth fix (#3604) 2026-03-24 15:17:23 +03:00
whatsapp.rs fix(errors): improve config error messages with section paths and remediation hints 2026-02-19 11:44:04 -08:00