Expand description
ctx_tasks without waiting for Cloud (connector rule “Cloud never blocks
a tool call”).
Reads (list, show, the session briefing) answer at once from the
task lists and tasks Cloud last sent, kept in <data>/cloud/task-cache.json
(0600). An entry that is missing, older than FRESH or outdated by a
change of this machine is refreshed off the tool call
(crate::background); the answer says when its data is
stale or not loaded yet. Changes (claim, update, submit, release, read,
confirm, object) are queued the same way (queue): the tool call
answers that they are queued, and what Cloud answered comes in front of
the caller’s next ctx_tasks answer. Nothing is shown as done before
Cloud confirmed it.
Constants§
- FRESH
- An entry younger than this is shown without a refresh.
Functions§
- caller
- The caller of a
ctx_taskscall: its bus agent, else its session. - list
ctx_tasks list: the cached list, refreshed off the call when needed.- queue
- Queue the change
job(whatnames it, e.g. “claim of task #4”) forcaller. Answers at once that it is queued; what Cloud answered comes with the caller’s nextctx_taskscall, and the cached lists and tasks are refreshed on the next read.Errat once when tasks do not apply here withright(no request made). - show
ctx_tasks show: the cached task, refreshed off the call when needed.- warm
- Fetch the task lists a session reads first (all, and open) for the
checkout at
project_rootinto the cache, in the caller’s thread: the daemon’s background sync keeps them warm, so a fresh session answers at once from them (with their age) instead of “being fetched”. A list the Instance fetched less thansuper::reads::READ_TTLago is not asked again.Ok(false)when tasks do not apply there (no right, not shared): nothing fetched.