diff --git a/bin/review_replay/test_review_replay.py b/bin/review_replay/test_review_replay.py index befa396f..b098c706 100644 --- a/bin/review_replay/test_review_replay.py +++ b/bin/review_replay/test_review_replay.py @@ -308,6 +308,16 @@ class Main(unittest.TestCase): self.assertIn(f"on {REFERENCE} found nothing: the prompt names the review folder in a spelling the replay does not redirect", err) self.assertTrue(out.endswith("No rung tried: the reference reviewer found no finding to hold one to.\n")) + def test_replays_a_round_whose_prompt_names_an_input_written_before_it_began_naming_the_copy(self): + folder = self.review_folder_with_round_1() + (folder / "branch.diff").write_text("the diff\n") + before = stamp_seconds("2026-10-14T09:50:00Z") + os.utime(folder / "branch.diff", (before, before)) + self.set_prompt(f"Review branch x in {self.home}/code/proj-x. The diff is ~/.local/state/larv-review/code/proj-x/branch.diff. Write your report to ~/.local/state/larv-review/code/proj-x/stability-round-2.md.") + code, _, err = self.run_main(["stability", "claude-opus-5-5"], lambda rung: {"found": [0, 1]}) + self.assertEqual(code, 0, err) + self.assertRegex(self.reviews[0][4], rf"The diff is {folder.parents[1]}/review-replay-\w+/branch\.diff\.") + def test_replays_no_round_whose_prompt_names_an_input_the_folder_holds_only_as_rewritten_after_the_round_began(self): folder = self.review_folder_with_round_1() (folder / "branch.diff").write_text("a later diff\n")