Skip to content

Commit d348797

Browse files
authored
Include event_type when invoking Copilot coding agent (#7488)
1 parent fe9dbe7 commit d348797

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/github/copilotApi.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const PREMIUM_REQUESTS_URL = 'https://docs.github.com/en/copilot/concepts/copilo
2121

2222
export interface RemoteAgentJobPayload {
2323
problem_statement: string;
24+
event_type: string;
2425
pull_request?: {
2526
title?: string;
2627
body_placeholder?: string;

src/github/copilotRemoteAgent.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,7 @@ export class CopilotRemoteAgentManager extends Disposable {
616616
const problemStatement: string = `${prompt} ${problemContext ? `: ${problemContext}` : ''}`;
617617
const payload: RemoteAgentJobPayload = {
618618
problem_statement: problemStatement,
619+
event_type: 'visual_studio_code_remote_agent_tool_invoked',
619620
pull_request: {
620621
title,
621622
body_placeholder: formatBodyPlaceholder(problemContext),

0 commit comments

Comments
 (0)