fix: rename KV binding to CLAUDE_STATUS and fix threadId nullish check

- Rename KV binding SUBSCRIBERS → CLAUDE_STATUS for consistent naming
- Fix || null → ?? null to preserve threadId 0 (General topic)
- Update KV namespace creation command in README
This commit is contained in:
2026-04-08 23:14:26 +07:00
parent 41bdcf36ef
commit b3d1f5acb4
6 changed files with 8 additions and 8 deletions

View File

@@ -59,5 +59,5 @@ Bot stores `message_thread_id` from the topic where `/start` was sent. Notificat
## CF Bindings (wrangler.jsonc)
- `SUBSCRIBERS` — KV namespace
- `CLAUDE_STATUS` — KV namespace
- `STATUS_QUEUE` — Queue producer/consumer (`claude-status`, batch size 30, max retries 3)