fix: separate reviewer session from owner to preserve review context

Reviewer was starting with undefined sessionId every turn, losing all
conversation context. Now uses `group.folder:reviewer` as the session key
so owner and reviewer maintain independent session histories.

Also updates README to reflect unified service architecture and paired
review workflow.
This commit is contained in:
Eyejoker
2026-03-29 22:22:45 +09:00
parent 33baf2970d
commit 8049db0d47
3 changed files with 86 additions and 60 deletions

View File

@@ -58,7 +58,7 @@ ssh clone-ej@100.64.185.108 'cd ~/EJClaw && git pull && npm run build && npm run
## Service Stack Architecture
Single unified service manages all three Discord bots in one process:
- `ejclaw.service`Unified process, `UNIFIED_MODE=true` (default)
- `ejclaw.service`Single unified process
- Discord bots: `DISCORD_BOT_TOKEN` (Claude), `DISCORD_CODEX_BOT_TOKEN` (Codex-main), `DISCORD_REVIEW_BOT_TOKEN` (Codex-review)
- Paired review: owner (`OWNER_AGENT_TYPE`, default: codex) ↔ reviewer (`REVIEWER_AGENT_TYPE`, default: claude-code)
- Reviewer fallback: Claude 429/한도초과 시 codex-review로 자동 핸드오프