* perf(relay): stop re-encoding frames to size PTY chunks
maxLegacyPtyDataChars now sizes the full candidate once (the common case)
and falls back to a binary search over an exact cheap byte formula instead
of fully encoding the frame at every probe. Publish paths thread their
already-computed frame estimate into enqueueFrame so each PTY publish
encodes the message once for admission instead of twice.
Co-authored-by: Orca <help@stably.ai>
* fix(relay): preserve dispatcher frame guards
---------
Co-authored-by: Orca <help@stably.ai>