fix(match): release card repairs, hotfix 092
An Ask accepted while pending expired before the release, and the hub refused all 11 decisions with a raw 409. The release card now checks every row first: an unreleasable row turns red with its reason, Release names the rows on click, and a red Cancel drops them and their cards. A hub refusal names the card's title and marks its row. The verdict pill opens a menu (options, Accept, Reject, Back to the stack, impossible entries greyed with their reason). Back to the stack puts the card behind the release card, last in the deck. W no longer puts a skipped card in front of the release card. An expired decision no longer claims its tool call went back to the terminal. 🎯 Fix: 85 % 💥 Break: 8 % 💸 Tokens: - ⏱️ Velocity: - 🛡️ Security: 100 % 🏆 Score: 78 🚦 Gate: ⛔ fix 85 % < 90, break 8 % > 5 (E2E rerun after 085 to 094, operator word 2026-11-27) Created-with: https://s.veen.world/skills Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ca97776b4d
commit
b15dd5e414
11 files changed
+301
-49
No files matched your search
@@ -27,23 +27,44 @@
|
||||
}
|
||||
|
||||
const sending = new Set();
|
||||
const refusedIds = new Map();
|
||||
|
||||
async function submit(entries, label) {
|
||||
/**
|
||||
* @param {object} result a hub answer; a 409 carries {id, status} of the item it refused.
|
||||
* @param {string} label the batch's label.
|
||||
* @param {Map<string, string>|undefined} names item id to the title the toast shows instead of the id.
|
||||
* @returns {boolean} whether it was such a refusal: kept in refusedIds and toasted by title.
|
||||
*/
|
||||
function namedRefusal(result, label, names) {
|
||||
const id = result.status === 409 && result.data && typeof result.data.id === "string" ? result.data.id : "";
|
||||
if (!id) {
|
||||
return false;
|
||||
}
|
||||
const status = typeof result.data.status === "string" ? result.data.status : "refused";
|
||||
refusedIds.set(id, status);
|
||||
toast(`${label}: not possible`, [`${(names && names.get(id)) || id}: ${status}. Change or drop its row, then release again.`], false);
|
||||
return true;
|
||||
}
|
||||
|
||||
async function submit(entries, label, names) {
|
||||
const keys = entries.map(keyOf);
|
||||
keys.forEach((key) => sending.add(key));
|
||||
drawInbox();
|
||||
try {
|
||||
return await sendBatch(entries, label, keys);
|
||||
return await sendBatch(entries, label, keys, names);
|
||||
} finally {
|
||||
keys.forEach((key) => sending.delete(key));
|
||||
drawInbox();
|
||||
}
|
||||
}
|
||||
|
||||
async function sendBatch(entries, label, keys) {
|
||||
async function sendBatch(entries, label, keys, names) {
|
||||
ui.busy = true;
|
||||
let missing = null;
|
||||
const gone = (result) => {
|
||||
if (namedRefusal(result, label, names)) {
|
||||
return true;
|
||||
}
|
||||
if (keys.length > 1 && result.status === 404) {
|
||||
missing = result;
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user