opencode icon indicating copy to clipboard operation
opencode copied to clipboard

feat: update config api

Open neriousy opened this issue 2 months ago • 4 comments

  • added update() to config class for updating & hot reloading the config on the fly
  • exposed through the hono api

neriousy avatar Sep 19 '25 22:09 neriousy

This would be very helpful.

brsc2909 avatar Sep 23 '25 12:09 brsc2909

To be honest I did not check if I need ro reinitialize existing objects (like LSP etc) for the changes to be applied correctly.

neriousy avatar Sep 23 '25 13:09 neriousy

Let's rip out the hot reload stuff and just expose the API for now @neriousy, @thdxr will have to figure out how to do the reload

adamdotdevin avatar Sep 23 '25 16:09 adamdotdevin

You'd like me to remove the update function? @adamdotdevin or leave it as it is?

Cause the config is overwritten but existing services may not be hot reloaded. We could use a event based reload

neriousy avatar Sep 24 '25 00:09 neriousy