Complete reference for interacting with OpusAgent: auth, async flow,
multi-turn sessions, model resolution, summarization, and error handling.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
session_id "new" now returns null at creation (set from SDK after completion).
Session tests use custom session_ids directly.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- Add sdk_conversation_id column to track SDK conversation separately from user session_id
- Queue processor looks up SDK conversation ID for resume instead of passing user session_id
- session_id "new" stores NULL initially, gets set from SDK on completion
- Custom session_ids are preserved (not overwritten by SDK)
- Worker catches SDK process exit error after messages are collected
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- Dockerfile: use explicit uvicorn command (uv run start fails without package mode)
- docker-compose: mount claude-auth volume to /root/.claude (worker runs as root)
- worker: update to Claude Code SDK async iterable API (query() returns iterator, not array)
- main.py: fix docs_url from /doc to /docs
- README: correct login instructions (exec not run --rm), add production URLs
- Add CLAUDE.md with full project documentation
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Servizio self-hosted su VPS per interazione programmatica con modelli
Anthropic tramite Claude Code SDK e abbonamento Pro/Max.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>