Repository navigation
Description
There is no way to type anything into Slack and have Orbit respond. Add a slash command.
The command surface
/orbit with subcommands. Keep it small, because a slash command that does everything is a command nobody remembers.
/orbit new <title>opens the create modal, pre-filled with the title. Same modal as the message shortcut, so build one and share it./orbit <IDENTIFIER>posts a summary of that issue: title, state, assignee, priority, link. Ephemeral by default, with a "share to channel" button, so looking something up does not spam the channel./orbit search <text>returns the top few matches, ephemeral, each with a share button./orbit minelists the caller's open issues, ephemeral./orbit helplists the above.
Anything unrecognised should say what it does understand rather than failing silently.
Details
Ephemeral by default. Almost every use of this is somebody checking something for themselves. Posting to the channel should be a deliberate second action.
Identifier parsing. issue_identifier_alias exists in packages/db/src/schema/work.ts, which means an issue can be found by an old identifier after a team move. Use the same resolution path the web app uses rather than matching on issue.identifier directly, or renamed teams will break lookups.
Search. apps/web/src/lib/query/issue-search.ts and the trigram indexes on issue.title and issue.description are what backs search today. Reuse the same query path so Slack results match in-app results.
Permissions. Results are filtered to what the calling user may read, not to what the Slack workspace may read. A guest in Orbit who is in the Slack channel must not be able to search their way into a team they cannot see. packages/shared/src/policy is the only place that decision gets made.
Three second acknowledgement. Acknowledge, then respond via response_url if the work takes longer.
Unmapped Slack users get an ephemeral message explaining how to connect their account, and no data. Same rule as the message shortcut issue.
Files
- A new interactivity and command route under
apps/web/src/app/api/webhooks/slack/ packages/services/src/for the Slack clientpackages/shared/src/validators/for the command payload schemapackages/core/src/work/for the reads and writesdocs/integrations.mdneeds the command list and the setup step for registering it
Depends on
Nothing hard, but it shares the create modal with the message shortcut issue and shares account mapping with the whole milestone. If both are picked up at once, agree on this thread who owns the shared pieces.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsBacklog
Activity
imshashank commentedon Sep 6, 2026
Merged into #187. The shortcut and the slash command share the modal, the interactivity route and the account mapping, so one PR builds both. Closing this as the duplicate; the
/orbitsubcommand list above is copied onto #187.