Skip to content

Tell the Bot about every app connected from its cards, once - #2159

Merged
davidmckayv merged 1 commit into
mainfrom
fix/connect-cards-reach-bot
Nov 24, 2026
Merged

davidmckayv merged 1 commit into
mainfrom
fix/connect-cards-reach-bot

Conversation

@davidmckayv

Copy link
Copy Markdown
Contributor

What was wrong

When a Bot needs several apps for one task it draws a connect card for each in the same reply. Each card carried the task on by itself, so connecting the first one sent "Notion is ready now. Please carry on." on its own. That message started the Bot's next turn, so the other cards were no longer the latest thing in the conversation, and connecting them told the Bot nothing. The person had to stop the Bot and tell it the other apps were connected.

What changes

  • The app cards that are still the latest thing in a conversation now carry the task on together (app/src/lib/copilot/carry-on-group.ts, kept by ConversationProvider). When the last of them is ready, one message names them all: "Notion, Slack, Fireflies and Granola are ready now. Please carry on."
  • While some are ready and others still wait (an app only an admin can give, or one the person means to skip), the last ready card offers the existing Continue button, which carries on with what is ready. No ready card tells the person to ask again, since the Bot will be told.
  • An app connected with a typed key is connected on its own page in this tab, so the conversation's cards are drawn again when the person comes back. Whether a card saw its app blocked is now kept per tool call for the tab, so the key app still counts as a change the person watched.
  • The card that falls back to the plain Connect card when its live read fails no longer leaves a second, never-ready entry that would hold the others back.

The cards look the same; only when and what they send changed.

Tests

app/tests/connect-several-apps.test.tsx draws one reply with four cards (three sign-in apps and one key app) in a conversation that moves on once anything is asked, as the transcript does:

  • connecting every card sends nothing until the last, then one message naming all four, once;
  • two ready while two wait: one Continue, under the last ready card, which sends one message naming the two;
  • three connected in place, then the key app connected away from the conversation and the cards drawn again: one message naming all four.

All three fail on main (the first connection sends its own message) and pass with this change. The existing card tests (app-access-card, connect-app-card, app-access-card-tools, name-the-admins, transcript-latest) pass unchanged.

A Bot that needs several apps for one task draws a card for each in the
same reply. Each card carried the task on by itself, so connecting the
first sent "Notion is ready now. Please carry on." alone: that message
started the Bot's next turn, the other cards were no longer the latest
thing in the conversation, and connecting them told the Bot nothing. The
person had to stop the Bot and say the others were connected.

The cards that are still the latest thing in a conversation now carry on
together: once, when the last of them is ready, in one message naming
them all ("Notion, Slack, Fireflies and Granola are ready now. Please
carry on."). While some are ready and others still wait, the last ready
card offers Continue for a person who means to go on without the rest,
and no ready card tells the person to ask again.

An app connected with a typed key is connected on its own page in this
tab, so the conversation's cards are drawn again when the person comes
back. Whether a card saw its app blocked is now kept per tool call for
the tab, so the key app still counts as a change the person watched.
@davidmckayv
davidmckayv force-pushed the fix/connect-cards-reach-bot branch from 5021c85 to a88783c Compare November 24, 2026 22:26
@davidmckayv
davidmckayv merged commit a2bccb3 into main Nov 24, 2026
23 checks passed
@davidmckayv
davidmckayv deleted the fix/connect-cards-reach-bot branch November 24, 2026 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant