Skip to content
4 changes: 4 additions & 0 deletions apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1625,6 +1625,7 @@ export function makeClaudeUserMessage(input: {
const makeClaudeUserMessageWithAttachments = Effect.fnUntraced(function* (input: {
readonly text: string;
readonly attachments: ReadonlyArray<ChatAttachment>;
readonly attachmentPromptParts?: ProviderAdapter.ProviderAdapterV2TurnMessage["attachmentPromptParts"];
readonly priority?: SDKUserMessage["priority"];
readonly uuid?: SDKUserMessage["uuid"];
readonly attachmentsDir: string;
Expand All @@ -1643,6 +1644,7 @@ const makeClaudeUserMessageWithAttachments = Effect.fnUntraced(function* (input:
const textWithAttachmentPaths = providerMessageTextWithAttachmentPaths({
text: input.text,
attachments: input.attachments,
attachmentPromptParts: input.attachmentPromptParts,
resolveAttachmentPath: (attachment) =>
resolveAttachmentPath({ attachmentsDir: input.attachmentsDir, attachment }),
});
Expand Down Expand Up @@ -8739,6 +8741,7 @@ export const makeClaudeAdapterV2 = Effect.fn("makeClaudeAdapterV2")(function* (
compileClaudeModelSelection(turnInput.modelSelection).promptEffort,
),
attachments: turnInput.message.attachments,
attachmentPromptParts: turnInput.message.attachmentPromptParts,
attachmentsDir,
fileSystem,
skillNames: yield* userInvocableSkillNames(turnInput.runtimePolicy.cwd),
Expand Down Expand Up @@ -9043,6 +9046,7 @@ export const makeClaudeAdapterV2 = Effect.fn("makeClaudeAdapterV2")(function* (
compileClaudeModelSelection(currentTurn.input.modelSelection).promptEffort,
),
attachments: turnInput.message.attachments,
attachmentPromptParts: turnInput.message.attachmentPromptParts,
priority: "now",
attachmentsDir,
fileSystem,
Expand Down
Loading
Loading