[Fix] Discord automation replies require mentions and task links lack context - #2288
Merged
Merged
Conversation
Contributor
roomote-roomote
Bot
requested review from
brunobergher,
daniel-lxs and
mrubens
as code owners
September 6, 2026 13:29
| { | ||
| purpose: 'progress', | ||
| message: `[Open in Roomote](${destinationUrl})`, | ||
| message: `[Started coding task](${destinationUrl})`, |
Contributor
There was a problem hiding this comment.
This also runs for an idempotent replay that reuses an existing task. enqueueTask skips beforeEnqueue on that path, but the existing task still resolves to a Session URL, so this posts “Started coding task” even though no task was started. Keep the fallback wording neutral for reused runs (or retain the creation signal) so the status is accurate.
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.
Related issue
No separate issue. Complements #2017, which merged into
developand is already included in this branch's base; its thread reply-reference fix is not duplicated here.Why this PR exists
Automation report threads were recognized only when the incoming message explicitly referenced the report root. Normal thread messages omit that reference, and inline replies to later messages reference a different ID, causing legitimate unmentioned replies to be ignored. The post-launch fallback also presented a context-free task link.
What changed
Started coding task: [Open coding task in Roomote](...)for successful new launches. Launchers explicitly distinguish newly created runs from reused runs; existing tasks or missing creation signals retainCoding task: [Open coding task in Roomote](...). The descriptive action label retains selected-session/task destinations.Users can follow up in known automation-report threads without repeatedly tagging Roomote, subject to existing conversation guards. The inline-reply fix comes from merged #2017; deployment must include that change and this PR to address the full report. Production deployment and live Discord behavior were not verified.
How it was tested
pnpm lintandpnpm check-typespassed across the repository.Checklist
[Fix],[Feat],[Improve],[Refactor],[Docs], or[Chore]followed by a user-facing descriptionpnpm lintandpnpm check-typespass locallypnpm changeset