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.
1 parent c115f5f commit 2f0bfaaCopy full SHA for 2f0bfaa
lib/messages/inject.ts
@@ -139,10 +139,12 @@ export const insertPruneToolContext = (
139
140
const userInfo = lastUserMessage.info as UserMessage
141
const providerID = userInfo.model.providerID
142
+ const modelID = userInfo.model.modelID
143
const isGitHubCopilot =
144
providerID === "github-copilot" || providerID === "github-copilot-enterprise"
145
+ const isAnthropic = modelID.includes("claude")
146
- if (isGitHubCopilot) {
147
+ if (isGitHubCopilot || isAnthropic) {
148
const lastMessage = messages[messages.length - 1]
149
if (lastMessage?.info?.role === "user") {
150
return
0 commit comments