Skip to content

fix: add /tmp/gh-aw bind mount to safeoutputs MCP container#39950

Merged
pelikhan merged 7 commits into
mainfrom
copilot/fix-mcp-container-tmp-mount
Jun 18, 2026
Merged

fix: add /tmp/gh-aw bind mount to safeoutputs MCP container#39950
pelikhan merged 7 commits into
mainfrom
copilot/fix-mcp-container-tmp-mount

Conversation

Copilot AI commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

The safeoutputs MCP container was launched without a /tmp/gh-aw bind mount. Patch/bundle files written to /tmp/gh-aw/aw-*.patch|.bundle inside the --rm container were silently destroyed on exit, so the host runner never saw them and safe_outputs failed with No patch file found.

Changes

  • renderSafeOutputsTOML — adds DefaultTmpGhAwMount to the TOML mounts array (Codex/Claude path)
  • renderSafeOutputsMCPConfigWithOptions — adds DefaultTmpGhAwMount to the JSON mounts array (Copilot/Claude path)
  • Tests — updated assertions in mcp_config_refactor_test.go and mcp_renderer_test.go to require the new mount

Before:

"mounts": ["${GITHUB_WORKSPACE}:...:rw", "${RUNNER_TEMP}/gh-aw/safeoutputs:...:rw", "/tmp/gh-aw/mcp-logs/safeoutputs:...:rw"]

After:

"mounts": ["${GITHUB_WORKSPACE}:...:rw", "${RUNNER_TEMP}/gh-aw/safeoutputs:...:rw", "/tmp/gh-aw/mcp-logs/safeoutputs:...:rw", "/tmp/gh-aw:/tmp/gh-aw:rw"]

This aligns safeoutputs with the agenticworkflows MCP server, which already includes DefaultTmpGhAwMount.



✨ PR Review Safe Output Test - Run 27737636941

Warning

Firewall blocked 6 domains

The following domains were blocked by the firewall during workflow execution:

  • accounts.google.com
  • android.clients.google.com
  • clients2.google.com
  • contentautofill.googleapis.com
  • safebrowsingohttpgateway.googleapis.com
  • www.google.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "accounts.google.com"
    - "android.clients.google.com"
    - "clients2.google.com"
    - "contentautofill.googleapis.com"
    - "safebrowsingohttpgateway.googleapis.com"
    - "www.google.com"

See Network Configuration for more information.

💥 [THE END] — Illustrated by Smoke Claude ·


Changeset\n\n- Type: patch\n- Description: Fix safeoutputs MCP container mounts so /tmp/gh-aw is available for patch and bundle files.

Generated by 📋 Changeset Generator for issue #39950 ·


Changeset

  • Type: patch
  • Description: Fix safeoutputs MCP container mounts so /tmp/gh-aw is available for patch and bundle files.

Generated by 📋 Changeset Generator for issue #39950 ·



✨ PR Review Safe Output Test - Run 27738580670

Warning

Firewall blocked 6 domains

The following domains were blocked by the firewall during workflow execution:

  • accounts.google.com
  • android.clients.google.com
  • clients2.google.com
  • contentautofill.googleapis.com
  • safebrowsingohttpgateway.googleapis.com
  • www.google.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "accounts.google.com"
    - "android.clients.google.com"
    - "clients2.google.com"
    - "contentautofill.googleapis.com"
    - "safebrowsingohttpgateway.googleapis.com"
    - "www.google.com"

See Network Configuration for more information.

💥 [THE END] — Illustrated by Smoke Claude ·

The safeoutputs MCP container was missing the /tmp/gh-aw bind mount,
causing patch/bundle files written inside the container to be destroyed
when the container exited (--rm). The host runner's /tmp/gh-aw never
received them, so collect_ndjson_output.cjs found nothing and
safe_outputs failed with "No patch file found".

Add constants.DefaultTmpGhAwMount to the mounts array in both:
- renderSafeOutputsTOML (TOML path for Codex/Claude)
- renderSafeOutputsMCPConfigWithOptions (JSON path for Copilot/Claude)

This matches how other MCP servers (agenticworkflows) already include
DefaultTmpGhAwMount in their mounts.

Fixes: #39948

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix MCP container mount issue for patch generation fix: add /tmp/gh-aw bind mount to safeoutputs MCP container Jun 18, 2026
Copilot AI requested a review from pelikhan June 18, 2026 04:52
@pelikhan pelikhan marked this pull request as ready for review June 18, 2026 04:54
Copilot AI review requested due to automatic review settings June 18, 2026 04:54
@pelikhan pelikhan added the smoke label Jun 18, 2026
@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Test Quality Sentinel completed test quality analysis.

@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟

@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Design Decision Gate 🏗️ completed the design decision gate check.

No ADR enforcement needed: PR #39950 does not have the 'implementation' label (has_implementation_label=false) and has only 11 new lines of code in business logic directories (≤100 threshold, requires_adr_by_default_volume=false).

@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

⚠️ PR Code Quality Reviewer failed during code quality review.

@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

🚀 Smoke Pi MISSION COMPLETE! Pi delivered. 🥧

