Repository navigation
fix(hermes): send Discord approval cards through the live adapter (RIG-12360) - #247
Open
rigel-mintaka wants to merge 1 commit into
Open
rigel-mintaka wants to merge 1 commit into
rigel-mintaka wants to merge 1 commit into
Conversation
…G-12360) Approval cards failed with Not connected while replies to the same thread worked: after a reconnect the turn kept the adapter it started with, and that adapter's client was gone. Resolve the live delivery adapter for the card, its timeout notice and resume typing, as the reply path does. When the card send fails, post the text prompt in the thread and mention only the requester. If both fail, mark the approval undelivered and log an error instead of withdrawing silently. A card whose send timed out may be on screen, so it does not trigger a second text prompt. Refs: RIG-12360, RIG-12369 Co-authored-by: Matt Wilkinson <matt@rigel.build>
Contributor
Author
Review rounds
What changed for round 2
Accepted lows
Head |
Contributor
Author
|
All-clear at cade8c6 |
This branch had an error being deployed
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.
What does this do
Sends Discord approval cards, their timeout notice and resume typing through the live delivery adapter, the one replies already use. If the card fails, posts the text prompt in the thread with a mention of the requester only. If both fail, marks the approval undelivered and logs an error instead of withdrawing it silently.
Why do we need it
On macmini (11-23 00:10, 00:20, 00:22Z) every approval card failed with
Not connected, and the request was withdrawn, while normal replies reached the same thread. After a reconnect the turn kept the adapter it started with, whose client was gone. Nemo stalled on routine steps with no prompt for Matt.Summary
_render_approval_syncresolves_delivery_adapter_for(ctx.source); the timeout notice and resume typing use the same adapter.allowed_mentions).AllowedMentions.none(), matching discord.py.Verification
test_approval_uses_same_replacement_adapter_as_replyfails on main withNot connected; passes on head.-k 'approval and discord'157 passed, 2 skipped; all_render_approval_synccallers 148 passed, 2 failed. Both failures also fail on mainea056ebd.implementran 41 min, 116 requests, no commit; finished onimplement-hard.Risks
Spec impact
Spec-impact: none
Checks skipped:
nebula has no pre-push hook config; GitHub Actions ci.yaml runs its checksRefs RIG-12360
Co-authored-by: Matt Wilkinson matt@rigel.build