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

umputun / agterm / 33419214656
97%

Build:
DEFAULT BRANCH: master
Ran 31 Aug 2026 05:27PM UTC
Jobs 1
Files 112
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

31 Aug 2026 05:22PM UTC coverage: 97.577% (-0.02%) from 97.601%
33419214656

push

github

web-flow
Add sidebar.width control command for the sidebar divider position (#512)

sidebar width is persisted per window and adjustable by dragging, but it had no control command or read-back. Dragging was the only user-facing way to change it.

that matters beyond tidiness. Terminal width is the window width minus the sidebar width minus a 1pt divider, and the window has a hard 640pt minimum (`agtermApp.swift:127`) that `window resize` silently clamps to. With the sidebar visible, a controller could not reach a terminal width below the floor set by that minimum and the current sidebar width.

```
agtermctl sidebar width <points> [--window W]
```

clamps to the existing 160...560pt drag bounds and echoes the stored width. Without the echo a clamped request and an honored one both answer bare ok. The echo is the stored value, not a measured on-screen width, and the CLI preserves it without fixed-decimal rounding: rounding an honored 271.34 to 271.3 would report a clamp that never happened. Points are `Double` because the drag writes a fractional cursor x, so an `Int` could not express every width the GUI can reach. The comparison callers are told to make is numeric, since the echo is a double and `300` comes back `300.0`.

read-back is the tree's top-level `sidebarWidth`, deliberately not `window list`. No caller needs width discovery across windows, which is all a `window list` copy would add. Takes `--window` like `sidebar expand` rather than being frontmost-only like `sidebar` and `sidebar mode`.

`ControlActions.setSidebarWidth` has a default unsupported response, so existing conformers need no new method. A downstream can still need source changes for exhaustive `Command` switches, as with any added command.

**two supporting moves, both forced by file length limits**

`AppStore+Sidebar.swift` takes the new setter plus `clampSidebarWidth`, which replaces a clamp expression that `restore()` and the drag handler each spelled separately. The split divider al... (continued)

136 of 139 new or added lines in 8 files covered. (97.84%)

9102 of 9328 relevant lines covered (97.58%)

4374494.73 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
0.0
0.0% agtermCore/Sources/agtermCore/ControlActionsDefaults.swift
Jobs
ID Job ID Ran Files Coverage
1 33419214656.1 31 Aug 2026 05:27PM UTC 112
97.58
GitHub Action Run
Source Files on build 33419214656
  • Tree
  • List 112
  • Changed 6
  • Source Changed 6
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #33419214656
  • 7977f202 on github
  • Prev Build on master (#33413784007)
  • Next Build on master (#33423877351)
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