37c0aae41c1ec6dbf6cf263e5b72a52d389ffb9e
Root cause: When 3+ projects generated pending simultaneously, Bot's pending_approval_scanner made 20-40 Discord API calls in one tick (sequential await), triggering Discord 429 rate limits which blocked the entire scanner for 10-30s, freezing ALL signal delivery. Two fixes: 1. _get_channel(): Replace guild.fetch_channels() (API call) with discord.utils.get(guild.channels) (in-memory cache). Eliminates redundant API calls + Lock contention when multiple projects arrive. 2. pending_approval_scanner: Per-tick caps (5 new + 5 status) prevent one tick from monopolizing Discord API quota. Excess items are naturally processed in subsequent 3-second ticks.
Gravity Control — Antigravity Discord Bridge
Antigravity IDE의 에이전트 활동을 Discord로 실시간 중계하는 브리지 시스템.
개요
- Watcher:
~/.gemini/antigravity/brain/디렉토리 감시 - Parser:
task.md,implementation_plan.md등을 Discord 텍스트로 변환 - Discord Bot: 세션별 채널 자동 생성, 상태 embed, 텍스트 중계
설치
pip install -r requirements.txt
cp .env.example .env
# .env 파일에 DISCORD_TOKEN 설정
실행
python main.py
프로젝트 관리
Description
Languages
TypeScript
55.6%
JavaScript
25.5%
Python
17.1%
HTML
1.8%