Skip to content

[Fix] Suggested tasks do not appear in Teams and Telegram automation reports - #1757

Merged
mrubens merged 2 commits into
developfrom
fix/fast-automation-suggestions-chat-surfaces
Aug 27, 2026
Merged

[Fix] Suggested tasks do not appear in Teams and Telegram automation reports#1757
mrubens merged 2 commits into
developfrom
fix/fast-automation-suggestions-chat-surfaces

Conversation

@roomote-roomote

@roomote-roomote roomote-roomote Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

​Opened on behalf of @mrubens. Follow up by mentioning @roomote-roomote, in the web UI, or in Slack.

What changed

Fast automation closeouts now accept structured suggested tasks on Teams and Telegram, deliver a tracked card for each suggestion, and preserve the existing launch routing. Teams suggestions can be launched with a reaction, while Telegram suggestions include a Start button.

The automation prompt and delivery guard now describe all supported chat surfaces. The Teams adapter handles both editable-root and new-message report paths, and the Telegram adapter posts its suggestion cards beneath the report. Teams and Telegram reserve a durable tracked-card claim before contacting the provider, then finalize that claim with the accepted message ID so retries cannot post duplicate launch cards when the provider outcome or post-send tracking is interrupted.

Why this change was made

The original implementation allowed structured suggestions only for Slack and Discord. Teams and Telegram automation reports could otherwise be delivered, but their closeouts were rejected before the parent adapters could post them, leaving users without the report or launchable follow-ups.

This addresses the review feedback on PR #1755, specifically discussion_r3876625249.

Impact

Teams and Telegram users can now receive and launch suggested tasks from Fast automation reports with the same persisted work-item and tracked-card lifecycle used by the existing chat integrations. Focused service, adapter, and database-backed tests cover the supported surfaces, delivery paths, launch controls, tracking metadata, and retry safety after an uncertain provider outcome.

@roomote-community

roomote-community Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

No code issues found. See task

  • Prevent duplicate Teams and Telegram suggestion cards when tracking fails after a provider accepts the post (packages/sdk/src/server/lib/fast-automation-suggestions.ts:315-330).

Reviewed c8c53b9

Comment thread packages/sdk/src/server/lib/fast-automation-suggestions.ts
@roomote-roomote

roomote-roomote Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor Author

Fixed the retry-safety gap in c8c53b98. Teams and Telegram now reserve a durable tracked-card claim before posting, so an uncertain provider outcome or failed post-send finalization cannot cause a duplicate card on retry. Focused SDK tests, type checking, formatting, oxlint, and the full pre-push suite passed.

@mrubens
mrubens marked this pull request as ready for review August 27, 2026 23:55
@mrubens
mrubens merged commit b476e2b into develop Aug 27, 2026
17 checks passed
@mrubens
mrubens deleted the fix/fast-automation-suggestions-chat-surfaces branch August 27, 2026 23:55
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.

1 participant