Skip to content

Enable Copilot app handoff in production - #23185

Merged
niik merged 2 commits into
developmentfrom
niik-copilot-handoff-production
Nov 17, 2026
Merged

niik merged 2 commits into
developmentfrom
niik-copilot-handoff-production

Conversation

@niik

@niik niik commented Nov 16, 2026

Copy link
Copy Markdown
Member

No linked issue; enables the existing Copilot app handoff in production.

Description

Remove enableCopilotAppHandoff and eliminate its conditional branches so the Repository menu command, handoff action, and integration preferences are always available. Keep repository-selection checks, app discovery, launch error handling, and custom app path validation unchanged. There are no replacement platform guards.

Update menu tests to verify availability in production without preview features, preserve the existing editor command and handoff shortcut, and check for duplicate menu access keys.

Validation

Evidence covers commit 95aa60d20d41b1a31b0933a82b5d961bda162e1a; the working tree is clean.

  • npm test -- app/test/unit/main-process/menu-test.ts app/test/unit/copilot-app-test.ts — passed, 26 tests.
  • npm run lint:fix — passed.
  • npm run lint — passed.
  • npx --no-install tsc --noEmit — passed.
  • npm test — 3,448 passed, 6 failed, 2 skipped. The failures are three local-remote push tests in git/push-test.ts, bare-repository detection in git/rev-parse-test.ts, and two timeout tests in short-lived-token-rollout-test.ts.
  • npm test -- app/test/unit/git/push-test.ts app/test/unit/git/rev-parse-test.ts app/test/unit/short-lived-token-rollout-test.ts — reproduced the same six failures both on this change and on an isolated archive of unchanged parent commit 585b14b3cbad82dfc559d0e5725a71c0d669dd1d, using the same installed dependencies. These are baseline failures, not introduced by this change.
Focused test transcript
$ npm test -- app/test/unit/main-process/menu-test.ts app/test/unit/copilot-app-test.ts
✔ offers Copilot handoff in production without preview features
✔ provides Copilot handoff without replacing the editor command
✔ has no duplicate access keys for any combination of label-affecting parameters
ℹ tests 26
ℹ suites 7
ℹ pass 26
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0

Native UI interactions and an actual installed Copilot app launch were not manually exercised.

Screenshots

N/A: no visual redesign; this exposes the existing handoff UI in production. The focused test transcript above provides evidence for the availability change.

Team-authored review

Evidence: Validation and focused test transcript.

Review path: Lightweight review. The author has assessed the diff and evidence. This removes a rollout gate from an existing integration without changing process invocation, authentication, credentials, permissions, destructive operations, or release infrastructure. No specific concern requiring deep review was identified.

Release notes

Notes: Open repositories in the GitHub Copilot app from the Repository menu.

Remove the handoff feature flag and its conditional branches, and verify that the menu command is available without preview features.

Co-authored-by: Copilot App <[email protected]>
@niik
niik requested a review from a team as a code owner November 16, 2026 12:49
@niik
niik requested review from babakks and a balanced review from Copilot November 16, 2026 12:49
tidy-dev
tidy-dev previously approved these changes Nov 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified for enabling the existing Copilot app handoff in production.

No open issues 🎉

What changed in this PR

Enables the existing GitHub Copilot app handoff in production by removing its feature flag, without changing app discovery or launch behavior.

Changes:

  • Makes the Repository menu command and integration preferences available without feature gating.
  • Preserves repository-selection checks, custom path validation, and launch error handling.
  • Updates menu tests for production availability while retaining shortcut, editor coexistence, and access-key checks.
File Description
app/​test/​unit/​main-process/​menu-test.ts Verifies production availability and preserves menu behavior checks.
app/​src/​ui/​preferences/​preferences.tsx Removes gating from custom path validation and persistence.
app/​src/​ui/​preferences/​integrations.tsx Always renders Copilot app preferences.
app/​src/​ui/​app.tsx Removes handoff gating while retaining the selected-repository check.
app/​src/​main-process/​menu/​build-default-menu.ts Always includes the Copilot handoff command.
app/​src/​lib/​stores/​app-store.ts Removes the feature-gated early return from handoff execution.
app/​src/​lib/​menu-update.ts Always includes handoff in menu-state management.
app/​src/​lib/​feature-flag.ts Removes enableCopilotAppHandoff.

Review effort: Balanced

Keep upstream feature flag removals alongside unconditional Copilot app handoff.

Co-authored-by: Copilot App <[email protected]>
@niik
niik merged commit 01cde4f into development Nov 17, 2026
9 checks passed
@niik
niik deleted the niik-copilot-handoff-production branch November 17, 2026 14:49
@niik niik mentioned this pull request Nov 18, 2026
3 tasks
elsycharles pushed a commit to elsycharles/desktop that referenced this pull request Nov 20, 2026
Backport desktop#23185 onto the tested 3.6.12-beta2 release base for 3.7.0. No other development changes are included.

Co-authored-by: Copilot App <[email protected]>
Copilot AI mentioned this pull request Nov 26, 2026
3 tasks
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.

4 participants