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

lsm / neokai / 25458927253 / 4
81%
dev: 81%

Build:
DEFAULT BRANCH: dev
Ran 06 May 2026 08:24PM UTC
Files 106
Run time 8s
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

06 May 2026 08:20PM UTC coverage: 30.582%. First build
25458927253.4

push

github

web-flow
fix(agent): expose Task/Agent tools for non-Anthropic providers (#1805)

* fix(agent): expose Task/Agent tools for non-Anthropic providers when agents are configured

The SDK's claude_code preset may omit Task from the function schema on
non-Anthropic providers even though the system prompt still describes
agents. This causes a mismatch: the model sees agent descriptions but
has no callable tool to invoke them.

Changes:
- Add ensureAgentTools() pure function that injects Task, TaskOutput,
  TaskStop into the tools list whenever agents are configured.
- For explicit tool arrays: append missing agent tools.
- For undefined tool lists on non-Anthropic providers: expand to the
  full built-in array so the bridge receives agent tools.
- Space chat sessions are exempt (they explicitly restrict Task).
- Add provider-specific tests covering Anthropic, Copilot, Codex, and
  glm providers.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* refactor(query-options): address review feedback on PR #1805

- P2-1: Deduplicate tool list by replacing inline coordinator-mode allTools
  array with the shared FULL_BUILTIN_TOOL_LIST constant.
- P2-2: Replace hardcoded provider negative-list with named
  NATIVE_AGENT_TOOL_PROVIDERS constant and explanatory JSDoc.
- P2-3: Change session type fallback from invalid 'general' to valid
  'worker' (matches SessionType union default).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* fix(query-options): preserve explicit tool arrays for native providers

The Array.isArray(tools) branch in ensureAgentTools was appending agent
invocation tools unconditionally, even for Anthropic and anthropic-copilot
providers where the SDK handles agent tools natively. This caused a behavior
regression where explicit restricted tool lists (e.g. ['Read', 'Write'])
would unexpectedly gain Task/TaskOutput/TaskStop on native providers.

Add a NATIVE_AGENT_TOOL_PROVIDERS guard to the array branch so explicit
tool arrays are preserved... (continued)

8140 of 26617 relevant lines covered (30.58%)

15.41 hits per line

Source Files on job daemon-5-space-workflow - 25458927253.4
  • Tree
  • List 106
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 25458927253
  • 131d9abf on github
  • Next Job for on dev (#25463083680.11)
  • 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