We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5849833 + 1e0298b commit 3b3de42Copy full SHA for 3b3de42
1 file changed
lib/messages/inject.ts
@@ -143,6 +143,13 @@ export const insertPruneToolContext = (
143
const isGitHubCopilot =
144
providerID === "github-copilot" || providerID === "github-copilot-enterprise"
145
146
+ if (isGitHubCopilot) {
147
+ const lastMessage = messages[messages.length - 1]
148
+ if (lastMessage?.info?.role === "user") {
149
+ return
150
+ }
151
152
+
153
logger.info("Injecting prunable-tools list", {
154
providerID,
155
isGitHubCopilot,
0 commit comments