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

+3 -2
View File
@@ -1369,10 +1369,11 @@ function submit(req, res, ctx) {
}
// Name the items that went. A page with OTHER answers staged should drop
// only what was sent, and a brief request is a submit carrying no answers
// at all, so a blanket "everything is gone" is wrong for both.
// at all, so a blanket "everything is gone" is wrong for both. A request
// for suggestions sends no answer, so the pick staged on its card stays.
ctx.broadcast("submitted", {
rev: ctx.rev,
ids: body.actions.map((a) => a && a.i).filter(Boolean),
ids: body.actions.filter((a) => a && !(a.type === "comment" && a.suggest === true)).map((a) => a.i).filter(Boolean),
});
ctx.pushState();
return json(res, 200, { ok: true });