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.
This commit is contained in:
paseo-bot[bot]
2026-11-06 06:20:59 +00:00
parent 42cbec5bd8
commit 15c8795cc6
@@ -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);