Qwen Code PR adds a GitHub polling adapter that uses notifications only as wake-up signals
OrbitZore · ghdev · 2026-07-24
Qwen Code adds a GitHub polling adapter built around notifications as wake-up signals
A PR for QwenLM/qwen-code #7632 introduces a new GitHub channel adapter that polls GitHub notifications and turns @mentions on issues and PRs into bot comments.
Core design
- Treats notifications as a signal, not the content source
- Uses notifications only to wake the daemon up
- Then fetches full thread context with listComments
- Dedupes with a global cursor window (windowSince, maxUpdatedAt]
- Avoids relying on GitHub's async markNotificationsAsRead
- Filters bot self-comments to prevent loops
Why this architecture
The PR explains that GitHub notification timestamps and comment timestamps are decoupled, so updatedat can lag behind the triggering comment or be bumped by unrelated activity. The cursor-window approach is meant to avoid races where PUT /notifications is async and a bot reply updates the thread before the read marker takes effect.
The author also notes a known limitation: if notification delivery is delayed across a polling boundary, a later cursor advance can miss older comments, requiring a re-mention.
More from coding & agent
- Cognition's SWE-2 uses a KKT duality argument in RL to shift the effort Pareto curve — YouJiacheng · 2026-09-11
- First-ever Three.js Conference lands in Paris, with a panel on AI-shortened design workflows — OdinLovis · 2026-09-11
- Data engineering, not agent frameworks, is the real bottleneck for enterprise AI agents — dhruv2038 · 2026-09-11
- RTK Terminal Compression Cuts Tokens but Leaves Your AI Coding Bill Unchanged — Bartaseth · 2026-09-11
- GPT-6 Astra beats Factorio with enemies in 44 in-game hours at ~$4,500 API cost — liminal_bardo · 2026-09-11
- Investment Analyst Asks How to Build a Claude-Based Diligence Agent Stack — Careless_Tie2286 · 2026-09-11