MSG comments not displayed in M0 pause dialog when using Code strategy [Edge-4]

Hi team,

When using the Code strategy tool change with MSG comments before M0
pauses, the pause dialog ignores the MSG text and shows a generic message.

STEPS TO REPRODUCE:

  1. Set Tool Changing strategy to Code
  2. In the After tool change block, add a MSG comment before M0:
    (MSG, Install new bit T2 - tighten collet. Press Resume when ready.)
    M0
  3. Run a file with a tool change
  4. When M0 fires, the pause dialog shows:
    “M0 pause detected - Press Resume to continue.”
    The MSG text is completely ignored.

EXPECTED BEHAVIOR:
The MSG comment text should appear in the M0 pause dialog so the
operator knows what action to take at each pause point. This is
especially important when there are multiple M0 pauses in a sequence
(e.g. one for bit change and one for dust shoe attachment).

IMPACT:
Both pauses in a tool change sequence show identical generic dialogs.
The operator has no on-screen indication of which pause they’re at
or what action is required.

WORKAROUND:
None currently. Operators must memorize the sequence:
First M0 = change bit, Second M0 = attach dust shoe.

Machine: Shapeoko 5 Pro 4x4
Controller: Grbl 1.1h
gSender version: Edge 1.6.0-Edge-4
OS: macOS Apple Silicon (arm64)

@bbeck4x4 Is this still an issue in Edge 1.6.0 Edge 5 and/or gSender 1.6.1?

; Comments will be emitted from macros and shown in dialogs. (…) comments will not.

There is some trickiness with the expression evaluator used in the feeder where ( ) can also be used for more complex macro expressions (for example, math expressions like %X_CENTER=((X_RIGHT - X_LEFT)/2)*-1 as a part of our AutoZero probing routines) apart from g-code comments. As such we’ve limited comment stripping/parsing to just be the ; format comments.