Skip to content

fix: temporarily disable GITHUB_COPILOT_INTEGRATION_ID env var#25521

Merged
lpcox merged 2 commits intomainfrom
disable-copilot-integration-id
Apr 9, 2026
Merged

fix: temporarily disable GITHUB_COPILOT_INTEGRATION_ID env var#25521
lpcox merged 2 commits intomainfrom
disable-copilot-integration-id

Conversation

@lpcox
Copy link
Copy Markdown
Collaborator

@lpcox lpcox commented Apr 9, 2026

Summary

Temporarily disables the GITHUB_COPILOT_INTEGRATION_ID environment variable that is unconditionally injected into every Copilot engine agent step. This env var may be causing the Copilot CLI to fail or behave unexpectedly.

Changes

  • Commented out the injection at copilot_engine_execution.go:290
  • Rebuilt and recompiled all 187 workflows to remove the env var from lock files
  • Updated WASM golden files

What was removed

Every Copilot engine lock file previously contained:

GITHUB_COPILOT_INTEGRATION_ID: agentic-workflows

This line is now removed from all compiled workflows.

Next steps

Once confirmed this is not the source of failures, re-enable the env var by uncommenting the line.

Closes #25516

The compiler unconditionally sets GITHUB_COPILOT_INTEGRATION_ID=agentic-workflows
in the Copilot agent step environment. This may be causing the Copilot CLI to
fail or behave unexpectedly.

Temporarily disable injection until confirmed not the source of failures.

