Repository navigation
Description
A conversation about an issue happens in a Slack thread. The issue's comment thread in Orbit stays empty. Six months later somebody opens the issue to find out why a decision was made and there is nothing there, because the reasoning is in a Slack thread that has since aged out of the workspace's retention.
What to build
Two way sync between a Slack thread and an Orbit issue's comments, opt in per thread.
Slack to Orbit. Once a thread is linked to an issue, replies in that thread become comments on the issue, attributed to the mapped Orbit user.
Orbit to Slack. Comments added in Orbit post into the linked thread, attributed to their author.
Linking a thread happens either automatically, when the thread was started by an Orbit notification or by the "create issue from message" shortcut, or explicitly through a message shortcut called something like "Link to Orbit issue".
The hard parts
This is the most technically delicate issue in the Slack milestone. It is not a good first issue and it needs the shape agreed before code.
Loops. Orbit posts a comment to Slack. Slack sends an event about that message. Orbit creates a comment from it. Orbit posts that comment to Slack. Every naive implementation of this feature does this. You need an origin marker on each message and comment, and the sync has to skip anything it wrote itself. Say how you are doing it in your first comment.
Attribution and unmapped users. A Slack user with no Orbit account replies in a linked thread. Options are to drop the message, to import it attributed to a placeholder, or to import it attributed to the linker with the real author's name in the body. There is no obviously right answer, and it needs deciding before code. Dropping is the safest default.
Permissions. A private Orbit issue must not have its comments syndicated into a Slack channel that a wider group can read. Before enabling a link, check whether the issue's scope is narrower than the channel's audience, and refuse if it is. This is a data leak if it is wrong, and it is the reason this needs review rather than a quick merge.
Editing and deletion. Slack messages can be edited and deleted. Comments can be edited and deleted. Deciding whether edits propagate, and in which directions, is part of the design.
Threading depth. Slack threads are one level. Orbit comments may be too, but check before assuming.
Rate limits. A busy thread can exceed Slack's posting limits. Batch or back off.
Storage
There has to be a link table joining an issue to a Slack channel and thread timestamp, plus a per message mapping so edits and duplicates can be resolved. slack_channel_sync in packages/db/src/schema/comms.ts exists but is about routing notifications to channels, which is a different relationship. Expect to add a table.
Please comment before building
Post your answers to the loop prevention, unmapped user and permission questions above. Those three decisions are most of the design, and agreeing them on the thread is much cheaper than agreeing them in review.
Files
apps/web/src/app/api/webhooks/slack/route.tsand a new events routepackages/db/src/schema/comms.tspackages/core/src/content/for commentspackages/services/src/for the Slack client
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNeeds design
Activity
imshashank commentedon Sep 6, 2026
Closing as not planned. This is the most delicate item in the Slack epic, nobody has asked for it, and the loop, attribution and leak questions need a design nobody has offered. #187 and #189 give Slack most of its value without it. Reopen with a design comment if it comes back.