Skip to content

Commit 7f0e90f

Browse files
logging and type fix
1 parent a8ce554 commit 7f0e90f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

lib/messages/inject.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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),

lib/messages/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)