Add body_suffix parameter to include VS Code header in coding agent PRs #7226
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR implements the
body_suffix
parameter when creating coding agent sessions to add a VS Code header to PRs created by the GitHub Copilot coding agent.Changes Made
Modified
src/github/copilotRemoteAgent.ts
:body_suffix
parameter to theRemoteAgentJobPayload
in theinvokeRemoteAgent
methodExpected Behavior
When users create pull requests via the copilot coding agent, the PR description will now include a professional footer:
This provides clear attribution and helps users understand the source of automatically generated PRs while maintaining professional presentation with clickable links to relevant documentation and the VS Code extension marketplace.
Technical Details
The
body_suffix
parameter was already defined in theRemoteAgentJobPayload
interface but was not being utilized. This change adds the parameter to the payload construction, ensuring that all PRs created through the coding agent will include the VS Code attribution footer.The implementation preserves all existing functionality and conditional logic (such as the
head_ref
parameter for cases with pending changes).Fixes #7225.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.