From 15c8795cc680917f822421380d4d0bd4346bb4e6 Mon Sep 17 00:00:00 2001 From: "paseo-bot[bot]" <266920839+paseo-bot[bot]@users.noreply.github.com> Date: Fri, 6 Nov 2026 06:20:59 +0000 Subject: [PATCH] test(app): expect source metadata on submitted fork history The creation flow now preserves the history source in both the pending attempt and submitted attachment. --- packages/app/src/composer/draft/create-flow.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/app/src/composer/draft/create-flow.test.ts b/packages/app/src/composer/draft/create-flow.test.ts index 8587fa3db6..20b53acba4 100644 --- a/packages/app/src/composer/draft/create-flow.test.ts +++ b/packages/app/src/composer/draft/create-flow.test.ts @@ -242,10 +242,10 @@ describe("useDraftAgentCreateFlow", () => { expect(createRequest).toHaveBeenCalledWith({ attempt: expect.objectContaining({ text: "", - attachments: [attachment.attachment], + attachments: [{ ...attachment.attachment, chatHistorySource: attachment.source }], }), text: "", - attachments: [attachment.attachment], + attachments: [{ ...attachment.attachment, chatHistorySource: attachment.source }], cwd: "/repo", }); expect(onCreateSuccess).toHaveBeenCalledTimes(1);