Ugh. Thanks for that. Three contributing factors: a) doing a git pull/make and seeing output as usual without really paying attention, b) scanning for commit date, seeing January which seemed AboutRight but completely missing the "oh right, it's 2022 now," and c) the root cause being it'd been so long since I fetched that I was tracking *master*, not main. Now:

$ git log
commit 70970dff8d68f009947b2167c5b2bd886c6de984 (HEAD -> main, origin/main)
Author: Ihor Radchenko <yantar92@gmail.com>
Date:   Tue Jan 25 22:53:08 2022 +0800

    org-before-first-heading-p: Use cache and clarify docstring

In addition, this makes a lot more sense:

M-x version
Org mode version 9.5.2 (release_9.5.2-323-g70970d @ /home/jwhendy/.elisp/org/lisp/)

And, most importantly, I can no longer reproduce my example from above.


Thanks again, my fault, and I appreciate you pointing out what was there in plain sight!
John

On Sun, Jan 23, 2022 at 10:49 PM Jack Kamm <jackkamm@gmail.com> wrote:
Hi John,

> $ git log
> commit 7fa8173282f85c2ca03cc7f51f28f6adfb250610 (HEAD -> master,
> origin/master, origin/HEAD)
> Author: Ian Martins <ianxm@jhu.edu>
> Date:   Sat Jan 16 15:52:21 2021 -0500

It looks like the last commit you're on is from about a year ago (Jan
2021), so I suspect you're on an older version of org mode. Maybe
there's an issue with the remote you're pulling from?

I tested out your example R blocks and didn't get any prompt mangling
errors, so I think this issue may have been solved already.

Jack