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
- shadcn's /improve skill paired with Grok on SuperGrok Heavy for plowing through issues — shadcn · 2026-10-27
- Paradigm Launches Envoys: Your Claude Code and Codex on Your Research Graph, Free — tensorqt · 2026-10-27
- AXL launches remote MCP server exposing 1,284 sales and marketing APIs to Claude and Codex — EdTech_Padre · 2026-10-27
- GitHub's Thomas Dohmke ships Entire, a Git forge built for agent-human collaboration — carrycooldude · 2026-10-27
- OmarchyTV hits GitHub: Omarchy-style TV launcher with AI TUI and MCP — alexcovo_eth · 2026-10-27
- AWS on agent prompt caching: explicit + implicit patterns to slash token costs — AWS ML Blog · 2026-10-27