Repository navigation
Description
Current status, September 22
This issue also owns the /orbit command scope absorbed from closed #188: new, identifier lookup, search, mine and help. Reuse one modal and interactivity boundary, with ephemeral permission-filtered replies and a refusal for unmapped users. Coordinate the intake destination with #197 rather than building a second queue.
Original requirements
Somebody reports a bug in a Slack channel. Today, turning that into an issue means opening Orbit, creating an issue, retyping what they said, and pasting a link back. That friction is why bugs reported in Slack stay in Slack.
What to build
A Slack message shortcut, "Create Orbit issue", available from the overflow menu on any message.
The flow:
- Someone picks the shortcut on a message.
- A modal opens, pre-filled with the message text as the description and a sensible first line as the title.
- The modal lets them pick team, and optionally assignee, priority, labels, project and sprint. Team is required because an issue cannot exist without one. Everything else has a default.
- Submitting creates the issue and posts a threaded reply on the original message with the identifier and a link.
- The permanent link back to the Slack message is stored on the issue, so the conversation that produced it is one click away later.
The parts that need thought
Who is creating it. The Slack user has to map to an Orbit user, and that person's role decides whether they may create in that team. Orbit already matches accounts by email through users:read.email, so the lookup exists. What does not exist is the answer to what happens when there is no match. Two options, and we would take the first: refuse with an ephemeral message explaining how to link the account, with a link to do it. Silently creating issues attributed to a shared bot account is worse, because it destroys attribution and it lets anyone in the Slack workspace write to Orbit.
Three second acknowledgement. Slack requires a response within three seconds or it shows an error. Open the modal immediately, then do the work. Do not await the database before acknowledging.
Storing the backlink. git_link in packages/db/src/schema/comms.ts is the existing pattern for "this issue is connected to something outside Orbit", but it is shaped for git providers, with repository, branch and merged columns. Do not force a Slack permalink into it. Either generalise it or add a small issue_source table. Say which you chose and why, because this decision affects the customer request and intake work later.
Threading. The reply goes in a thread on the original message, not in the channel. Channels are noisy enough.
Files
apps/web/src/app/api/webhooks/slack/route.tscurrently handlesurl_verificationandlink_shared. Shortcuts arrive on the interactivity endpoint, which does not exist yet and may want its own route.packages/services/src/for the Slack client. There is already aSlackClientwith anunfurlmethod to extend.packages/core/src/work/for the issue creation call. Do not write to Postgres from the Slack handler.packages/shared/src/validators/for the payload schema. Slack payloads are untrusted input and get parsed with Zod like everything else.
Tests
apps/web/tests/app/api/webhooks/slack/route.test.ts already exists and is the place to start. Cover: a valid shortcut from a mapped user creates an issue, an unmapped user gets a refusal and creates nothing, and an invalid signature is rejected before any parsing.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsBacklog
Activity
imshashank commentedon Sep 6, 2026
Absorbing #188: this issue now covers the message shortcut and the
/orbitcommand together, since they share the modal, the interactivity route and the mapping refusal. The subcommand list from #188:new <title>opens the same modal pre-filled,<IDENTIFIER>posts an ephemeral summary with a share button,search <text>,mine,help. Ephemeral by default, three-second acknowledgement, unmapped users get the refusal and no data.[-]Create an Orbit issue from a Slack message[/-][+]Create and find issues from Slack messages and /orbit commands[/+]