spacedriveapp / spacedriveapp/spacebot
Telegram: retrigger relay failure drops final response after worker completion
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 2.4k
- Forks
- 367
- PR merge metrics
- No merged PRs in 30d
Description
Summary
We’re seeing Telegram turns where the assistant appears to start/finish, but the final full response is not delivered.
Observed behavior
In logs, the sequence is:
worker completed, result queued for retriggerretrigger produced text without reply tool, sending as fallbackretrigger relay failed, preserving result in history for next turn
So generation succeeds, but delivery fails at retrigger relay. User sees partial output (e.g., opener line) and then nothing.
Expected behavior
If retrigger/fallback text is generated successfully, it should be delivered in the same turn (or user should get an explicit delivery-failed notice).
Related
Possibly adjacent to #258, but this is specifically a delivery failure in retrigger relay, not worker stalling.
Proposed solution (for discussion)
- Add retry/backoff for retrigger relay send (2–3 attempts).
- Log transport error details (status code + sanitized response body snippet + adapter/channel context).
- If retries fail, send a short fallback notice (e.g., "delivery failed; response preserved, send
continueto replay"). - Add regression test: retrigger text generated, first relay send fails, retry/fallback path verified.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the retrigger relay path that logs “retrigger produced text without reply tool” and “retrigger relay failed,” then inspect existing delivery and regression tests. Reproduce the generated-text delivery failure, verify the retry and fallback behavior described in the issue, and confirm the response remains available for a later continue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100