Repository navigation
fix(send): do not claim delivery after dissolved gist - #527
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR fixes airc msg’s user-facing send confirmation so it no longer reports “delivered” when the underlying GitHub gist destination has been dissolved (HTTP 404 / gone) or when the send outcome is queued (e.g., transient failures / secondary rate limits). It also adds an integration regression scenario to ensure both the exit status and stdout banners reflect the true delivery state.
Changes:
- Make
gone/404 send outcomes return non-zero (both joiner and host send paths), preventing fall-through to the success footer. - Introduce a delivery-state flag so queued outcomes print a queued banner (
↻ queued ...) instead of the delivered arrow (→ ...). - Add a hermetic integration scenario that stubs
bearer_cli sendto assert: 404 does not print delivered output and exits non-zero; transient failures queue and print the queued banner.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
test/integration.sh |
Adds send_gone_gist_does_not_claim_delivery scenario and wires it into the mode dispatch + all run list. |
lib/airc_bash/cmd_send.sh |
Ensures gone returns non-zero and uses a shared _airc_delivery_state to print queued vs delivered confirmations correctly. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
joelteply
force-pushed
the
codex/send-gone-no-success
branch
from
May 6, 2026 14:39
ea500cd to
4e2da02
Compare
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.
Summary
last_errorinstead of continuing fresh heartbeats against a dissolved gistairc statusto report bearerlast_erroras degradedValidation
bash -n lib/airc_bash/cmd_send.sh lib/airc_bash/cmd_status.sh test/integration.sh./test/integration.sh send_gone_gist_does_not_claim_deliverypython3 test/test_bearer.pyContext
Caught from the vHSM -> authenticator DM failure. The bearer correctly classified the dissolved gist as gone, but
cmd_sendstill printed→ @authenticator-448f on #general. Follow-up inspection found vHSM's recv log repeatedly polling a 404 gist while status reported fresh heartbeat; this PR fixes both the false send success and the false recv health.