Repository navigation
v0.15.1: retain early Telegram approval responses - #20
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Telegram approvals now retain button responses received before the prompt request returns. Single and quorum approvals keep the correct message identity and decision order while concurrent prompts and command controls continue to work. A prompt canceled while its send was in flight times out instead of consuming its buffered response.
The first commit consolidates freeze formatting, relay dispatch, webhook signatures, gate flag parsing, HTTP request values and Gmail decoding, and removes four redundant helpers. A malformed relay URL now reports a failed verification check instead of panicking. The second commit contains the approval fix, regression coverage and aligned release metadata.
Evidence
The original single and quorum callback-before-response scenarios both timed out. Scripted transport tests now cover early callbacks, authorization narrowing, veto order, concurrent sends, failed sends, bounded overflow, and cancellation during a send. Build, CI tests, voice tests, lint, package checks and CLI contract comparisons passed on the combined result.
Base:
cf99fba3b30f6ff82059b0db5acd3027e1d0e9ea. Two commits, cleanup first. Native release-asset installation remains a post-publication workflow check. Local transport tests do not establish live callback frequency or native Windows/macOS execution.Door
Two-way: source changes can be reverted. Publishing a package version is immutable and later corrections require another version. No state migration is added.
Blast radius
Telegram prompt creation and callback routing, the listed internal refactors, regression tests and release metadata. Approval policy, operator eligibility, quorum rules, notification destinations, state/config paths, stored formats and public CLI interfaces are preserved. Early retention is bounded and keeps the existing nonblocking waiter-buffer limit. Context cancellation still does not interrupt an in-flight Telegram HTTP request; it prevents accepting its buffered decision when that request returns.