Skip to content

[WIP] Investigate issue with safe-output tools registration#11149

Closed
Copilot wants to merge 2 commits intocopilot/convert-safe-outputs-to-html-transportfrom
copilot/investigate-safe-output-tools-issue
Closed

[WIP] Investigate issue with safe-output tools registration#11149
Copilot wants to merge 2 commits intocopilot/convert-safe-outputs-to-html-transportfrom
copilot/investigate-safe-output-tools-issue

Conversation

Copy link
Contributor

Copilot AI commented Jan 22, 2026

Investigation Complete - Fix Plan

Problem Analysis

The safe-output tools (like create-issue) are not registered or invoked by the agent in workflow run https://github.com/githubnext/gh-aw/actions/runs/21233711074/job/61097121763 because the required environment variables are missing.

Root Cause

In pkg/workflow/mcp_setup_generator.go (lines 541-544), only safe-inputs environment variables are passed to the MCP gateway Docker container. The safe-outputs environment variables (GH_AW_SAFE_OUTPUTS_PORT and GH_AW_SAFE_OUTPUTS_API_KEY) are missing.

Impact

  • The MCP configuration file references $GH_AW_SAFE_OUTPUTS_PORT and $GH_AW_SAFE_OUTPUTS_API_KEY
  • When the MCP gateway starts, it cannot resolve these variables
  • The safe-outputs MCP server URL and authentication fail
  • Safe-output tools are not registered and unavailable to the agent

Fix Plan

  • Investigate the failing workflow run
  • Identify missing environment variables
  • Locate the code that builds the MCP gateway Docker command
  • Add safe-outputs environment variables to the Docker command (similar to safe-inputs)
  • Test the fix with the smoke-claude workflow
  • Run validation and tests
  • Verify fix resolves the issue
Original prompt

Reference: https://github.com/githubnext/gh-aw/actions/runs/21233711074/job/61097121763

investigate why the safe-output tools, such as create-issue, were not registered or invoked by the agent in the referenced workflow-run.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@pelikhan pelikhan closed this Jan 22, 2026
Copilot AI requested a review from pelikhan January 22, 2026 02:46
Copilot stopped work on behalf of pelikhan due to an error January 22, 2026 02:46
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.

2 participants