Skip to content

Fix serena-go tool reference in smoke test workflows#368

Merged
lpcox merged 4 commits intomainfrom
copilot/debug-go-command-issue
Jan 19, 2026
Merged

Fix serena-go tool reference in smoke test workflows#368
lpcox merged 4 commits intomainfrom
copilot/debug-go-command-issue

Conversation

Copy link
Contributor

Copilot AI commented Jan 19, 2026

Fix smoke-copilot workflow serena-go tool reference

Problem Identified ✅

The smoke-copilot action was trying to run go version directly via bash, resulting in "bash: go: command not found" error. The agent was not using the Serena MCP server tool as intended.

Root Cause Analysis ✅

  • The .md files used backticks around serena-go tool name: `serena-go`
  • The gh-aw compiler transformed `serena-go` to `serena` during compilation
  • The -go suffix was stripped, likely due to tool name normalization against the MCP server name
  • Agent received instruction to use serena tool instead of serena-go tool
  • Without the correct tool name, agent fell back to running go commands directly via bash

Fix Applied ✅

  • Removed backticks from serena-go in smoke-copilot.md
  • Removed backticks from serena-go in smoke-codex.md
  • Applied minimal fix to smoke-copilot.lock.yml (only the serena-go tool reference)
  • Reverted unrelated compiler changes per review feedback

Files Changed

  • .github/workflows/smoke-copilot.md - Line 63: Removed backticks
  • .github/workflows/smoke-codex.md - Line 61: Removed backticks
  • .github/workflows/smoke-copilot.lock.yml - Line 728: Now shows "serena-go tool" (minimal change)

Expected Result

The workflow will now correctly instruct the agent to use the serena-go MCP tool for Go operations, preventing the "go: command not found" error.


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

- Remove backticks from `serena-go` tool reference in markdown files
- Recompile smoke-copilot and smoke-codex workflows
- Now correctly instructs agent to use "serena-go tool" instead of "serena tool"
- This prevents agent from trying to run go commands directly via bash

Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix go command not found error in smoke copilot action Fix serena-go tool reference in smoke test workflows Jan 19, 2026
Copilot AI requested a review from lpcox January 19, 2026 19:06
Copy link
Collaborator

@lpcox lpcox left a comment

Choose a reason for hiding this comment

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

always use githubnext/gh-aw/actions/setup@v0.37.0 for "Setup Scripts"

actions
persist-credentials: false
- name: Setup Scripts
uses: githubnext/gh-aw/actions/setup@v0.37.0
Copy link
Collaborator

Choose a reason for hiding this comment

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

@copilot keep this line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Restored to githubnext/gh-aw/actions/setup@v0.37.0 in commit 4dcfc49.

actions
persist-credentials: false
- name: Setup Scripts
uses: githubnext/gh-aw/actions/setup@v0.37.0
Copy link
Collaborator

Choose a reason for hiding this comment

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

@copilot keep this line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Restored to githubnext/gh-aw/actions/setup@v0.37.0 in commit 4dcfc49.

actions
persist-credentials: false
- name: Setup Scripts
uses: githubnext/gh-aw/actions/setup@v0.37.0
Copy link
Collaborator

Choose a reason for hiding this comment

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

@copilot keep this line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Restored to githubnext/gh-aw/actions/setup@v0.37.0 in commit 4dcfc49.

actions
persist-credentials: false
- name: Setup Scripts
uses: githubnext/gh-aw/actions/setup@v0.37.0
Copy link
Collaborator

Choose a reason for hiding this comment

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

@copilot keep this line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Restored to githubnext/gh-aw/actions/setup@v0.37.0 in commit 4dcfc49.

persist-credentials: false
- name: Setup Scripts
uses: githubnext/gh-aw/actions/setup@v0.37.0
uses: ./actions/setup
Copy link
Collaborator

Choose a reason for hiding this comment

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

@copilot keep this line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Restored to githubnext/gh-aw/actions/setup@v0.37.0 in commit 4dcfc49.

persist-credentials: false
- name: Setup Scripts
uses: githubnext/gh-aw/actions/setup@v0.37.0
uses: ./actions/setup
Copy link
Collaborator

Choose a reason for hiding this comment

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

@copilot keep this line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Restored to githubnext/gh-aw/actions/setup@v0.37.0 in commit 4dcfc49.

actions
persist-credentials: false
- name: Setup Scripts
uses: githubnext/gh-aw/actions/setup@v0.37.0
Copy link
Collaborator

Choose a reason for hiding this comment

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

@copilot keep this line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Restored to githubnext/gh-aw/actions/setup@v0.37.0 in commit 4dcfc49.

- Reverted changes to actions/setup references (keep githubnext/gh-aw/actions/setup@v0.37.0)
- Reverted version bumps and other compiler changes
- Kept only the essential fix: changing `serena` tool to serena-go tool

Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Jan 19, 2026

always use githubnext/gh-aw/actions/setup@v0.37.0 for "Setup Scripts"

Reverted all actions/setup references to use githubnext/gh-aw/actions/setup@v0.37.0. Changes applied in commit 4dcfc49.

Copilot AI requested a review from lpcox January 19, 2026 19:27
@lpcox lpcox marked this pull request as ready for review January 19, 2026 19:30
@lpcox lpcox enabled auto-merge January 19, 2026 19:30
Copy link
Collaborator

@lpcox lpcox left a comment

Choose a reason for hiding this comment

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

Looks good

@lpcox lpcox merged commit 8dce3d9 into main Jan 19, 2026
@lpcox lpcox deleted the copilot/debug-go-command-issue branch January 19, 2026 19:31
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