Skip to content

Commit 5b43f21

Browse files
committed
fix(copilot): align extra context header
1 parent 84b22ba commit 5b43f21

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

extensions/copilot/src/attempt.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1659,7 +1659,7 @@ describe("runCopilotAttempt", () => {
16591659
};
16601660
expect(cfg.systemMessage?.mode).toBe("append");
16611661
expect(cfg.systemMessage?.content).toBe(
1662-
"## Group Chat Context\nTool and file actions are disabled for this sender.",
1662+
"## Conversation Context\nTool and file actions are disabled for this sender.",
16631663
);
16641664
});
16651665

@@ -1747,7 +1747,7 @@ describe("runCopilotAttempt", () => {
17471747
systemMessage?: { mode?: string; content?: string };
17481748
};
17491749
expect(cfg.systemMessage?.content).toBe(
1750-
`${rendered}\n\n## Group Chat Context\nOnly answer in the current group thread.`,
1750+
`${rendered}\n\n## Conversation Context\nOnly answer in the current group thread.`,
17511751
);
17521752
});
17531753

extensions/copilot/src/attempt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1516,7 +1516,7 @@ function createSystemMessageContent(
15161516
const extraSystemPrompt = readString(params.extraSystemPrompt)?.trim();
15171517
if (extraSystemPrompt && !isRawCopilotModelRun(params)) {
15181518
const contextHeader =
1519-
params.promptMode === "minimal" ? "## Subagent Context" : "## Group Chat Context";
1519+
params.promptMode === "minimal" ? "## Subagent Context" : "## Conversation Context";
15201520
sections.push(`${contextHeader}\n${extraSystemPrompt}`);
15211521
}
15221522
return sections.length > 0 ? sections.join("\n\n") : undefined;

0 commit comments

Comments
 (0)