consent-recorder: fix review findings

- /delete discards the in-progress utterance before deleting files
- keep the current channel even when the bot itself fills it (joinable=false)
- bind OAuth state to the browser via a short-lived cookie
- reject consent submitted from a page showing an older consent version
- regression tests for all four

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-11-11 11:47:07 +09:00
parent 6e0801ea1c
commit 8da3e713d0
7 changed files with 122 additions and 17 deletions

View File

@@ -10,6 +10,7 @@ const store = new Store(path.join(cfg.dataDir, 'consent.db'));
const bot = new FollowBot(cfg, store);
const site = createSite(cfg, store, {
consentChanged: (id) => bot.consentChanged(id),
discardActive: (id) => bot.discardActive(id),
recordingNow: (id) => bot.recordingNow(id),
});