Skip to content

[WIP] Fix Smoke Aider engine termination issue - #50391

Merged
pelikhan merged 3 commits into
mainfrom
copilot/aw-fix-smoke-aider-issue
Aug 4, 2026
Merged

[WIP] Fix Smoke Aider engine termination issue#50391
pelikhan merged 3 commits into
mainfrom
copilot/aw-fix-smoke-aider-issue

Conversation

Copilot AI commented Aug 4, 2026

Copy link
Copy Markdown
Contributor
  • Investigate failing run 30944867248 logs
  • Root cause: behavior-defined engines without behaviors.mcp.config-path (aider) never emitted the start_mcp_gateway.cjs invocation, so awmg-mcpg never started while AWF still tried to attach it to awf-net
  • BehaviorDefinedEngine.RenderMCPConfig now falls back to the default MCP servers path so the gateway always starts
  • Added unit test covering both the default and explicit config-path cases
  • Recompiled workflows (smoke-aider.lock.yml now starts the gateway) and ran validation

Copilot AI linked an issue Aug 4, 2026 that may be closed by this pull request
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@pelikhan

pelikhan commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

/smoke-aider

@pelikhan
pelikhan marked this pull request as ready for review August 4, 2026 21:19
Copilot AI balanced review requested due to automatic review settings August 4, 2026 21:19
@pelikhan
pelikhan merged commit 7d28532 into main Aug 4, 2026
@pelikhan
pelikhan deleted the copilot/aw-fix-smoke-aider-issue branch August 4, 2026 21:19
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

🚀 Agentic Commands has started processing this issue comment

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.

Pull request overview

Fixes behavior-defined engines such as Aider failing to start the MCP gateway.

Changes:

  • Always renders MCP gateway startup configuration.
  • Adds regression tests and recompiles Smoke Aider.
  • Adds a patch changeset.
Show a summary per file
File Description
pkg/workflow/behavior_defined_engine.go Adds default MCP rendering fallback.
pkg/workflow/behavior_defined_engine_harness_test.go Adds MCP rendering tests.
.github/workflows/smoke-aider.lock.yml Includes generated gateway startup.
.changeset/fix-behavior-engine-mcp-gateway-startup.md Documents the fix.

Review details

Tip

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

  • Files reviewed: 4/4 changed files
  • Comments generated: 1
  • Review effort level: Balanced

Comment on lines +208 to +210
var sb strings.Builder
require.NoError(t, engine.RenderMCPConfig(&sb, workflowData.Tools, []string{"safe-outputs"}, workflowData))
assert.Contains(t, sb.String(), "start_mcp_gateway.cjs", "gateway startup command must be emitted")
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.85.0

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.

[aw] Smoke Aider failed

3 participants