Glyphs 3 sidebearing issues with stroke

When using a stroke, the sidebearing values behave unpredictably.
If I set RSB to 10, sometimes it seems to count 10 from the edge of the stroke, sometimes from the edge of the bezier.

Can you show a screenshot of the glyph?

Here is a clue to what’s going on:
When the path is gray, like it’s supposed to, the RSB shows correctly -25. (Image 1 below.)
When the path is black, like it’s not supposed to, the RSB shows incorrectly 0. (Image 2 below.)

The black path appears randomly when for example a handle is pulled to a specific position.