Better account-based wait status

This commit is contained in:
alejo committed 2026-10-28 13:11:54 -03:00
1 parent 10badb282c
commit 33567db5a3
14 files changed
+183 -57

No files matched your search

+6 -1
View File
@@ -16,7 +16,11 @@
* or just "wait" (only while the task's account is already waiting).
* - A wait belongs to the account: setting a task to "wait <time>" sets its
* account's wait, and the account's Prompt / Testing tasks then show Wait
* until that time and Limit reset after it (see the README).
* until that time and Limit reset after it. A task you explicitly set to
* "testing" or "prompt" while the wait is running shows that status instead
* (overrides_wait = 1) and the other tasks keep waiting; "wait" makes it follow
* the account again. If the wait is already over (Limit reset), setting a task
* to testing / prompt clears it: the account is in use again (see the README).
* - Times are Unix seconds (UTC); clock-time text like "4:30pm" is read in the
* local time zone, and a time that has passed today means tomorrow.
*
@@ -88,6 +92,7 @@ typedef struct lls_task_info {
int64_t until; /* for Wait / Limit reset: when the wait ends (ended); else 0 */
const char* notes; /* the full text, "" if none (any length) */
int notes_lines; /* number of lines in the notes */
int overrides_wait; /* 1 if its account waits but this task ignores it (set to Testing / Prompt) */
} lls_task_info;
/* An account with its computed state. */