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

lsm / neokai / 28325386179
71%

Build:
DEFAULT BRANCH: dev
Ran 28 Jun 2026 02:29PM UTC
Jobs 28
Files 618
Run time 2min
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

28 Jun 2026 02:28PM UTC coverage: 82.43% (+0.02%) from 82.414%
28325386179

push

github

web-flow
feat(agent): wire output limiter hook into query options (#2202)

* feat(agent): wire output limiter hook into query options

- Load outputLimiter config from global settings in QueryOptionsBuilder.
- Install createOutputLimiterHook in the PreToolUse chain when enabled.
- Keep the hook off when global settings omit outputLimiter or set enabled=false.
- Deep-merge partial output-limiter settings with defaults so a user can
  override only bash.headLines (for example) without losing tailLines.

Tests:
- Verify the hook is present in built SDK options when enabled.
- Verify limits are applied to Bash, Read, Grep, and Glob inputs.
- Verify custom limits from global settings are respected.
- Verify partial config deep-merges with defaults.

* fix(agent): address output-limiter review findings

- Bash: preserve original exit status with exit_code=$?; exit $exit_code.
- Bash: capture both stdout and stderr into temp file (> file 2>&1 order).
- Bash: insert newlines around subshell contents so heredoc delimiters parse.
- Bash: skip wrapping sandbox-excluded command prefixes (e.g. git) so
  command-level sandbox exclusions still see the original command.
- Hook: return only updatedInput without a permissionDecision so output
  limiting cannot bypass restrictive permission modes.
- Builder: run declarative tool guards BEFORE the output limiter so
  guard regexes match the original command shape.
- Builder: resolve outputLimiter config (deep-merge) before the enabled
  gate so a partial settings update does not silently disable the hook.
- Remove Glob limiting (GlobInput has no head_limit field; SDK ignores it).
- Rename read.maxChars to read.maxLines since the SDK Read limit is lines.
- Tests: cover exit-status preservation, stderr capture, heredoc handling,
  excluded command prefixes, partial-settings enablement, guard ordering,
  and that the hook does not emit a permission decision.

* fix(agent): update circuit-breaker hint to outputLimiter.read.maxLines

... (continued)

11422 of 16468 branches covered (69.36%)

Branch coverage included in aggregate %.

112 of 114 new or added lines in 3 files covered. (98.25%)

97567 of 115752 relevant lines covered (84.29%)

301.13 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
98.43
1.34% packages/daemon/src/lib/agent/output-limiter-hook.ts
Jobs
ID Job ID Ran Files Coverage
1 daemon-4-space-migrations-a - 28325386179.1 28 Jun 2026 02:30PM UTC 74
36.91
GitHub Action Run
2 daemon-0-shared-handlers-workflow - 28325386179.2 28 Jun 2026 02:30PM UTC 366
32.27
GitHub Action Run
3 daemon-online-agent-sdk - 28325386179.3 28 Jun 2026 02:30PM UTC 361
21.59
GitHub Action Run
4 daemon-online-components - 28325386179.4 28 Jun 2026 02:29PM UTC 361
17.39
GitHub Action Run
5 daemon-online-space-2 - 28325386179.5 28 Jun 2026 02:32PM UTC 361
31.59
GitHub Action Run
6 daemon-online-rpc-4 - 28325386179.6 28 Jun 2026 02:31PM UTC 361
22.29
GitHub Action Run
7 daemon-online-lifecycle - 28325386179.7 28 Jun 2026 02:30PM UTC 361
21.88
GitHub Action Run
8 daemon-online-sdk - 28325386179.8 28 Jun 2026 02:30PM UTC 361
21.6
GitHub Action Run
9 daemon-online-rewind-2 - 28325386179.9 28 Jun 2026 02:30PM UTC 361
22.16
GitHub Action Run
10 daemon-online-rpc-3 - 28325386179.10 28 Jun 2026 02:30PM UTC 361
18.79
GitHub Action Run
11 daemon-4-space-migrations-b - 28325386179.11 28 Jun 2026 02:30PM UTC 48
56.5
GitHub Action Run
12 daemon-online-features-2 - 28325386179.12 28 Jun 2026 02:30PM UTC 361
21.72
GitHub Action Run
13 daemon-4-space-storage - 28325386179.13 28 Jun 2026 02:30PM UTC 160
53.64
GitHub Action Run
14 daemon-5-space-agent-other - 28325386179.14 28 Jun 2026 02:30PM UTC 288
25.64
GitHub Action Run
15 daemon-5-space-runtime-b - 28325386179.15 28 Jun 2026 02:31PM UTC 186
47.74
GitHub Action Run
16 daemon-online-space-1 - 28325386179.16 28 Jun 2026 02:31PM UTC 361
31.21
GitHub Action Run
17 daemon-online-mcp - 28325386179.17 28 Jun 2026 02:29PM UTC 361
17.7
GitHub Action Run
18 daemon-online-rpc-2 - 28325386179.18 28 Jun 2026 02:30PM UTC 361
22.6
GitHub Action Run
19 daemon-online-features-1 - 28325386179.19 28 Jun 2026 02:30PM UTC 361
22.26
GitHub Action Run
20 daemon-online-git - 28325386179.20 28 Jun 2026 02:30PM UTC 361
18.21
GitHub Action Run
21 daemon-online-rpc-1 - 28325386179.21 28 Jun 2026 02:30PM UTC 361
18.46
GitHub Action Run
22 daemon-online-rewind-1 - 28325386179.22 28 Jun 2026 02:30PM UTC 361
21.71
GitHub Action Run
23 web - 28325386179.23 28 Jun 2026 02:30PM UTC 248
74.57
GitHub Action Run
24 daemon-online-websocket - 28325386179.24 28 Jun 2026 02:30PM UTC 361
17.48
GitHub Action Run
25 daemon-online-convo - 28325386179.25 28 Jun 2026 02:30PM UTC 361
21.5
GitHub Action Run
26 daemon-1-core - 28325386179.26 28 Jun 2026 02:30PM UTC 366
34.75
GitHub Action Run
27 daemon-online-coordinator - 28325386179.27 28 Jun 2026 02:29PM UTC 350
7.82
GitHub Action Run
28 daemon-5-space-runtime-a - 28325386179.28 28 Jun 2026 02:30PM UTC 131
39.61
GitHub Action Run
Source Files on build 28325386179
  • Tree
  • List 618
  • Changed 10
  • Source Changed 4
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #28325386179
  • 362cddff on github
  • Prev Build on dev (#28307668303)
  • Next Build on dev (#28341199075)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc