mirror of
https://github.com/leonvanzyl/autocoder.git
synced 2026-03-16 18:33:08 +00:00
The Claude CLI sends `rate_limit_event` messages that the SDK's `parse_message()` doesn't recognize, raising `MessageParseError` and crashing all three chat session types (spec, assistant, expand). Changes: - Bump claude-agent-sdk minimum from 0.1.0 to 0.1.39 - Add `check_rate_limit_error()` helper in chat_constants.py that detects rate limits from both MessageParseError data payloads and error message text patterns - Wrap `receive_response()` loops in all three `_query_claude()` methods with retry-on-rate-limit logic (up to 3 retries with backoff) - Gracefully log and skip non-rate-limit MessageParseError instead of crashing the session - Add `rate_limited` message type to frontend TypeScript types and handle it in useSpecChat, useAssistantChat, useExpandChat hooks to show "Rate limited. Retrying in Xs..." system messages Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
15 lines
378 B
Plaintext
15 lines
378 B
Plaintext
# Production runtime dependencies only
|
|
# For development, use requirements.txt (includes ruff, mypy, pytest)
|
|
claude-agent-sdk>=0.1.39,<0.2.0
|
|
python-dotenv>=1.0.0
|
|
sqlalchemy>=2.0.0
|
|
fastapi>=0.115.0
|
|
uvicorn[standard]>=0.32.0
|
|
websockets>=13.0
|
|
python-multipart>=0.0.17
|
|
psutil>=6.0.0
|
|
aiofiles>=24.0.0
|
|
apscheduler>=3.10.0,<4.0.0
|
|
pywinpty>=2.0.0; sys_platform == "win32"
|
|
pyyaml>=6.0.0
|