• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

umputun / agterm / 42921447451
94%

Build:
DEFAULT BRANCH: master
Ran 10 Nov 2026 11:22PM UTC
Jobs 1
Files 317
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Nov 2026 11:12PM UTC coverage: 93.263% (-0.004%) from 93.267%
42921447451

push

github

web-flow
perf(control): reduce CPU used by idle control followers (#955)

* perf(core): read the event ring from the cursor, not from its start

every idle `agtermctl events` and `session wait` follower polls events.read
up to four times a second, and each empty poll walked and copied all retained
events (up to 4096) to find none newer than its cursor. A ring that has run
long enough to fill made this the main per-follower cost: 20 idle followers
on a full ring took 17.9% of a core in a Debug build, 5.6% with this and the
window cache change.

* perf(control): skip the window cache rebuild after events.read and msg.read

even idle follower reads ended with refreshWindowCache, which rebuilds the
window list and calls NSWindow.isZoomed per window, a window server query.
With 20 idle followers on an empty ring the rebuild was 220 of the 246
main-thread samples spent on control requests, 177 of them in isZoomed.
Neither read can change a window node, so these two commands skip the
rebuild and other dispatched commands keep it. A window.list field changed
outside dispatch now needs a notification or a direct cache refresh, since
a follower's poll no longer rebuilds the cache. The following commits add
the ones that were missing.

* fix(control): refresh the window cache after GUI rename, delete and auto-follow

window.list is served from the window cache, and three GUI changes to a window
node lacked a cache refresh after the completed mutation: renaming a window,
deleting the frontmost window, and a Settings auto-follow change. An idle
follower's poll rebuilt the cache on its next request; with events.read and
msg.read exempt, a script polling window list next to idle followers kept the
old name, the deleted window or the old autoFollowMs until some other command
ran. Each of those paths now posts agtermWindowCatalogChanged, which the server
observes synchronously.

* fix(control): refresh the window cache after a GUI window close

the window close handler unregis... (continued)

4 of 4 new or added lines in 1 file covered. (100.0%)

6 existing lines in 1 file now uncovered.

26539 of 28456 relevant lines covered (93.26%)

2416253.14 hits per line

Coverage Regressions

Lines Coverage ∆ File
6
82.91
-5.13% agtermCore/Sources/agtermCore/PresentationStream.swift
Jobs
ID Job ID Ran Files Coverage
1 42921447451.1 10 Nov 2026 11:22PM UTC 317
93.26
GitHub Action Run
Source Files on build 42921447451
  • Tree
  • List 317
  • Changed 4
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42921447451
  • fd3320cd on github
  • Prev Build on master (#42915897091)
  • Next Build on master (#42941964376)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc