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

lsm / neokai / 28325386179 / 4
71%
dev: 71%

Build:
DEFAULT BRANCH: dev
Ran 28 Jun 2026 02:32PM UTC
Files 361
Run time 13s
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: 17.392% (+0.01%) from 17.382%
28325386179.4

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)

19946 of 114682 relevant lines covered (17.39%)

9.37 hits per line

Source Files on job daemon-online-components - 28325386179.4
  • Tree
  • List 361
  • Changed 6
  • Source Changed 3
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 28325386179
  • 362cddff on github
  • Prev Job for on dev (#28307668303.6)
  • Next Job for on dev (#28341199075.9)
  • 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