File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,12 @@ export const insertPruneToolContext = (
143143 const isGitHubCopilot =
144144 providerID === "github-copilot" || providerID === "github-copilot-enterprise"
145145
146+ logger . info ( "Injecting prunable-tools list" , {
147+ providerID,
148+ isGitHubCopilot,
149+ injectionType : isGitHubCopilot ? "assistant-with-tool-part" : "user-message" ,
150+ } )
151+
146152 if ( isGitHubCopilot ) {
147153 messages . push (
148154 createSyntheticAssistantMessageWithToolPart ( lastUserMessage , prunableToolsContent ) ,
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ export const createSyntheticAssistantMessageWithToolPart = (
4949 id : SYNTHETIC_MESSAGE_ID ,
5050 sessionID : userInfo . sessionID ,
5151 role : "assistant" ,
52+ agent : userInfo . agent || "code" ,
5253 parentID : userInfo . id ,
5354 modelID : userInfo . model . modelID ,
5455 providerID : userInfo . model . providerID ,
You can’t perform that action at this time.
0 commit comments