Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Change role from "system" to "user" in prompt messages forAssignCodingAgentPrompt andIssueToFixWorkflowPrompt#897

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

0xGosu
Copy link
Contributor

Issue Description

Role "system" is not allowed by Claude Code in MCP provided prompts (they allow only role "user" and "assistant").
In Claude Code terminal, when user try to use/gh:AssignCodingAgent (MCP) or/gh:IssueToFixWorkflow (MCP) provided by Github MCP server, they will face the below error:
Screenshot 2025-08-16 at 4 37 12 PM

Solution

Simply change the role from "system" to "user" fix this issue without impacting the functionality of the features:/gh:AssignCodingAgent and/gh:IssueToFixWorkflow.
Claude Code now accept the prompt from Github MCP server and proceed as expected.
Screenshot 2025-08-16 at 4 41 46 PM

Remark:

I couldn't find any existing issue on Github Repo for this yet. If an issue is required to merge this changes. Let me know i will create a new one.

…ingAgentPrompt` and `IssueToFixWorkflowPrompt`. Role "system" is not allowed by Claude Code in MCP provided prompt (allowed only role "user" and "assistant")
@0xGosu0xGosu requested a review froma team as acode ownerAugust 16, 2025 08:48
@CopilotCopilotAI review requested due to automatic review settingsAugust 16, 2025 08:48
Copy link
Contributor

@CopilotCopilotAI 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

This PR fixes a compatibility issue with Claude Code in MCP by changing the role from "system" to "user" in prompt messages for two GitHub MCP server features.

  • Changes the role field from "system" to "user" inAssignCodingAgentPrompt andIssueToFixWorkflowPrompt
  • Enables Claude Code compatibility without affecting functionality

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

FileDescription
pkg/github/workflow_prompts.goUpdates role from "system" to "user" in IssueToFixWorkflowPrompt
pkg/github/issues.goUpdates role from "system" to "user" in AssignCodingAgentPrompt

Tip: Customize your code reviews with copilot-instructions.md.Create the file orlearn how to get started.

@tommaso-morotommaso-moro self-requested a reviewAugust 21, 2025 14:42
@LuluBeatson
Copy link
Contributor

@0xGosu, thank you, your changes have been merged as part of#941 and released inv0.13.0 so you may close this PR

0xGosu reacted with thumbs up emoji

@0xGosu0xGosu closed thisAug 29, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

@tommaso-morotommaso-moroAwaiting requested review from tommaso-moro

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@0xGosu@LuluBeatson@tommaso-moro

[8]ページ先頭

©2009-2025 Movatter.jp