fix(orchestrator): close operator rows the server no longer has
A 404 on Run, Close, a passkey signature or a rule accept closes the card with the notice "already done or removed elsewhere" instead of a lasting error; a selection reloads /api/state once and closes only the cards that are gone, other failures keep the old error. Tests run once on unify/skills-20261114 after the merge (operator order 2026-11-14). 🎯 Fix: 90 % 💥 Break: 3 % 💸 Tokens: – ⏱️ Velocity: – 🛡️ Security: 100 % 🏆 Score: 87 🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 % Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a2a03995cb
commit
ec30d8c94e
6 files changed
+372
-13
No files matched your search
@@ -38,10 +38,12 @@
|
||||
|
||||
let signing = false;
|
||||
|
||||
async function prove(path, fields, label) {
|
||||
async function prove(path, fields, label, handled) {
|
||||
const result = await sendJson(path, fields);
|
||||
if (!result.ok || !result.data) {
|
||||
toast(`${label}: not possible`, fail(result), false);
|
||||
if (!handled || !handled(result)) {
|
||||
toast(`${label}: not possible`, fail(result), false);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
if (result.data.payload === null) {
|
||||
@@ -51,21 +53,21 @@
|
||||
return signed ? {proof: {payload: result.data.payload, assertion: signed}} : null;
|
||||
}
|
||||
|
||||
async function signedProof(path, fields, label) {
|
||||
async function signedProof(path, fields, label, handled) {
|
||||
if (signing) {
|
||||
toast(`${label}: not signed`, ["Another passkey signature is still open: finish or cancel it first; nothing was sent."], false);
|
||||
return null;
|
||||
}
|
||||
signing = true;
|
||||
try {
|
||||
return await prove(path, fields, label);
|
||||
return await prove(path, fields, label, handled);
|
||||
} finally {
|
||||
signing = false;
|
||||
}
|
||||
}
|
||||
|
||||
function proofFor(entries, label) {
|
||||
return signedProof("/api/sign", {items: entries}, label);
|
||||
function proofFor(entries, label, handled) {
|
||||
return signedProof("/api/sign", {items: entries}, label, handled);
|
||||
}
|
||||
|
||||
async function registerPasskey(output) {
|
||||
|
||||
Reference in new issue
Block a user