Files
EchoionApi/include
faumarayandClaude Opus 4.8 dede07748a Fix hot-reload ABI break: move reloadConfig() to end of ICoreInterface
ICoreInterface is the vtable ABI contract between the already-loaded Plugin
and a freshly hot-reloaded Core. reloadConfig() was added mid-interface (after
getConfigJson), which shifted every later vtable slot — so the still-running
Plugin's calls to saveState/restoreState/getStateFormatVersion/onPluginEvent
dispatched to the wrong methods on the new Core. Symptom: state restore read a
garbage version (2303262719), threw basic_string::_M_create, and left the Core
uninitialized (onPluginEvent ignored, initialized=false).

Move reloadConfig() to the very end of the interface (append-only) so all
pre-existing slots keep their indices. Add a comment documenting the rule.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 21:24:03 +03:00
..