Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ describe("OrchestrationEngine", () => {
expect(userMessages).toHaveLength(1);
expect(userMessages?.[0]?.attachments).toEqual(response.attachmentsByQuestionId["1"]);
expect(userMessages?.[0]?.text).toBe(
"Which package manager?\npnpm\n\nWhat should it be named?\nExample\nAttached file: spec.txt (thread-1-00000000-0000-4000-8000-0000000000aa-txt)",
"Agent question: Which package manager?\nUser answer: pnpm\n\nAgent question: What should it be named?\nUser answer: Example\nAttached file: spec.txt (thread-1-00000000-0000-4000-8000-0000000000aa-txt)",
);
expect(
after.threads[0]?.activities.find((activity) => activity.kind === "user-input.resolved")
Expand Down
7 changes: 6 additions & 1 deletion apps/server/src/orchestration/decider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1280,7 +1280,12 @@ export const decideOrchestrationCommand = Effect.fn("decideOrchestrationCommand"
.map((attachment) => `Attached file: ${attachment.name} (${attachment.id})`)
.join("\n");
replies.push(
[`${question.question}\n${answer.trim()}`, attachmentLabels].filter(Boolean).join("\n"),
[
`Agent question: ${question.question}\nUser answer: ${answer.trim()}`,
attachmentLabels,
]
.filter(Boolean)
.join("\n"),
);
}
// Commit the answer and its message together. The normal turn path
Expand Down
Loading