mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-06 16:34:36 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user