And know that that which we wrote, that his descendants are obligated to recite the blessing, so wrote our teacher, the Beit Yosef, with this wording in section 4, see there. However, it requires clarification, for behold, in the Gemara it is not found at all regarding his descendants at the beginning of the chapter "HaRo'eh," see there; rather, the Rif wrote there that he and his son and his grandson are obligated to recite the blessing, and so wrote the Rambam in chapter 10, law 9, that he and his son and his grandson are obligated to recite the blessing, and so wrote the Tur in the name of Rav Hai Gaon, see there, and our teacher, the Beit Yosef, in his great book ruled accordingly, see there, and according to this, our teacher, the Beit Yosef, should not have written in the Shulchan Aruch "his descendants." Rather, the Tur brought "some say" that it is not specifically his grandson, but rather the same law applies to all his descendants, meaning until the end of all generations, see there, and this is his intention in the Shulchan Aruch. But it requires investigation, for behold, a doubt regarding blessings is ruled leniently, and furthermore, if so, regarding that which they ruled that for a miracle of a tribe all of Israel are exempt from the blessing, they should have clarified that the members of that tribe are obligated. Therefore, for the practical law, it appears in my humble opinion that only his son and his grandson are obligated to recite the blessing with the Name and Sovereignty, and not the other generations. And the reason appears to me because it is stated in the Midrash that until the fourth generation the mercy of the father is upon the son. And even though it implies that the fourth generation is also included, nevertheless, regarding this matter where the reason is due to the honor of his father—for for this reason his previous offspring are also obligated in the blessing—and honor at most is only for a grandson, as our teacher, the Rema, wrote in Yoreh Deah siman 240, see there (so it appears in my humble opinion).
ודע דזה שכתבנו דיוצאי יריכו חייבין לברך, כן כתב רבינו הבית יוסף כלשון הזה בסעיף ד' ע"ש. האמנם צריך ביאור, דהנה בגמרא לא נמצא כלל על יוצאי יריכו בריש פרק הרואה ע"ש, אלא דהרי"ף כתב שם דאיהו ובריה ובר בריה חייבין לברך, וכן כתב הרמב"ם בפרק י' דין ט' דהוא ובנו ובן בנו חייבין לברך, וכן כתב הטור בשם רב האי גאון ע"ש, ורבינו הבית יוסף בספרו הגדול פסק כן ע"ש, ולפי זה לא היה לו לרבינו הבית יוסף לכתוב בשולחן ערוך 'יוצאי יריכו'. אלא דהטור הביא יש אומרים דלאו דווקא בן בנו, אלא הוא הדין כל יוצאי ירכו, כלומר עד סוף כל הדורות ע"ש, וזהו כוונתו בשולחן ערוך. אבל יש לעיין, דהא ספק ברכות להקל, ועוד דאם כן במה שפסקו דבנס של שבט כל ישראל פטורים מהברכה, והיה להם לבאר דבני אותו השבט חייבים. ולכן לדינא נראה לעניות דעתי דרק בנו ובן בנו חייבים לברך בשם ומלכות, ולא שארי הדורות. והטעם נראה לי משום דאיתא במדרש דעד דור רביעי רחמי האב על הבן. ואף דמשמע דגם דור רביעי בכלל, מכל מקום לעניין זה דהטעם הוא משום כבוד אביו, דמטעם זה גם יוצאי חלציו הקודמים חייבים בברכה, וכיבוד לכל היותר אינו אלא בבן בנו, כמ"ש רבינו הרמ"א ביורה דעה סימן ר"מ ע"ש (כן נראה לעניות דעתי).