Add Ask for suggestions chip, thread tag, stale-pick pruning and agent line

AI Assisted
This commit is contained in:
jparkerweb committed 2026-11-04 12:39:16 -08:00
1 parent f8a0a6bfc7
commit bc2c7c6c41
21 files changed
+228 -4

No files matched your search

+13
View File
@@ -28,6 +28,7 @@ import {
noteAction,
noteReplyLines,
progressTotal,
pruneStaged,
recordedAnswer,
sentAnswer,
staleLaunchFeedback,
@@ -464,6 +465,18 @@ export function adopt(body) {
delete page.local.sent[id];
}
}
// A re-posted card can drop or rekey an option a pick was staged on: that
// pick goes, and the person is told which question lost it.
const pruned = pruneStaged(page.S.items || [], page.local.staged);
if (pruned.dropped.length) {
page.local.staged = pruned.staged;
save();
const titles = pruned.dropped.map((id) => (byId(id) && byId(id).title) || id).join(", ");
const line = `A pick on ${titles} no longer matches the reworded question, so it was cleared.`;
banner(line, "info");
clearTimeout(arrivalBannerTimer);
arrivalBannerTimer = setTimeout(() => !page.gone && $("banner").textContent === line && banner(null), 8000);
}
// A retracted send suppresses exactly that send. Once the item moves --
// settled, sent again (a new `at`), or answered by an agent reply -- the
// mark is stale and keeping it would hide a send that is not that one.