Describe the bug
The REPL hook is not functioning as expected when the hook is enabled in a different stage of loading config and configured in another. The system reads the new config, but is not applied to the hook, since the hook is already loaded.
To Reproduce
Enable the REPL hook by choosing a style=basic config, then configure in the same entangled.toml.
To fix
Hooks need to be context aware. A specific file in a collection may configure a repl session different from others. The hooks are now keeping a global state, but this state should be made explicit. Then the global hook state is what is stored in the context.
Describe the bug
The REPL hook is not functioning as expected when the hook is enabled in a different stage of loading config and configured in another. The system reads the new config, but is not applied to the hook, since the hook is already loaded.
To Reproduce
Enable the REPL hook by choosing a
style=basicconfig, then configure in the sameentangled.toml.To fix
Hooks need to be context aware. A specific file in a collection may configure a repl session different from others. The hooks are now keeping a global state, but this state should be made explicit. Then the global hook state is what is stored in the context.