Closes #25516

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 9, 2026 17:59
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Temporarily disables injection of GITHUB_COPILOT_INTEGRATION_ID=agentic-workflows into Copilot engine agent steps to investigate suspected Copilot CLI failures (closes #25516).

Changes:

  • Commented out the env var injection in the Copilot engine execution step generation.
  • Regenerated workflow lock files to remove GITHUB_COPILOT_INTEGRATION_ID from compiled workflows.
  • Updated WASM compile fixture golden outputs accordingly.
Show a summary per file
File Description
pkg/workflow/copilot_engine_execution.go Stops injecting GITHUB_COPILOT_INTEGRATION_ID into the agent step env (temporarily, via comment-out).
pkg/workflow/testdata/TestWasmGolden_CompileFixtures/with-imports.golden Updates golden output to reflect removal of the env var.
pkg/workflow/testdata/TestWasmGolden_CompileFixtures/basic-copilot.golden Updates golden output to reflect removal of the env var.
.github/workflows/workflow-skill-extractor.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/workflow-normalizer.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/workflow-health-manager.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/workflow-generator.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/weekly-safe-outputs-spec-review.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/weekly-issue-summary.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/weekly-editors-health-check.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/weekly-blog-post-writer.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/video-analyzer.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/update-astro.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/ubuntu-image-analyzer.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/tidy.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/test-workflow.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/test-quality-sentinel.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/test-project-url-default.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/test-dispatcher.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/terminal-stylist.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/technical-doc-writer.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/super-linter.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/sub-issue-closer.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/stale-repo-identifier.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/smoke-workflow-call.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/smoke-workflow-call-with-inputs.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/smoke-update-cross-repo-pr.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/smoke-test-tools.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/smoke-temporary-id.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/smoke-service-ports.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/smoke-project.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/smoke-multi-pr.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/smoke-create-cross-repo-pr.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/smoke-copilot.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/smoke-copilot-arm.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/slide-deck-maintainer.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/security-review.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/security-compliance.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/research.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/repository-quality-improver.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/repo-tree-map.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/repo-audit-analyzer.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/release.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/refiner.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/refactoring-cadence.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/q.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/python-data-charts.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/pr-triage-agent.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/pr-nitpick-reviewer.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/portfolio-analyst.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/poem-bot.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/plan.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/pdf-summary.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/org-health-report.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/notion-issue-summary.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/metrics-collector.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/mergefest.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/mcp-inspector.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/layout-spec-maintainer.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/jsweep.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/issue-triage-agent.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/issue-monster.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/gpclean.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/glossary-maintainer.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/github-remote-mcp-auth-test.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/functional-pragmatist.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/firewall.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/firewall-escape.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/example-permissions-warning.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/draft-pr-cleanup.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/docs-noob-tester.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/discussion-task-miner.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/dictation-prompt.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/dev.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/dev-hawk.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/dependabot-go-checker.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/dependabot-burner.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/delight.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/dead-code-remover.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/daily-workflow-updater.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/daily-testify-uber-super-expert.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/daily-team-status.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/daily-syntax-error-quality.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/daily-semgrep-scan.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/daily-secrets-analysis.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/daily-safe-output-integrator.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/daily-repo-chronicle.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/daily-regulatory.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/daily-performance-summary.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/daily-news.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/daily-mcp-concurrency-analysis.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/daily-malicious-code-scan.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/daily-issues-report.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/daily-integrity-analysis.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/daily-firewall-report.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/daily-file-diet.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/daily-compiler-quality.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/daily-community-attribution.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/daily-cli-tools-tester.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/daily-cli-performance.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/daily-assign-issue-to-user.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/daily-architecture-diagram.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/craft.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/copilot-token-optimizer.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/copilot-token-audit.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/copilot-pr-prompt-analysis.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/copilot-pr-nlp-analysis.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/copilot-pr-merged-report.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/copilot-cli-deep-research.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/contribution-check.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/constraint-solving-potd.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/code-simplifier.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/code-scanning-fixer.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/cli-consistency-checker.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/ci-coach.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/breaking-change-checker.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/brave.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/bot-detection.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/auto-triage-issues.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/artifacts-summary.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/architecture-guardian.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/archie.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/agentic-observability-kit.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/agent-persona-explorer.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/agent-performance-analyzer.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.
.github/workflows/ace-editor.lock.yml Removes GITHUB_COPILOT_INTEGRATION_ID from compiled workflow env.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 126/126 changed files
  • Comments generated: 2

Comment on lines +289 to +291
// Temporarily disabled — GITHUB_COPILOT_INTEGRATION_ID may be causing Copilot CLI failures.
// See https://github.com/github/gh-aw/issues/25516
// env[constants.CopilotCLIIntegrationIDEnvVar] = constants.CopilotCLIIntegrationIDValue
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

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

Leaving the integration ID injection commented out makes this hard to toggle operationally and easy to forget. Since this code already uses the feature-flag system (see isFeatureEnabled(constants.CopilotRequestsFeatureFlag, ...) above), consider gating GITHUB_COPILOT_INTEGRATION_ID behind a dedicated feature flag (default off) instead of commenting out the assignment, so it can be re-enabled without a rebuild and without keeping dead code in-place.

Copilot uses AI. Check for mistakes.
Comment on lines +289 to +291
// Temporarily disabled — GITHUB_COPILOT_INTEGRATION_ID may be causing Copilot CLI failures.
// See https://github.com/github/gh-aw/issues/25516
// env[constants.CopilotCLIIntegrationIDEnvVar] = constants.CopilotCLIIntegrationIDValue
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

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

The PR description says the env var was removed from all compiled workflows/lock files, but GITHUB_COPILOT_INTEGRATION_ID still exists in pkg/cli/workflows/example-blocked-domains.lock.yml (line ~419). Either regenerate/update that example lock file as part of this change, or clarify in the PR description that this file is intentionally excluded from the rebuild.

Copilot uses AI. Check for mistakes.
Address PR review feedback:
- Replace commented-out code with a proper feature flag
  (copilot-integration-id, default off) so it can be toggled
  without a rebuild.
- Recompile missed lock file (example-blocked-domains.lock.yml).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@lpcox lpcox merged commit 68c9f82 into main Apr 9, 2026
57 of 58 checks passed
@lpcox lpcox deleted the disable-copilot-integration-id branch April 9, 2026 18:12
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.

GITHUB_COPILOT_INTEGRATION_ID may be causing Copilot engine failures — temporarily disable

2 participants