Restart the app when updated plugins need it. Release 0.9.4. #2

Merged
oliver.maklott merged 1 commit from restart-after-plugin-update into main 2026-11-07 20:33:15 +01:00

In production Limedoc keeps the first imported build of an in-process
plugin, and a plugin that failed to import stays failed until restart
(Deno caches its modules per URL). After Limedoc 0.73.0 removed a host
export, old drawio failed to load on start; ldcmd update --with-packs
installed the fix but did not restart, so ::drawio stayed literal text on
every instance, and re-running the update changed nothing.

  • Restart on every LIMEDOC_APP_RESTART reason (plugins, templates; Limedoc
    0.73.1 emits plugins for updated in-process plugins), naming it.
  • Without a marker, restart when /api/health reports restartRequired:
    re-running ldcmd update (with or without --with-packs) or
    ldcmd plugin update repairs an app that kept a failed build.
  • plugin install acts on the markers too (a forced reinstall).
  • Wait for the app to answer after the restart.
    🤖 Generated with Claude Code

https://claude.ai/code/session_01PVUe4iGcenmnT93zmR65VX

In production Limedoc keeps the first imported build of an in-process plugin, and a plugin that failed to import stays failed until restart (Deno caches its modules per URL). After Limedoc 0.73.0 removed a host export, old drawio failed to load on start; `ldcmd update --with-packs` installed the fix but did not restart, so ::drawio stayed literal text on every instance, and re-running the update changed nothing. - Restart on every LIMEDOC_APP_RESTART reason (plugins, templates; Limedoc 0.73.1 emits `plugins` for updated in-process plugins), naming it. - Without a marker, restart when /api/health reports restartRequired: re-running `ldcmd update` (with or without --with-packs) or `ldcmd plugin update` repairs an app that kept a failed build. - `plugin install` acts on the markers too (a forced reinstall). - Wait for the app to answer after the restart. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01PVUe4iGcenmnT93zmR65VX
Restart the app when updated plugins need it. Release 0.9.4.
All checks were successful
Test / test (pull_request) Successful in 37s
3699d35ab5
In production Limedoc keeps the first imported build of an in-process
plugin, and a plugin that failed to import stays failed until restart
(Deno caches its modules per URL). After Limedoc 0.73.0 removed a host
export, old drawio failed to load on start; `ldcmd update --with-packs`
installed the fix but did not restart, so ::drawio stayed literal text on
every instance, and re-running the update changed nothing.

- Restart on every LIMEDOC_APP_RESTART reason (plugins, templates; Limedoc
  0.73.1 emits `plugins` for updated in-process plugins), naming it.
- Without a marker, restart when /api/health reports restartRequired:
  re-running `ldcmd update` (with or without --with-packs) or
  `ldcmd plugin update` repairs an app that kept a failed build.
- `plugin install` acts on the markers too (a forced reinstall).
- Wait for the app to answer after the restart.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PVUe4iGcenmnT93zmR65VX
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
limedoc/ldcmd!2
No description provided.