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
- NVIDIA says Nemotron 3 Ultra hit 97.1% on agentic RTL chip-design tasks — NVIDIAAI · 2026-07-27
- Tokyo Agent Forge hackathon shipped production-ready AI agents in one day — DavidBennett__ · 2026-07-27
- Long-running agents will need immutable event logs, this thread argues — sebpaquet · 2026-07-27
- Agentic Data Science in Practice: Agents Write Code but Answer Wrong Questions — hugobowne · 2026-07-27
- A VS Code extension adds Markdown-style highlighting to Alchemy string templates — samgoodwin89 · 2026-07-27
- Claude’s Stripe MCP connector is being called unusable after repeated disconnects — evielync · 2026-07-27