Chore briefs carry a one-time id: delegate the first line, worker prints the brief by id

This commit is contained in:
sisi committed 2026-12-02 10:21:31 -07:00
1 parent 62e79b8342
commit 8aa79ab492
5 files changed
+123 -29

No files matched your search

+2 -2
View File
@@ -358,8 +358,8 @@ def due(cwd, claim=False):
cl.update({"claim:" + k: now for k, _ in need})
with contextlib.suppress(OSError):
store.write(store.data("locks", "organize.json"), json.dumps(cl))
return ("sisi: the learned rules need organizing (%s). In the background, give the output of "
"`sisi rules organize` to a cheap worker and record its answer with `sisi rules organize --record FILE`."
return ("sisi: the learned rules need organizing (%s). In the background, delegate just the first line of the output of "
"`sisi rules organize` plus \"Run `sisi chore show <id>` and do what it says\" to a cheap worker and record its answer with `sisi rules organize --record FILE`."
% "; ".join(m for _, m in need))