Skip to content

1.16.0 - the agents show up

Choose a tag to compare

@ridelink0 ridelink0 released this 08 Sep 22:22
· 89 commits to main since this release

1.16.0 - the agents show up

Agents spend the same window as the session that dispatched them, and no
display has ever named one. A fan-out could empty half a five-hour window in
five minutes while the status line showed a single session working and the
percentage moved for no visible reason. This plugin's own development did that
twice in one afternoon: a hundred and fifty-eight agent transcripts across
fourteen runs, none of them on any display.

usage.liveAgents() counts the agent transcripts touched recently, and the
number of runs they belong to, and the status line carries it: "+6 agents
(2 runs)". Singular for one, no run count when there is only one run, and it
is the first thing dropped when the terminal is too narrow - a percentage
nobody can see is worse than a count nobody can see.

Cheap on purpose: it stats files and never parses one, and memoises for two
seconds because the panel redraws every second and the scan measured about 95
milliseconds on a machine with a few hundred transcripts.

The first version of the walk looked one directory too shallow and counted
nothing at all on a machine with a hundred and fifty live transcripts, which
is a good argument for checking a reader against real data rather than against
the shape you assumed.

621 tests.

Co-Authored-By: Claude Opus 5 (1M context) noreply@anthropic.com