Skip to content

Send a Chat message again when the bridge never got its prompt - #788

Merged
czpython merged 1 commit into
mainfrom
chat-delivered-after-prompt
Oct 3, 2026
Merged

czpython merged 1 commit into
mainfrom
chat-delivered-after-prompt

Conversation

@czpython

@czpython czpython commented Oct 1, 2026

Copy link
Copy Markdown
Owner

send_turn marks a message delivered before it sends the prompt. When the prompt request failed, the next delivery asked the bridge for its status, saw another message ID, and marked the turn interrupted. The message was never sent.

The bridge records the message ID when it accepts a prompt, so that ID tells the two failures apart. When the bridge holds the message, the prompt arrived and Druks follows the turn, as before. When the bridge is idle, replied, or cancelled with another ID, the prompt never arrived: follow_turn now puts the turn's messages back to pending, and the delivery loop sends them again. The bridge refuses a prompt for an ID it already accepted, so a turn never runs twice. A missing or interrupted bridge still ends the turn as interrupted.

docs/chat.md described delivery as at most once with no automatic re-send. It now describes the bridge's ID as the point that decides.

Fixes #785

🤖 Generated with Claude Code

@mintlify

mintlify Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
druks 🟢 Ready View Preview Oct 3, 2026, 10:25 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

@czpython
czpython force-pushed the chat-delivered-after-prompt branch from bfc6603 to dc807f9 Compare October 3, 2026 10:25
@czpython
czpython merged commit dc950d2 into main Oct 3, 2026
4 checks passed
@czpython
czpython deleted the chat-delivered-after-prompt branch October 3, 2026 10:26

This branch was successfully deployed

1 active deployment
staging - docs — dc807f97 Deployed Oct 3, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A Chat message marked delivered before the bridge gets the prompt is never sent

1 participant