Repository navigation
fix(bots): a connector offer from a Slack thread tells the bot how to reach the card - #50694
Conversation
… reach the card The Connect card a bot offers shows only in its Orca chat. When the turn answers a Slack, Linear or GitHub thread, the offer's answer now says so and tells the bot what to write there; on Slack that line gets Orca Cloud's existing "Open this thread in Orca" link. An offer whose card wasn't written says so instead of claiming it is shown, and Google setup's card route gets the same note.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
ELI5
When a bot answering in Slack asks its owner to connect a service, the Connect card it offers only exists in the bot's chat in Orca. The bot used to say it "opened the card here", so the owner found no card and no way to reach it from Slack. Now Orca tells the bot that the card is only in Orca and gives it the line to write. In Slack, Orca adds its "Open this thread in Orca" link under that line, which opens the chat with the card.
What Changed
orca bot connectors --offer <service>(and Google setup when it routes to a Connect card): when the turn answers a Slack, Linear or GitHub thread (the same check workers and waits use to report back to their thread), the answer to the bot now says the card shows only in Orca, not in that thread.offered: falseand says to run it again, instead of claiming the owner sees a card.bot connectorsdescribes it.Out of scope (follow-ups): a direct sign-in link in Slack (it would need a private message: a connect link posted to a shared thread links whoever clicks it), and a cloud-side flag so every thread (including GitHub) gets the link without depending on the line's wording.
Why
The offer's answer assumed the reader was in the Orca chat, so a bot answering in Slack had nothing to point to. Orca's Slack links are signed HTTPS pages from Orca Cloud: Slack doesn't open every app scheme, so a bare
orca://link from the desktop wouldn't be reliably clickable. The cloud already adds that link under a Slack answer asking to open something in Orca, so giving the bot that line fixes it with no cloud change. Checked against how comparable products handle this.Linked Issue
N/A (internal report).
Visual Proof
N/A: no UI changed. The change is the text Orca gives the bot. Before, a Slack-thread turn got "Your owner now sees a Connect card for GitHub in this chat … Don't tell them where to click." After, it also gets "The card shows only in Orca, not in the Slack thread in #orca, so don't say it is there. Your final message goes there. End it with this line … "Open Orca to connect GitHub." Orca then adds a link to this chat under it, so don't write one yourself."
Testing
bot-connector-offer-thread-note.test.tspins every variant's line against the cloud's link pattern and checks the Slack, Linear, GitHub and DM wording.bots-connector-offer.test.tscovers a thread turn, a turn in Orca, another bot's link, add access, sign in, Google already on, and an unwritten card. The thread-turn and unwritten-card tests fail on main. The cloud side was checked by running its connector code locally: a later Slack answer with the line gets the signed "Open this thread in Orca" link. Not tested end to end in a live Slack workspace.Performance
None, because this runs only when a bot offers a connector: one in-memory lookup of the chat's conversation links and one turn-state check, on a path that already writes a journal item.
Risk
Level: Low
Only the text a bot reads after
--offerchanges, and only on turns that answer a thread; turns in Orca get the same answer as before. If the bot rewords the line, Slack gets no link, but the reply still says the card is in Orca. Plain revert.Review