@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

🚀 Smoke Antigravity MISSION COMPLETE! Antigravity has spoken. ✨

@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

🎬 THE ENDSmoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨

@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

✅ All tools validated successfully! Agent Container Smoke Test confirms agent container is ready.

@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

🚀 Smoke Gemini MISSION COMPLETE! Gemini has spoken. ✨

Testing safeoutputs CLI

@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

@github-actions

Copy link
Copy Markdown
Contributor

📰 BREAKING: Smoke Copilot is now investigating this pull request. Sources say the story is developing...

@github-actions

Copy link
Copy Markdown
Contributor

📰 BREAKING: Smoke Copilot - AOAI (apikey) is now investigating this pull request. Sources say the story is developing...

@github-actions

Copy link
Copy Markdown
Contributor

📰 BREAKING: Smoke Copilot - AOAI (Entra) is now investigating this pull request. Sources say the story is developing...

@github-actions

This comment has been minimized.

@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

✅ All tools validated successfully! Agent Container Smoke Test confirms agent container is ready.

@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

🚀 Smoke Gemini MISSION COMPLETE! Gemini has spoken. ✨

@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

🚀 Smoke Antigravity MISSION COMPLETE! Antigravity has spoken. ✨

@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

🌑 The shadows whisper... Smoke Codex failed to deliver outputs. The oracle requires further meditation...

@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

🎬 THE ENDSmoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨

@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

🚀 Smoke Pi MISSION COMPLETE! Pi delivered. 🥧

@github-actions

Copy link
Copy Markdown
Contributor

📰 BREAKING: Smoke Copilot - AOAI (apikey) is now investigating this pull request. Sources say the story is developing...

@github-actions

Copy link
Copy Markdown
Contributor

📰 BREAKING: Smoke Copilot is now investigating this pull request. Sources say the story is developing...

@github-actions

Copy link
Copy Markdown
Contributor

📰 BREAKING: Smoke Copilot - AOAI (Entra) is now investigating this pull request. Sources say the story is developing...

@github-actions

Copy link
Copy Markdown
Contributor

Commit pushed: 938a5d3

Generated by Changeset Generator

@github-actions

Copy link
Copy Markdown
Contributor

Agent Container Tool Check

Tool Status Version
bash 5.2.21
sh available
git 2.54.0
jq 1.7
yq v4.53.3
curl 8.5.0
gh 2.94.0
node v22.22.3
python3 3.11.15 (PyPy)
go go1.24.13
java 21.0.11
dotnet 10.0.301

Result: 12/12 tools available ✅

Overall Status: PASS

🔧 Tool validation by Agent Container Smoke Test ·

@pelikhan pelikhan merged commit 2fcf71d into main Jun 18, 2026
20 checks passed
@pelikhan pelikhan deleted the copilot/fix-mcp-container-tmp-mount branch June 18, 2026 05:29
@github-actions

Copy link
Copy Markdown
Contributor

Smoke Test Results: FAIL

  • GitHub MCP Testing: ✅
  • Web Fetch Testing: ✅
  • File Writing Testing: ✅
  • Bash Tool Testing: ✅
  • Build gh-aw: ❌ (Toolchain unavailable)

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • localhost

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "localhost"

See Network Configuration for more information.

Smoke Gemini — Powered by Gemini ·

@github-actions

Copy link
Copy Markdown
Contributor

Smoke test FAIL.
Merged PRs: #39951 Harden PR Sous Chef safe-output emission path; #39941 fix: correct assign-to-agent GraphQL mutations per official docs.
Results: 1✅ 2✅ 3✅ 4❌ 5✅ 6✅ 7✅ 8skipped 9✅ 10✅.
Overall: FAIL.

Warning

Firewall blocked 6 domains

The following domains were blocked by the firewall during workflow execution:

  • accounts.google.com
  • android.clients.google.com
  • clients2.google.com
  • contentautofill.googleapis.com
  • safebrowsingohttpgateway.googleapis.com
  • www.google.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "accounts.google.com"
    - "android.clients.google.com"
    - "clients2.google.com"
    - "contentautofill.googleapis.com"
    - "safebrowsingohttpgateway.googleapis.com"
    - "www.google.com"

See Network Configuration for more information.

🔮 The oracle has spoken through Smoke Codex ·

@github-actions

Copy link
Copy Markdown
Contributor

💥 Smoke Test: Claude — Run 27738580670

Core #1-12: ✅ all passed
PR Review #13-18: ✅ all passed | #19: ⚠️ skipped

