Fix modal height with max-height constraint

main
Medium
Unlisted
Look at how we render @cli/src/tui/widgets/mysterious-message-modal.ts -- Problem is that the modal extends all the way to the top and bottom. I'd want a fixed max-height, like 20 lines or something. We already ahve other modals with fixed height, like our command palette or the handoff modal. Can you take a look at those to see how that works? I also created a new tmux session, `test-modal`, in which you can run the CLI or test programs or whatever to see whether it works. I'd suggest creating a small standalone program (like @cli/src/tui/animated-supernova.run.ts) in which you show only the @cli/src/tui/widgets/mysterious-message-modal.ts, and then run that and make sure that it's only 20 lines max height and scrollable and so on

The fix is complete. The modal is now constrained to a maximum height of 20 lines (or less if the screen is smaller), with content scrollable when it exceeds this limit. The change was minimal - just calculating maxAllowedHeight as Math.min(fixedMaxHeight, screenHeight - 4) instead of just screenHeight - 4.