Add WhatsApp session bind/unbind to Admin Runtime, and fix related Admin JS errors.

Expose sidecar status, start/stop, QR bind, and unbind so 405 session failures are visible instead of a stuck connecting state.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-08-17 22:23:35 +08:00
parent 1bdbfc3b85
commit 5c6833612f
16 changed files with 1123 additions and 72 deletions

View file

@ -611,6 +611,9 @@ function markPrewarmReminder(reason) {
const base = t("stack.configChangedPrewarm");
runtimePrewarmReminder = why ? `${base} [${why}]` : base;
}
function clearPrewarmReminder() {
runtimePrewarmReminder = "";
}
/**
* Compact row action menu (button + fixed popover).
@ -754,6 +757,7 @@ export {
yesNo,
runtimePrewarmReminder,
markPrewarmReminder,
clearPrewarmReminder,
rowActions,
navigateAdmin,
state,