Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): attribute async question replies #10793

ClosedGigioxx(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/10793/headopened View on GitHub

Showing 2 changed files with 7 additions and 2 deletions.

x
0 of 2 viewed, 2 left
1 addition and 1 deletionapps/server/src/orchestration/Layers/OrchestrationEngine.test.tsModified
View file
@@ -269,7 +269,7 @@
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")
6 additions and 1 deletionapps/server/src/orchestration/decider.tsModified
View file
@@ -1280,7 +1280,12 @@
.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