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

umputun / agterm / 38953230455
94%

Build:
DEFAULT BRANCH: master
Ran 16 Oct 2026 07:18PM UTC
Jobs 1
Files 200
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

16 Oct 2026 07:12PM UTC coverage: 93.925% (-0.1%) from 94.073%
38953230455

push

github

web-flow
feat(control): add session wait to block until a session reaches an agent status (#765)

adds `agtermctl session wait`, which blocks until a session's agent status is one of the given values:

```
agtermctl session wait --target "$id" --until completed --until blocked --timeout 600
```

It returns at once when the current status already matches, otherwise on the next matching status event for that session, so a `completed` that auto-reset clears right after is still seen. Exit 0 prints the status (or `{"id":"<uuid>","status":"completed"}` with `--json`), 2 means the session left the open tree (closed, soft-closed or its window closed), 124 is the timeout, 1 is a runtime failure.

It is built in the CLI from `events.read`, `window.list` and `tree`, with no new socket command: a wait inside the app would hold the accept loop that the awaited status writes go through. The event cursor is taken before the tree read, so a status set between the two is replayed. `--timeout` is enforced by a watchdog timer because a socket call has no client timeout; against a socket that accepts and never replies, `--timeout 1.5` exits 124 on time.

The "Wait for a session status" recipe in examples.md is replaced. Its `head -n 1` printed only `{` of the pretty-printed object, and the pipeline kept running after a match until a second one arrived.

Fixed #758

91 of 123 new or added lines in 2 files covered. (73.98%)

15661 of 16674 relevant lines covered (93.92%)

2962614.38 hits per line

Uncovered Changes

Lines Coverage ∆ File
32
71.43
agtermCore/Sources/agtermctlKit/Session+Wait.swift
Jobs
ID Job ID Ran Files Coverage
1 38953230455.1 16 Oct 2026 07:18PM UTC 200
93.92
GitHub Action Run
Source Files on build 38953230455
  • Tree
  • List 200
  • Changed 1
  • Source Changed 1
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #38953230455
  • fff13ef2 on github
  • Prev Build on master (#38947970793)
  • Next Build on master (#39054284160)
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