JS-081 MED: views/bro/bro.js fd-1 capture monkey-patch is re-entry-fragile

driveSpell captures the re-entrant loop.cli's fd-1 'H'-record stream by swapping the GLOBAL io.writeAll for the duration of the call (restored in a finally). The loop EDGE is correctly gated (core/loop.js:318 checks both mode!=="tlv" AND !opts2.queuePath), but the bro VERB handler's wantPager check (bro.js:130) is NOT gated on mode==="tlv". So a :bro:foo spell re-enters the handler, which re-evaluates wantPager true, re-patches the already-patched io.writeAll, and tries to launch a NESTED pager; under a /dev/tty-open failure fallthrough (:143-145 falls to fd 1) this can pollute the outer capture. Self-flagged interim (JAB-029). Method: Issues.

Input

Context

Goals

Constraints

WIP

Design decisions

TODOs

Blockers and bummers

Outcome