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

@@ -50,7 +50,7 @@ npx wrangler login
### 3. Create KV namespace and Queue
```bash
npx wrangler kv namespace create SUBSCRIBERS
npx wrangler kv namespace create claude-status
npx wrangler queues create claude-status
```
@@ -58,7 +58,7 @@ Copy the KV namespace ID from the output and update `wrangler.jsonc`:
```jsonc
"kv_namespaces": [
{ "binding": "SUBSCRIBERS", "id": "YOUR_KV_NAMESPACE_ID" }
{ "binding": "CLAUDE_STATUS", "id": "YOUR_KV_NAMESPACE_ID" }
]
```