Skip to content

Commit c72fc25

Browse files
mayoalexanderclaude
andcommitted
feat(agents): assign --list, a WATCHING section, and the list count that was a sample
iris agents assign <agent> --list <listId> stand an agent on a list iris agents assign <agent> --list 0 clear the watch Standing, not a snapshot. Nothing is written onto the items; the watch is one field on the list and the agent's queue resolves it when read, so an item filed a second from now is already included. Snapshotting current contents would be wrong for every list on these boards — they are flows, and the items a snapshot misses are the ones you wanted watched. `agents tasks` grows a WATCHING section, printed first, showing the list and its size and never the rows: a watched list can hold hundreds of items and an agent pulling them all into context is its own failure. watching_items is reported separately from `total`, because work handed to an agent and a standing duty whose size changes on its own are different claims and summing them would make the number mean neither. Also fixes the empty-queue check: an agent that only watches had `total: 0` and printed "Nothing assigned", which was false. CORRECTION TO fl-api fb6a8dac. That commit said a watch reporting 11 items "disagreed with the board" and moved the endpoint onto withCount('items') to make them agree. The endpoint was right and the BOARD was wrong: `iris atlas get` tallies list sizes from the items it fetched, which is one page — 500 of 4,600 rows on bloq #297 — and preferred that sample over the server's COUNT(*). List anomalyco#1028 rendered "(2 items)" for a list holding 11. The count is now read from the server and falls back to the tally only when none is sent. I nearly changed a correct number to match a broken one, because I assumed the display was authoritative. It was the cheaper thing to compute, which is usually why it is wrong. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01S9nUTNL4q4JbL5DHS8A7ky
1 parent e479461 commit c72fc25

3 files changed

Lines changed: 97 additions & 15 deletions

File tree

0 commit comments

Comments
 (0)