Repository navigation
fix(connectors): close sign-in on deep link and enable slack mcp - #204
Merged
Merged
Conversation
Close the active Connect dialog and refresh its account when desktop OAuth finishes. Recognize completed returns without exchanging the code twice. Completion receipts remain owner-bound, binding-bound and short-lived; failed exchanges cannot borrow an earlier connection's success. Preserve classified sign-in failures and redacted provider details. Enable MCP in generated Slack manifests, explain disabled MCP access, and document the setting for existing apps. Validation: generation, typecheck, lint, formatting, web build, OAuth and Slack gateway integration, full check:tmp, and a real browser walkthrough through an isolated gateway, BFF, fake provider and built Pages callback. Checked light/dark, desktop/narrow/phone, and short/typical/long names. Copy audit (docs/copy.md section 8): the generic invalid/expired error now states the actual reason and next action; a successful duplicate says "Already connected." Disabled Slack MCP now explains which setting to change. Instructions use active voice and short sentences. Provider diagnostics stay behind Show details. Existing action labels start with verbs. No new empty states, repeated facts, glossary terms or humour. Success and errors have text and status/alert semantics, not colour alone. Fixes: #162
nixuuu
added a commit
that referenced
this pull request
Nov 5, 2026
Settings → Linked computers no longer shows amber route failures for a
computer that is connected, and the configuration sharing note says
which computer needs an update.
**Why routes showed "Failed" while connected**
- A gateway dials a partner only when it has no link to it. When the
partner dialled first, failures from an earlier dial pass (for example
while the partner slept or restarted) stayed stored, and the UI showed
them in amber whatever the link status.
- The listener port is stable, but two gaps around announced addresses
also existed:
- announced addresses were never retired;
- addresses that changed during a handshake were not re-announced.
**What the card shows now**
- **Status:** "Connected · incoming" when only the partner dialled.
- **Routes:**
- the route the outgoing link runs over: "In use · 4 ms";
- a failed route while the link is up, in neutral tone: "Not needed
while connected · failed 14 minutes ago";
- amber only while the link is down.
- **Old addresses:** an address the partner no longer announces gets an
"Old address" badge. It is tried last, and it is removed once a current
route works or after 7 days. An empty announcement (listener off) marks
nothing as old. Changed addresses are announced right after the
handshake.
**Configuration sharing**
- The capability check was right: `config_sync` first shipped in
nightly.67, so a nightly.65 partner cannot share yet. The note now names
the computer:
- "{name} runs 0.2.0-nightly.65 and needs an update to share
configuration."
- "This computer needs an update to share configuration."
- The switch shows this computer's saved choice and stays usable. A line
that is always there says "Sharing starts after the update." or "Sharing
stays off after the update.", so nothing moves. Turning it off while
waiting needs no confirmation.
**Contracts**
- Proto (additive): `LinkedComputer.connection_direction` (26),
`config_update_node_id` (27), `ComputerRoute.in_use` (7) and
`withdrawn_at_ms` (8).
- Migration `0082_computer_route_withdrawn`, renumbered after #204's
0081.
**Tests**
`tests/integration/linked-routes-status.test.ts`:
- an incoming-only link with failed outgoing routes;
- the dialling side marks its route "In use";
- a reconnect clears a route's failure;
- a partner on a new port, where the old address is marked, tried last,
then removed;
- a re-announced address that loses the "Old address" badge.
`config-sync.test.ts` checks that both sides name the older computer.
The `lan-routes` and `linked-computers` tests pass. `check:tmp`: 1348
passed, 0 failed.
**Checked** in a browser with two gateways and fixture names and
addresses: light and dark, desktop and phone, with long names and
addresses.
**Copy audit (§8)**
- "Connected · incoming", "In use · 4 ms" and "Not needed while
connected · failed …".
- "Old address".
- The update notes and "Sharing starts / stays off after the update."
- One idea per sentence, active voice, and failures always say "Failed",
not colour alone.
Related: #35, #157
This was referenced Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signing in to a connector no longer ends in a misleading "This code did not work" error, and new Slack apps have MCP access turned on.
What happened
canopy://, and the deep link completed the sign-in. The Connect dialog did not notice and kept asking for a code. Pasting that code (already used) showed the generic "It works once and expires after 10 minutes. Start sign-in again."-32600"App is not enabled for Slack MCP server access", because the generated Slack app manifest did not setsettings.is_mcp_enabled, so Slack created the app with MCP access off.Fix
settings.is_mcp_enabled: true(checked against Slack's app manifest reference). The error from an app with MCP access off has its own message: "Slack MCP access is off for this app. Turn it on in the app's settings, then test again."docs/connectors.mdexplain how to turn MCP access on for an existing app.Tests
Gateway and BFF integration with a fake OAuth provider:
check:tmp: 1353 passed, 0 failed.Checked in a browser with the real BFF and gateway, a fake provider and the built bounce page, including a second completion of the same sign-in. Light and dark, desktop, narrow and phone.
Copy audit (§8): each message gives the reason and the next action; technical details stay collapsed.
Fixes: #162