Repository navigation
fix(hermes): send Discord clarify cards through the live adapter (RIG-12384) - #250
Open
rigel-mintaka wants to merge 1 commit into
Conversation
…-12384) Clarify send, typing pause and resume, and card retire now resolve the live adapter with _delivery_adapter_for(ctx.source), as nebula#247 does for approval cards. The turn's starting adapter can be stale after a Discord reconnect. Refs: RIG-12384 Co-authored-by: Matt Wilkinson <matt@rigel.build>
Contributor
Author
Review rounds
Head |
Contributor
Author
|
All-clear at 267d22c |
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
Discord clarify cards resolve the live adapter every time they are used: on send, typing pause and resume, retire, and the late text fallback. One helper,
TurnRunner._live_delivery_adapter(), does the lookup at all five sites, including #247's approval render.Why do we need it
A turn's starting adapter can be stale after a Discord reconnect. #247 fixed this for approval cards; clarify cards had the same bug. A late fallback after the 15 s ack window still went to the stale adapter.
Summary
run_turn_runner.py: the_live_delivery_adapter()helper; the text fallback looks the adapter up when it starts.test_clarify_card_retire_on_timeout.py: stale-versus-live tests plus an adapter-swap test for the late fallback.Verification
On macpro2013:
2e760208it fails: the fallback went to the stale adapter.tests/gateway/*clarify*.py: 107 of 108 pass on head and 104 of 105 on base. The single failure is on both (aiohttp missing in that venv).test_steer_releases_pending_clarify.py: 4 of 4 pass on head and on base.Stacked on #247 (
cade8c61), because both edit the same lines.Step-up signal: the
implementruns spent most of 67 and 69 min on staging remote tests, not on the code. No step-up was needed.Risks
This is the same lookup #247 uses. Rollback: revert this commit.
Spec impact
Spec-impact: none
Checks skipped:
nebula has no pre-push hook config; GitHub Actions ci.yaml runs its checksRefs RIG-12384
Co-authored-by: Matt Wilkinson matt@rigel.build