Overall: PARTIAL (all executed tests passed, #19 skipped)

Run

Warning

Firewall blocked 6 domains

The following domains were blocked by the firewall during workflow execution:

  • accounts.google.com
  • android.clients.google.com
  • clients2.google.com
  • contentautofill.googleapis.com
  • safebrowsingohttpgateway.googleapis.com
  • www.google.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "accounts.google.com"
    - "android.clients.google.com"
    - "clients2.google.com"
    - "contentautofill.googleapis.com"
    - "safebrowsingohttpgateway.googleapis.com"
    - "www.google.com"

See Network Configuration for more information.

💥 [THE END] — Illustrated by Smoke Claude ·

@github-actions github-actions Bot 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.

💥 Automated smoke test review - all systems nominal!

Warning

Firewall blocked 6 domains

The following domains were blocked by the firewall during workflow execution:

  • accounts.google.com
  • android.clients.google.com
  • clients2.google.com
  • contentautofill.googleapis.com
  • safebrowsingohttpgateway.googleapis.com
  • www.google.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "accounts.google.com"
    - "android.clients.google.com"
    - "clients2.google.com"
    - "contentautofill.googleapis.com"
    - "safebrowsingohttpgateway.googleapis.com"
    - "www.google.com"

See Network Configuration for more information.

💥 [THE END] — Illustrated by Smoke Claude

@@ -0,0 +1,5 @@
---
"gh-aw": patch

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.

Nit: the changeset bump type patch looks correct for this mount fix. 👍

"gh-aw": patch
---

Fixed the safeoutputs MCP container mounts so `/tmp/gh-aw` is available for patch and bundle files.

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.

Clear description — consider noting this aligns safeoutputs with the agenticworkflows mount.

@github-actions

Copy link
Copy Markdown
Contributor

PR titles:

  • fix: add /tmp/gh-aw bind mount to safeoutputs MCP container
  • [aw] Harden PR Sous Chef safe-output emission path
  • fix: correct assign-to-agent GraphQL mutations per official docs
    Results: 1❌ 2✅ 3✅ 4✅ 5❌ 6✅ 7✅ 8✅ 9✅ 10✅ 11✅ 12✅ 13✅ 14✅ 15✅
    Overall: FAIL
    Author: @app/copilot-swe-agent | Assignees: @pelikhan @Copilot

Warning

Firewall blocked 6 domains

The following domains were blocked by the firewall during workflow execution:

  • accounts.google.com
  • android.clients.google.com
  • clients2.google.com
  • contentautofill.googleapis.com
  • safebrowsingohttpgateway.googleapis.com
  • www.google.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "accounts.google.com"
    - "android.clients.google.com"
    - "clients2.google.com"
    - "contentautofill.googleapis.com"
    - "safebrowsingohttpgateway.googleapis.com"
    - "www.google.com"

See Network Configuration for more information.

📰 BREAKING: Report filed by Smoke Copilot ·

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

circuits hum at dawn
review bots trade tiny lanterns
smoke drifts into green

Note

This comment is managed by comment memory.

It stores persistent context for this thread in the code block at the top of this comment.
Edit only the text inside the backtick fences; workflow metadata and the footer are regenerated automatically.

Learn more about comment memory

Warning

Firewall blocked 6 domains

The following domains were blocked by the firewall during workflow execution:

  • accounts.google.com
  • android.clients.google.com
  • clients2.google.com
  • contentautofill.googleapis.com
  • safebrowsingohttpgateway.googleapis.com
  • www.google.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "accounts.google.com"
    - "android.clients.google.com"
    - "clients2.google.com"
    - "contentautofill.googleapis.com"
    - "safebrowsingohttpgateway.googleapis.com"
    - "www.google.com"

See Network Configuration for more information.

📰 BREAKING: Report filed by Smoke Copilot ·

@github-actions github-actions Bot 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.

Smoke review: inline comment path verified.

Warning

Firewall blocked 6 domains

The following domains were blocked by the firewall during workflow execution:

  • accounts.google.com
  • android.clients.google.com
  • clients2.google.com
  • contentautofill.googleapis.com
  • safebrowsingohttpgateway.googleapis.com
  • www.google.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "accounts.google.com"
    - "android.clients.google.com"
    - "clients2.google.com"
    - "contentautofill.googleapis.com"
    - "safebrowsingohttpgateway.googleapis.com"
    - "www.google.com"

See Network Configuration for more information.

📰 BREAKING: Report filed by Smoke Copilot

Copilot stopped work on behalf of pelikhan due to an error June 18, 2026 05:34
@github-actions

Copy link
Copy Markdown
Contributor

Smoke Test Results:
Test 1: ✅
Test 2: ✅
Test 3: ❌
Test 4: ✅
Test 5: ✅
Test 6: ✅
Test 7: ✅
Test 8: ❌
Test 9: ✅
Test 10: ✅
Test 11: ❌
Test 12: ❌
Test 13: ❌
Test 14: ❌
Test 15: ❌
Overall Status: FAIL
@app/copilot-swe-agent @pelikhan @Copilot

Warning

Firewall blocked 6 domains

The following domains were blocked by the firewall during workflow execution:

  • accounts.google.com
  • android.clients.google.com
  • clients2.google.com
  • contentautofill.googleapis.com
  • safebrowsingohttpgateway.googleapis.com
  • www.google.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "accounts.google.com"
    - "android.clients.google.com"
    - "clients2.google.com"
    - "contentautofill.googleapis.com"
    - "safebrowsingohttpgateway.googleapis.com"
    - "www.google.com"

See Network Configuration for more information.

📰 BREAKING: Report filed by Smoke Copilot - AOAI (apikey) ·

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants