# 2026-02-19 Session Log

## ClawPilot Debugging (with Dan)

### Problem Solved
OpenClaw `/hooks/agent` with `deliver: true` returns `ok` but never actually posts to Discord. Root cause: agent hook delivery mechanism is unreliable for external services.

### Fix Created
Patch at `/home/clawd/workspace/clawpilot-discord-fix.patch` (also hosted at https://curiousendeavor.com/clawpilot-discord-fix.patch)

**What the patch does:**
- Adds `DISCORD_BOT_TOKEN` and `DISCORD_DIRECT_DELIVERY` env vars
- Adds `postToDiscordDirect()` function that posts via Discord Bot API
- Bypasses OpenClaw agent hooks for Discord delivery

### Key Reference Info
- **ClawPilot bridge**: `http://127.0.0.1:3001` (screen session: `clawpilot`)
- **Bridge logs**: `/tmp/clawpilot.log`
- **Recall API key**: `182435b46a7d0fc16c3ae1c2b2535dc5a760086e` (eu-central-1)
- **Discord bot tokens location**: `/home/clawd/.openclaw/openclaw.json` → `channels.discord.accounts`
- **Gateway auth token**: `clawd-gw-tok-2026`

### Status
- Patch created and sent to Dan in #clawpilot channel
- Waiting for Dan to apply and test

## GitHub Backup (Deferred)
Assaf asked about backing up `/home/clawd/workspace` to GitHub. Deferred - not urgent since local git history exists. Will set up when Assaf provides GitHub credentials.
