diff --git a/hive-c0re/assets/app.js b/hive-c0re/assets/app.js index 02a0f71..06f5e10 100644 --- a/hive-c0re/assets/app.js +++ b/hive-c0re/assets/app.js @@ -1143,14 +1143,15 @@ fd.append('body', body); input.disabled = true; try { + // /op-send now returns 200 (no more 303-to-/). The SSE channel + // carries the resulting MessageEvent → the terminal renders the + // sent row + the inbox updates on its own; no /api/state + // refetch needed. const resp = await fetch('/op-send', { method: 'POST', body: new URLSearchParams(fd), - redirect: 'manual', }); - const ok = resp.ok || resp.type === 'opaqueredirect' - || (resp.status >= 200 && resp.status < 400); - if (!ok) { + if (!resp.ok) { flashError(`send failed: http ${resp.status}`); return; } diff --git a/hive-c0re/src/dashboard.rs b/hive-c0re/src/dashboard.rs index 90880b5..4e78acd 100644 --- a/hive-c0re/src/dashboard.rs +++ b/hive-c0re/src/dashboard.rs @@ -1141,7 +1141,13 @@ async fn post_op_send(State(state): State, Form(form): Form