fix(run): update file headers to reflect per-tool setup, add resume-last test

This commit is contained in:
2026-08-27 10:53:03 +07:00
parent abf3181843
commit 0d53603d9e
4 changed files with 37 additions and 20 deletions
@@ -329,4 +329,15 @@ describe("RunSetup — per-tool fields", () => {
);
expect(onStart.mock.calls[0]?.[0]?.permissionMode).toBeUndefined();
});
it("calls onResumeLast when a codex lane's resume-last button is clicked", async () => {
const onResumeLast = vi.fn();
const user = userEvent.setup();
renderSetup({ tool: "codex", onResumeLast });
// Switch to resume mode
fireEvent.click(screen.getByText(i18n.t("run:resume.resumeOption")));
// Click the resume-last button
await user.click(screen.getByText(i18n.t("run:resume.lastOption")));
expect(onResumeLast).toHaveBeenCalled();
});
});