Repository navigation
fix(telegram): fall back for web apps outside DMs - #111116
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 18, 2026, 9:48 PM ET / July 19, 2026, 01:48 UTC. Summary PR surface: Source +31, Tests +86. Total +117 across 10 files. Reproducibility: yes. source-reproducible at medium confidence: the reported path is a native Telegram Web App button rendered for a non-direct target, which the patch routes to a link fallback. It was not independently exercised against the checked-out current main during this read-only review. Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Mantis proof suggestion Risk before merge
Maintainer options:
Copy recommended automerge instructionNext step before merge
Security Review detailsBest possible solution: Land only after confirming that every production Telegram send and render path supplies a correctly classified target, while retaining the safe link fallback for group, channel, and genuinely unresolved destinations. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible at medium confidence: the reported path is a native Telegram Web App button rendered for a non-direct target, which the patch routes to a link fallback. It was not independently exercised against the checked-out current main during this read-only review. Is this the best way to solve the issue? Unclear pending full caller verification: passing explicit target capability into the shared canonicalizer is the right bounded design, provided all real send funnels can supply a reliably classified direct-chat target. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ecc56749e111. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +31, Tests +86. Total +117 across 10 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
Merged via squash.
|
What Problem This Solves
Fixes an issue where Telegram group, channel, or unconfirmed targets could receive a native Web App inline button that Telegram only accepts in private chats, causing delivery to be rejected.
Why This Change Was Made
Telegram now emits native Web App buttons only after the delivery target is confirmed as a direct chat. Group and unknown targets keep the original message and receive the portable HTTPS link as text; the low-level encoder also fails closed when chat context is absent.
User Impact
Direct-message Web Apps continue to open natively. Group, channel, and unresolved targets receive an understandable link fallback instead of a Telegram API error.
Evidence
AI-assisted: yes. I understand and reviewed the complete change.