Found this bug while investigating the above DSML stuff. Unlikely to have been causing my issue, but would have been causing some context drift and unwanted token wastage, I guess. Looks like custom skills were making it through to the system prompt even if they're disabled:
github.com/OpenHands/OpenHands/issues/16811
Suggested a fix:
github.com/OpenHands/OpenHands/pull/16812